Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libf2c: undefined reference #438

Open
kiufta opened this issue Jan 24, 2023 · 0 comments
Open

libf2c: undefined reference #438

kiufta opened this issue Jan 24, 2023 · 0 comments

Comments

@kiufta
Copy link

kiufta commented Jan 24, 2023

My distro has f2c-20210928, which works fine. afni uses its own and this fails for me (gcc 12.2.1):

gcc -I"/usr/include/R/" -DNDEBUG -I. -I/usr/include -Icoxplot -Inifti/nifti2 -Inifti/niftilib -Inifti/nifticdf -Inifti/znzlib -I3DEdge/src -Irickr -Ileej3 -DHAVE_ZLIB -DHAVE_GIFTI -If2c -Wcomment -Wformat -DUSE_TRACING -DHAVE_XDBE -DDONT_USE_XTDESTROY -D_GNU_SOURCE -DREPLACE_XT  -D_FORTIFY_SOURCE=2  -fpic  -march=x86-64 -mtune=native -O3 -pipe -fno-plt  -c R_io.c -o R_io.o
gcc -L/usr/lib64/R/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o R_io.so R_io.o -L. -L/usr/lib64 -lmri -lf2c -lXm -lXt -lXft -lXp -lXpm -lXext -lXmu -lSM -lICE -lX11 -lpng -ljpeg -lz /usr/lib/libexpat.so -lm -ldl -lc -L/usr/lib64/R/lib -lR
/usr/bin/ld: ./libf2c.a(open.o): in function `f_open':
open.c:(.text+0x23d): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../lib/Scrt1.o: in function `_start':
(.text+0x1b): undefined reference to `main'

Is there any way to disable all Fortran bindings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant