pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: esound build failed on dragonflybsd



On Saturday, 4. February 2012 at 22:08, Aycan iRiCAN wrote:
> /usr/libexec/binutils222/elf/ld: esd.o: undefined reference to symbol 'sin'
> /usr/libexec/binutils222/elf/ld: note: 'sin' is defined in DSO
> /usr/lib/libm.so.3 so try adding it to the linker command line
> /usr/lib/libm.so.3: could not read symbols: Invalid operation


Exactly this. DragonFly has moved to the latest release of binutils recently, 
which changed default behaviour regarding automatic linking of dependencies. In 
practice this means that all static libraries a program needs must be linked in 
explicitly, even if another library uses them. The "correct" fix is to add a 
configure check for libm.


This is not technically a DragonFly problem, sooner or later other systems will 
have the same problem; there's just a ton of packages out there that need 
fixing.


Cheers,
Matthias




Home | Main Index | Thread Index | Old Index