Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 505760 - sys-process/numad on SYMLINK_LIB=no profile fails because make search path is hard-coded to /lib /usr/lib
Summary: sys-process/numad on SYMLINK_LIB=no profile fails because make search path is...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Doug Goldstein
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: no-symlink-lib
  Show dependency tree
 
Reported: 2014-03-25 14:40 UTC by Georgi Georgiev
Modified: 2014-04-23 19:49 UTC (History)
1 user (show)

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


Attachments
Remove -lpthread from the Makefile, because make's search path is hardcoded to /lib /usr/lib (0001-numad-pthread.patch,1.03 KB, patch)
2014-03-25 14:40 UTC, Georgi Georgiev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Georgiev 2014-03-25 14:40:05 UTC
Created attachment 373508 [details, diff]
Remove -lpthread from the Makefile, because make's search path is hardcoded to /lib /usr/lib

On a SYMLINK_LIB=no profile sys-process/numad fails with this error:

x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed  numad.o /usr/lib/libpthread.so   -o numad
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /lib/libpthread.so.0 when searching for /lib/libpthread.so.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find /lib/libpthread.so.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libpthread_nonshared.a when searching for /usr/lib/libpthr
ead_nonshared.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find /usr/lib/libpthread_nonshared.a

As you can imagine, /usr/lib/libpthread.so is actually the 32-bit version, while the 64-bit is in /usr/lib64/libpthread.so

There is a similar bug on RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=825153 and their fix works just fine for Gentoo, too. Attached.
Comment 1 SpanKY gentoo-dev 2014-04-23 19:49:06 UTC
should be all set now in the tree; thanks for the report!

Commit message: Fix building with SYMLINK_LIB=no
http://sources.gentoo.org/sys-process/numad/files/numad-0.5-ldlibs.patch?rev=1.1
http://sources.gentoo.org/sys-process/numad/numad-0.5-r2.ebuild?rev=1.1