Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482376 - =sci-astronomy/galaxy-2.2 - Underlinking- zfuncs.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1'
Summary: =sci-astronomy/galaxy-2.2 - Underlinking- zfuncs.o: undefined reference to sy...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Kacper Kowalik (Xarthisius) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2013-08-24 22:27 UTC by Andrew Savchenko
Modified: 2013-08-25 10:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,3.00 KB, text/x-log)
2013-08-24 22:28 UTC, Andrew Savchenko
Details
environment (environment,92.12 KB, text/plain)
2013-08-24 22:28 UTC, Andrew Savchenko
Details
galaxy-2.2-pthread.patch (galaxy-2.2-pthread.patch,555 bytes, patch)
2013-08-24 22:32 UTC, Andrew Savchenko
Details | Diff
galaxy-2.2.ebuild.patch (galaxy-2.2.ebuild.patch,593 bytes, patch)
2013-08-24 22:32 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2013-08-24 22:27:44 UTC
Hello,

galaxy-2.2 suffers from underlinking with -lpthread:

i686-pc-linux-gnu-g++ -march=native -m32 -O2 -funswitch-loops -fpredictive-commoning -Wl,-O1,--as-needed -pipe galaxy.o zfuncs.o `pkg-config --libs gtk+-3.0` -o galaxy       
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: zfuncs.o: undefined reference to symbol 'pthread_create@@GLIBC_2.1'

Can be fixed by adding -lpthread to the compilation command.
Comment 1 Andrew Savchenko gentoo-dev 2013-08-24 22:28:02 UTC
Created attachment 356920 [details]
build.log
Comment 2 Andrew Savchenko gentoo-dev 2013-08-24 22:28:31 UTC
Created attachment 356922 [details]
environment
Comment 3 Andrew Savchenko gentoo-dev 2013-08-24 22:32:07 UTC
Created attachment 356924 [details, diff]
galaxy-2.2-pthread.patch

Fix underlinking with pthread. This also moves pthread CFLAGS modification from ebuild to Makefie patch, because we need to patch anyway.
Comment 4 Andrew Savchenko gentoo-dev 2013-08-24 22:32:55 UTC
Created attachment 356926 [details, diff]
galaxy-2.2.ebuild.patch

Apply patch and remove flags mangling because it is moved to the ebuild.
Comment 5 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2013-08-25 10:19:35 UTC
+  25 Aug 2013; Kacper Kowalik <xarthisius@gentoo.org> galaxy-2.2.ebuild:
+  Append -pthread to ldflags for proper linking of threading library. Fixes bug
+  #482376 by Andrew Savchenko <bicorph@gmail.com>