Bug#36139: linking error: undefined reference to `_fxstat'
Package: libc6
Version: 2.1.1-0.2
I have upgraded libc6 from 2.0.7.19981 to 2.1.1-0.2.
When I want to link with the NAG Fortran 90 library the linker does
not find _fxstat. (Which it did with the old libc6)
My test program is
program test
end program test
It compiles and produces a test.o with the following symbols:
$nm -s test.o
U f90_finish
U f90_init
00000000 t gcc2_compiled.
00000000 T main
The linker response is:
$ld test.o -L$F_LIB -lf90 -lm
ld: warning: cannot find entry symbol _start; defaulting to 08048b90
/usr/local/lib/F/libf90.a(open.o): In function `__NAGf90_open':
open.o(.text+0xc77): undefined reference to `_fxstat'
The symbols from libf90.a concerning open.o are:
(Using nm -s libf90.a)
open.o:
U _IO_stderr_
U __NAGf90_Alloc
U __NAGf90_cidata_match
U __NAGf90_close
U __NAGf90_crash
U __NAGf90_error_continue
U __NAGf90_file
U __NAGf90_file_info
U __NAGf90_io_blanks
U __NAGf90_io_delim
U __NAGf90_io_lock
U __NAGf90_io_pad
U __NAGf90_ioerr
00000000 T __NAGf90_open
00000000 D __NAGf90_pcio_blank
00000005 D __NAGf90_pcio_position
0000000c D __NAGf90_pcio_prefix
0000002c D __NAGf90_pcio_verbose
00000dd0 T __NAGf90_preconnect_open
U _fxstat
U access
U errno
U fileno
U fopen
U fprintf
U freopen
U fseek
U ftell
00000000 t gcc2_compiled.
U getenv
U iostat
U isatty
00000ec0 t preconnect_name
U sprintf
U strcpy
U strncmp
U strncpy
U tmpnam
U unlink
Reply to: