[issue4366] cannot find -lpython2.5 when buinding Python 2.5.2 on FreeBSD 4.11
New submission from Akira Kitada [EMAIL PROTECTED]: I get a number of cannot find -lpython2.5 error when building Python 2.5.2 on FreeBSD 2.5.2 with gcc 2.95.4. This problem is only occured when I build it with --enable-shared configure option. This is how you can reproduce this problem. cd Python-2.5.2 configure --enable-shared make and you will get gcc -shared build/temp.freebsd-4.11-RELEASE-i386-2.5/usr/home/build/dev/Python-2.5.2/Modules/_struct.o -L/usr/local/lib -lpython2.5 -o build/lib.freebsd-4.11-RELEASE-i386-2.5/_ struct.so /usr/libexec/elf/ld: cannot find -lpython2.5 ... /home/build/dev/Python-2.5.2/Modules/_ctypes/libffi/src/x86/sysv.o -L/usr/local/lib -lpython2.5 -o build/lib.freebsd-4.11-RELEASE-i386-2.5/_ctypes.so /usr/libexec/elf/ld: cannot find -lpython2.5 ... gcc -shared build/temp.freebsd-4.11-RELEASE-i386-2.5/usr/home/build/dev/Python-2.5.2/Modules/_ctypes/_ctypes_test.o -L/usr/local/lib -lpython2.5 -o build/lib.freebsd-4.11-RELEA SE-i386-2.5/_ctypes_test.so /usr/libexec/elf/ld: cannot find -lpython2.5 ... gcc -shared build/temp.freebsd-4.11-RELEASE-i386-2.5/usr/home/build/dev/Python-2.5.2/Modules/_weakref.o -L/usr/local/lib -lpython2.5 -o build/lib.freebsd-4.11-RELEASE-i386-2.5/ _weakref.so /usr/libexec/elf/ld: cannot find -lpython2.5 ... gcc -shared build/temp.freebsd-4.11-RELEASE-i386-2.5/usr/home/build/dev/Python-2.5.2/Modules/arraymodule.o -L/usr/local/lib -lpython2.5 -o build/lib.freebsd-4.11-RELEASE-i386-2 .5/array.so /usr/libexec/elf/ld: cannot find -lpython2.5 .. You can workaround this by running ./configure LDFLAGS=-L. --enable-shared. -- components: Build messages: 76117 nosy: akitada severity: normal status: open title: cannot find -lpython2.5 when buinding Python 2.5.2 on FreeBSD 4.11 type: compile error versions: Python 2.5 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4366 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4366] cannot find -lpython2.5 when buinding Python 2.5.2 on FreeBSD 4.11
Christian Heimes [EMAIL PROTECTED] added the comment: Please try this patch with a clean source tree. It adds the current directory to the library search path. Index: setup.py === --- setup.py(revision 67295) +++ setup.py(working copy) @@ -245,6 +245,7 @@ def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') +add_dir_to_list(self.compiler.library_dirs, '.') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') # Add paths specified in the environment variables LDFLAGS and -- nosy: +christian.heimes ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4366 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4366] cannot find -lpython2.5 when buinding Python 2.5.2 on FreeBSD 4.11
Akira Kitada [EMAIL PROTECTED] added the comment: Christian's patch fixed this problem! (tested on 4.11-RELEASE) I'm not sure why the other platforms don't suffer this problem. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4366 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com