Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327201 - sci-libs/cbflib-0.9.0-r2 does not link to it own libcbf
Summary: sci-libs/cbflib-0.9.0-r2 does not link to it own libcbf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-06 19:44 UTC by Johan Hattne
Modified: 2010-07-07 06:17 UTC (History)
1 user (show)

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


Attachments
Look for libraries in solib instead of lib. (0.9.0-python-solib.patch,417 bytes, patch)
2010-07-06 19:45 UTC, Johan Hattne
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Hattne 2010-07-06 19:44:24 UTC
Looks like libcbf is linking to /usr/lib/libcbf instead of its own while compiling the python code.  The attached patch works around the issue on Linux but may very well break elsewhere (I haven't checked, but I assume that the library will not be in the solib directory on every platform).

Reproducible: Always

Steps to Reproduce:
1. rm /usr/lib/libcbf.*
2. emerge cbflib
3.

Actual Results:  
x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -march=core2 -msse4 -mcx16 -msahf -O2 -pipe -D_USE_XOPEN_EXTENDED build-2.6/temp.linux-x86_64-2.6/pycbf_wrap.o build-2.6/temp.linux-x86_64-2.6/../src/cbf_simple.o -L../lib/ -L/usr/lib64 -lcbf -lpython2.6 -o build-2.6/lib.linux-x86_64-2.6/_pycbf.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcbf
collect2: ld returned 1 exit status
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1


Expected Results:  
cbflib merged.
Comment 1 Johan Hattne 2010-07-06 19:45:44 UTC
Created attachment 237793 [details, diff]
Look for libraries in solib instead of lib.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2010-07-07 06:17:16 UTC
Thanks Johan, I fixed that yesterday.