[Pkg-scicomp-devel] Bug#556338: FTBFS with binutils-gold

Peter Fritzsche peter.fritzsche at gmx.de
Sun Nov 15 10:29:57 UTC 2009


Source: scotch
Version: 5.1.6.dfsg-1
Severity: minor
User: peter.fritzsche at gmx.de
Usertags: no-add-needed

Tried to build your package and it fails to build with GNU binutils-gold. The
important difference is that --no-add-needed is the default behavior of of GNU
binutils-gold. Please provide all needed libraries to the linker when building
your executables.

Objects inside an .a archive aren't linked yet. This means that you must resolve
their symbols when linking to a program.

More informations can be found at
 http://wiki.debian.org/qa.debian.org/FTBFS#A2009-11-02Packagesfailingbecausebinutils-gold.2BAC8-indirectlinking

gcc -g -O3 -I. -fPIC -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_PTHREAD -I../../include -I../libscotch -DSCOTCH_VERSION=\""5.0"\" acpl.c -o acpl -L../../lib -lscotch -lscotcherrexit -lz -lm -lrt
/usr/bin/ld: ../../lib/libscotch.a(common_file_compress.o): in function fileCompress:common2_file_compress.c:776: error: undefined reference to 'pthread_create'
/usr/bin/ld: ../../lib/libscotch.a(common_file_uncompress.o): in function fileUncompress:common2_file_uncompress.c:779: error: undefined reference to 'pthread_create'
/usr/bin/ld: ../../lib/libscotch.a(common_file_uncompress.o): in function fileUncompress:common2_file_uncompress.c:786: error: undefined reference to 'pthread_detach'
collect2: ld returned 1 exit status
make[3]: *** [acpl] Error 1





More information about the Pkg-scicomp-devel mailing list