[arch-general] Linking issue, glibc weirdness?

Philipp Überbacher hollunder at lavabit.com
Fri Dec 9 16:23:53 EST 2011


Excerpts from Fons Adriaensen's message of 2011-12-09 22:01:09 +0100:
> On Fri, Dec 09, 2011 at 08:25:51PM +0100, Philipp wrote:
>  
> > g++ -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu
> > -L/usr/X11R6/lib -o jmeters jmeters.o styles.o mainwin.o jclient.o
> > mkimage.o meterwin.o -lsndfile -lclxclient -lclthreads -ljack -lpng
> > -lXft -lX11 -lrt
> > /usr/bin/ld: jmeters.o: undefined reference to symbol
> > 'pthread_mutex_trylock@@GLIBC_2.2.5'
> > /usr/bin/ld: note: 'pthread_mutex_trylock@@GLIBC_2.2.5' is defined in
> > DSO /lib/libpthread.so.0 so try adding it to the linker command line
> > /lib/libpthread.so.0: could not read symbols: Invalid operation
> > collect2: ld returned 1 exit status
> > make: *** [jmeters] Error 1
> 
> I just compiled and linked jmeter on an up-to-date system using
> the upstream (which is me) Makefile and it works OK.
> 
> Why are you changing the linker options ?
> 
> Ciao,

I'm not knowingly changing the linking options.
Can you try it using the PKGBUILD? (Download tarball, extract, cd to the
directory, type makepkg)
https://aur.archlinux.org/packages.php?ID=25711

Regards,
Philipp



More information about the arch-general mailing list