This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mauger
Recipients mauger
Date 2009-11-18.21:07:44
SpamBayes Score 3.6134384e-10
Marked as misclassified No
Message-id <1258578467.08.0.137292547946.issue7352@psf.upfronthosting.co.za>
In-reply-to
Content
Hi Python!

I installed python2.6 from official source tarball under Scientific
Linux 5.2. I use the python2.6-config utility through makefiles to link
against lipython2.6.so. The installation prefix is NOT /usr nor some
standard /usr/local path.
The problem is that the python2.6-config --ldflags
does not print the linker -L<install shared library path>
so 'ld' failed with some "non found lipython2.6.so" error.

Is it a feature or a mistake in the 
build/installation process of Python2.6 ?

Thanks a lot to give any useful hint.

Some details of my config follow: 
>>>
bash-3.2$ cat /etc/redhat-release 
Scientific Linux SL release 5.3 (Boron)

bash-3.2$ uname -a
Linux XXXXXX 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 23:02:51 EST 2009
x86_64 x86_64 x86_64 GNU/Linux

bash-3.2$ python -V
Python 2.6.4

bash-3.2$ python2.6-config --prefix
/some_path/sw/python/install_2.6.4_Linux-x86_64

bash-3.2$ ls -l /some_path/sw/python/install_2.6.4_Linux-x86_64/lib
total 5419
lrwxr-xr-x  1 mauger nemo      19 Nov 18 11:03 libpython2.6.so ->
libpython2.6.so.1.0
-r-xr-xr-x  1 mauger nemo 5524796 Nov 18 11:03 libpython2.6.so.1.0
drwxr-xr-x 25 mauger nemo   22528 Nov 18 11:04 python2.6

bash-3.2$ python2.6-config --cflags
-I/some_path/sw/python/install_2.6.4_Linux-x86_64/include/python2.6
-I/some_path/sw/python/install_2.6.4_Linux-x86_64/include/python2.6
-fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes

HERE I don't get the -L/some_path/sw/python/install_2.6.4_Linux-x86_64/lib:

bash-3.2$ python2.6-config --ldflags  
-lpthread -ldl -lutil -lm -lpython2.6
<<<
History
Date User Action Args
2009-11-18 21:07:47maugersetrecipients: + mauger
2009-11-18 21:07:47maugersetmessageid: <1258578467.08.0.137292547946.issue7352@psf.upfronthosting.co.za>
2009-11-18 21:07:45maugerlinkissue7352 messages
2009-11-18 21:07:44maugercreate