Bug#631251: gosmore version 0.0.0.20100711-1 failed to build with GCC-4.6/oneiric

Stefano Rivera stefanor at debian.org
Wed Jul 6 20:29:27 UTC 2011


tags 631251 - moreinfo
retitle 631251 gosmore failed to build with -Wl,--as-needed
user debian-gcc at lists.debian.org
usertag 631251 ld-as-needed
thanks

> ...it builds fine here (i386, unstable, GCC 4.6).

It's a ld --as-needed bug:

http://wiki.debian.org/ToolChain/DSOLinking

e.g.
$ gcc -Wl,--as-needed -lm density.c -o density
/tmp/ccRfNyA1.o: In function `main':
density.c:(.text+0x20d): undefined reference to `exp'
density.c:(.text+0x212): undefined reference to `atan'
etc.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  H: +27 21 465 6908 C: +27 72 419 8559  UCT: x3127





More information about the Pkg-grass-devel mailing list