if compiling with fortran checking if Fortran "byte" is C "signed char"... configure: error: Could not link conftestf.o and conftest.o without: bugs in function main() main.c:(.text+0xb0): undefined reference to `emalloc' main.c:(.text+0x19c): undefined reference to `derror' main.c:(.text+0x1a1): undefined reference to `nc_inq_libvers' main.c:(.text+0x1b0): undefined reference to `derror' main.c:(.text+0x1e8): undefined reference to `emalloc' main.c:(.text+0x230): undefined reference to `emalloc' main.c:(.text+0x2e7): undefined reference to `derror' main.c:(.text+0x317): undefined reference to `derror' main.c:(.text+0x337): undefined reference to `derror' main.c:(.text+0x354): undefined reference to `derror' main.c:(.text+0x36f): undefined reference to `derror' main.o:main.c:(.text+0x385): more undefined references to `derror' follow main.o: In function `main': main.c:(.text+0x3c4): undefined reference to `yyin' main.c:(.text+0x3ea): undefined reference to `derror' main.c:(.text+0x3c9): undefined reference to `yyparse' Reproducible: Always Steps to Reproduce: 1. emerge netcdf 2. USE="-fortran" emerge netcdf Actual Results: impossible to install CFLAGS="-mtune=athlon64 -fwhole-program -fprefetch-loop-arrays -ftree-loop-linear -floop-optimize2 -O3" gcc 4.1.2
Created attachment 119894 [details] build.log without fortran
Created attachment 119895 [details] build log with fortran
Reopen if you can reproduce this with _sane_ C[XX]FLAGS, such as CFLAGS="-mtune=athlon64 -O3"