[Debian-med-packaging] Bug#702882: libf2c.so: undefined reference to `MAIN__'

Mathieu Malaterre malat at debian.org
Tue Mar 12 13:49:17 UTC 2013


Package: igraph
Version: 0.6.5-1
Severity: important

There are multiple issues with igraph and f2c, first:

igraph does not test for f77_aloc, which is the symbol used in debian:

$ nm -D /usr/lib/libf2c.so| grep -i f77
0000000000008790 T F77_aloc
0000000000218440 D _libf77_version_f2c

Furthermore the following:

           AC_CHECK_LIB([f2c], [F77_aloc], [],

is incorrect it *will* fails with something like:

$ gcc u.c -lf2c
/tmp/ccu6emo1.o: In function `main':
u.c:(.text+0xa): undefined reference to `F77_ALLOC_'
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../lib/libf2c.so: undefined reference to `MAIN__'
collect2: error: ld returned 1 exit status

instead test should use something like:

$ gcc -u MAIN__ u.c -lf2c 


-- System Information:
Debian Release: 6.0.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (200, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-0.bpo.4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------

 char F77_aloc ();
 int
 main ()
 {
 return F77_aloc ();
   ;
   return 0;
 }



More information about the Debian-med-packaging mailing list