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

Mahyuddin Susanto udienz at ubuntu.com
Wed Dec 7 08:03:43 UTC 2011


Pada -9/01/37 02:59, Francesco P. Lovergine menulis:
> On Wed, Jul 06, 2011 at 10:29:27PM +0200, Stefano Rivera wrote:
>> 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
>>
> 
> Order does matter, -lm should go at the end of the command AFAIK.
> 

I grabbed last patch from here but problem still accour. By placing -lm
in end all problem solved

-- 
Mahyuddin Susanto -- udienz {gmail,ubuntu}.com
http://www.udienz.web.id

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20111207/397c1e46/attachment.pgp>


More information about the Pkg-grass-devel mailing list