Does anyone have any experience attempting this? I'm not asking for support for Zope on AIX, just for support for the build system. ;-) Building from the source distribution, having built my own Python 1.5.1 separately, mis-sets the "srcdir" variable to ".", from the perspective of a linking script found in $PYTHONHOME/lib/python-1.5/config. This makes the .o files not get linked into shared libraries. Alas, hard-coding paths didn't get me a success. So I tried the binary porting kit, and it was worse. It made its own python, then installed it as local/bin/python-1.5 and later tried to invoke it as local/bin/python. I never did get it to work, as there were numerous problems at the "can't build Makefile" level, and several core dumps from /bin/sh(!). One problem that there's little excuse for, when building from your standard source distro: Compiling extensions in lib/python make -f Makefile.pre.in boot PYTHON=/home/kwr/bin/python [...snip...] gcc -g -O2 -I/home/kwr/include/python1.5 -I/home/kwr/include/python1.5 -DHAVE_CONFIG_H -I../Components/ExtensionClass -c ./../Components/ExtensionClass/ExtensionClass.c ./ld_so_aix gcc ExtensionClass.o -o ExtensionClass.so make: ./ld_so_aix: Command not found make: *** [ExtensionClass.so] Error 127 make clean rm -f *.o *~ (1) Hey! You failed to make the shared object! Stop! (2) Hey!!! You failed!!! Don't clean up the evidence!!! (3) ld_so_aix is in the $PYTHON_HOME/lib/python1.5/config directory; the "." in "./ld_so_aix" comes from $(srcdir). Dunno who's wrong here. Keith (at least Python seemed to build OK)
Keith Rohrer wrote:
Does anyone have any experience attempting this? I'm not asking for support for Zope on AIX, just for support for the build system. ;-)
I've built Zope in AIX. I'm posting an email that I've already sent to the list. Here it is: I've compiled Zope in AIX, the process to do it is really a little dirty. If you don't want to use your own python, I believe you'd be able to compile it statically just by removing the line "*shared*" from the Setup files. There are them: find . -name "Setup" -exec grep "*shared*" /dev/null {} \; ./lib/python/Setup:*shared* ./lib/python/BoboPOS/Setup:*shared* ./lib/python/DocumentTemplate/Setup:*shared* ./lib/python/Products/MailHost/Setup:*shared* ./lib/python/Products/MailHost/sample/Setup:*shared* ./lib/python/Products/ZMySQLDA/src/Setup:*shared* ./lib/Components/ExtensionClass/Setup:*shared* ./lib/Components/cPickle/Setup:*shared* ./lib/Components/zlib/Setup:*shared* Here's how I've compiled with my own python: 1)Download, compile, and install your own python from http://www.python.org . I believe you have to uncomment the *shared* line in the Setup file, before compiling. 2)Get the source Zope 3)You'll have to copy(link) from the python/Modules dir the files ld_so_aix, makexp_aix, and python.exp to the dirs: find . -name "ld_so_aix" -print ./ld_so_aix ./lib/python/BoboPOS/ld_so_aix ./lib/python/DocumentTemplate/ld_so_aix ./lib/python/ld_so_aix ./lib/Components/ExtensionClass/ld_so_aix Now compile Zope and it should work. hope this helps, -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html
participants (2)
-
Keith Rohrer -
Paulo Eduardo Neves