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.
Created attachment 237793 [details, diff] Look for libraries in solib instead of lib.
Thanks Johan, I fixed that yesterday.