Re: [Fink-devel] Problem compiling a python module
Sébastien Maret wrote: [] ImportError: Failure linking new module: /Users/smaret/Desktop/python- bibtex-1.2.1/build/lib.darwin-8.1.0-PowerMacintosh-2.3/_recode.so: Symbol not found: _program_name Referenced from: /sw/lib/librecode.0.dylib Expected in: dynamic lookup I think this is a problem with recode (libtool's fault, actually): It builds its dylib with -undefined dynamic_lookup. With the new behavior of dyld on Tiger, dylibs shouldn't be built using this flag ever, or else one gets the kind of error you are seeing. The missing symbol is from libgettextlib.dylib, and instead of the -undefined dynamic_lookup flag there should be a -lgettextlib flag on the linker line of recode (plus the corresponding BuildDepends entry in the info file). Once the -lgettextlib flag is there, the -undefined dynamic_lookup is actually inoffensive, because there is no more undefined symbol to lookup. Surprisingly, the build and installation go well with MacOSX's python: One would have to compare the details of the two setup procedures, in particular the difference in running check. -- Martin --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61 plasma display: http://www.necitguy.com/?r ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] Problem compiling a python module
On Jun 12, 2005, at 4:06, Martin Costabel wrote: Sébastien Maret wrote: ImportError: Failure linking new module: /Users/smaret/Desktop/ python- bibtex-1.2.1/build/lib.darwin-8.1.0-PowerMacintosh-2.3/ _recode.so: Symbol not found: _program_name Referenced from: /sw/lib/librecode.0.dylib Expected in: dynamic lookup I think this is a problem with recode (libtool's fault, actually): It builds its dylib with -undefined dynamic_lookup. With the new behavior of dyld on Tiger, dylibs shouldn't be built using this flag ever, or else one gets the kind of error you are seeing. The missing symbol is from libgettextlib.dylib, and instead of the - undefined dynamic_lookup flag there should be a -lgettextlib flag on the linker line of recode (plus the corresponding BuildDepends entry in the info file). Once the -lgettextlib flag is there, the - undefined dynamic_lookup is actually inoffensive, because there is no more undefined symbol to lookup. Thanks Martin. Adding a -lgettextlib flag fixed the problem. Frédéric, would you mind if I commit the changes in the recode package ? Sébastien --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61 plasma display: http://www.necitguy.com/?r ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] Problem compiling a python module
It builds its dylib with -undefined dynamic_lookup. With the new behavior of dyld on Tiger, dylibs shouldn't be built using this flag ever, or else one gets the kind of error you are seeing. The missing symbol is from libgettextlib.dylib, and instead of the - undefined dynamic_lookup flag there should be a -lgettextlib flag on the linker line of recode (plus the corresponding BuildDepends entry in the info file). Once the -lgettextlib flag is there, the - undefined dynamic_lookup is actually inoffensive, because there is no more undefined symbol to lookup. Thanks Martin. Adding a -lgettextlib flag fixed the problem. Frédéric, would you mind if I commit the changes in the recode package ? No problem for me (I didn't buy Tiger so far anyway, so I can't check your fix :-)) Frédéric signature.asc Description: Digital signature
[Fink-devel] Problem compiling a python module
I am trying to build python-bibtex under Tiger. The package (that I maintain) does not compile anymore on Tiger, so I have I tried to download the source and compile it by myself. When I build it with Fink's python2.3 and install it, I get the following error: [kepler:~/Desktop/python-bibtex-1.2.1] smaret% /sw/bin/python2.3 setup.py build_ext -I/sw/include -L/sw/lib [...] [kepler:~/Desktop/python-bibtex-1.2.1] smaret% sudo /sw/bin/python2.3 setup.py install --prefix=/usr/local running install running check running build running build_ext Traceback (most recent call last): File setup.py, line 210, in ? libraries = ['recode']) File /sw/src/root-python23-2.3.5-12/sw/lib/python2.3/distutils/ core.py, line 149, in setup File /sw/src/root-python23-2.3.5-12/sw/lib/python2.3/distutils/ dist.py, line 907, in run_commands File /sw/src/root-python23-2.3.5-12/sw/lib/python2.3/distutils/ dist.py, line 927, in run_command File setup.py, line 165, in run self.run_command ('check') File /sw/lib/python2.3/cmd.py, line 333, in run_command File /sw/src/root-python23-2.3.5-12/sw/lib/python2.3/distutils/ dist.py, line 927, in run_command File setup.py, line 149, in run failures = testsuite.run () File /Users/smaret/Desktop/python-bibtex-1.2.1/testsuite.py, line 101, in run failures += check_recode () File /Users/smaret/Desktop/python-bibtex-1.2.1/testsuite.py, line 9, in check_recode import _recode ImportError: Failure linking new module: /Users/smaret/Desktop/python- bibtex-1.2.1/build/lib.darwin-8.1.0-PowerMacintosh-2.3/_recode.so: Symbol not found: _program_name Referenced from: /sw/lib/librecode.0.dylib Expected in: dynamic lookup Surprisingly, the build and installation go well with MacOSX's python: [kepler:~/Desktop/python-bibtex-1.2.1] smaret% /usr/bin/python setup.py build_ext -I/sw/include -L/sw/lib [...] [kepler:~/Desktop/python-bibtex-1.2.1] smaret% sudo /usr/bin/python setup.py install --prefix=/usr/local running install running check running build running build_ext testsuite: 2 checks, 0 failures running install_lib copying build/lib.darwin-8.1.0-Power_Macintosh-2.3/_bibtex.so - /usr/ local/lib/python2.3/site-packages copying build/lib.darwin-8.1.0-Power_Macintosh-2.3/_recode.so - /usr/ local/lib/python2.3/site-packages [kepler:~/Desktop/python-bibtex-1.2.1] smaret% What could explain this ? Is this a bug in Fink's python2.3 ? The versions looks the same: [kepler:~/Desktop/python-bibtex-1.2.1] smaret% python2.3 Python 2.3.5 (#1, May 15 2005, 13:23:15) [GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin Type help, copyright, credits or license for more information. [kepler:~/Desktop/python-bibtex-1.2.1] smaret% /usr/bin/python Python 2.3.5 (#1, Mar 20 2005, 20:38:20) [GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin Type help, copyright, credits or license for more information. [kepler:~/Desktop/python-bibtex-1.2.1] smaret% --- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61 plasma display: http://www.necitguy.com/?r=20 ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel