retitle 577826 missing /usr/lib/libpython2.5_d.so.1.0
thanks

On Thu, 15 Apr 2010, Matthias Klose wrote:
> >$>  cc -I. -I.. -fPIC -g -Wall -O0 -pthread ./configure-9068-28990.c -o 
> >./configure-10394-28990.o -Xlinker --no-undefined -lm -pthread -llapack 
> >-lcblas -llapack_atlas -lglpk -lm -llzo2 -lz -lbz2 -llzma 
> >-fno-strict-aliasing -fPIC -I/usr/include/python2.5_d 
> >-I/usr/lib/python2.5/site-packages/numpy/core/include -lutil -ldl -shared 
> >-lpython2.6
> python2.5 debug headers, and linking against python2.6 non-debug
> build? this can't be correct.
>   -I/usr/include/python2.5_d  [...] -lpython2.5_d
d'oh... I swear to use ^...^...^ constructs from now on in the shell ;)
Thank you!

so, the actual problem is (not sure how that slipped through my fingers+eyes):

$> dpkg -L python2.6-dbg | grep libpython.*_d.so* 
/usr/lib/libpython2.6_d.so.1.0
/usr/lib/python2.6/config_d/libpython2.6_d.so
/usr/lib/libpython2.6_d.so
/usr/lib/libpython2.6_d.so.1

$> dpkg -L python2.5-dbg | grep libpython.*_d.so* 
$>

i.e. there is no /usr/lib/libpython2.5_d.so.1.0

The correct line for me was actually to use -lpython2.5_d:

$> cc -I. -I.. -fPIC -g -Wall -O0 -pthread ./configure-9068-28990.c -o 
./configure-10394-28990.o -Xlinker --no-undefined -lm -pthread -llapack -lcblas 
-llapack_atlas -lglpk -lm -llzo2 -lz -lbz2 -llzma -fno-strict-aliasing -fPIC 
-I/usr/include/python2.5_d 
-I/usr/lib/python2.5/site-packages/numpy/core/include -lutil -ldl -shared 
-lpython2.5_d
./configure-9068-28990.c: In function ‘initsg’:
./configure-9068-28990.c:50: warning: unused variable ‘outArray’
./configure-9068-28990.c: At top level:
/usr/include/python2.5_d/numpy/__multiarray_api.h:968: warning: ‘_import_array’ 
defined but not used
/usr/bin/ld: cannot find -lpython2.5_d
collect2: ld returned 1 exit status
$> ^2.5^2.6^:G
cc -I. -I.. -fPIC -g -Wall -O0 -pthread ./configure-9068-28990.c -o 
./configure-10394-28990.o -Xlinker --no-undefined -lm -pthread -llapack -lcblas 
-llapack_atlas -lglpk -lm -llzo2 -lz -lbz2 -llzma -fno-strict-aliasing -fPIC 
-I/usr/include/python2.6_d 
-I/usr/lib/python2.6/site-packages/numpy/core/include -lutil -ldl -shared 
-lpython2.6_d
./configure-9068-28990.c: In function ‘initsg’:
./configure-9068-28990.c:50: warning: unused variable ‘outArray’
./configure-9068-28990.c: At top level:
/usr/include/python2.6_d/numpy/__multiarray_api.h:968: warning: ‘_import_array’ 
defined but not used
$>

so builds fine for 2.6 but not 2.5 ;)

-- 
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to