1.5.2 compilation with *shared* on Sunos 5.7 fails tests

Tony McDonald tone.mcdonald at ncl.ac.uk
Fri May 21 11:31:40 EDT 1999


Hi,
I'm trying to get 1.5.2 compiled up using shared libraries on SunOS 5.7 so I
can use Zope 2.0 (http://www.zope.org/). I'm also using GCC: egcs-2.91.66

If I do a simple ./configure with *shared* left commented in Modules/Setup
(copied from Setup.in *before* the ./configure), I can get everything made
up and generally things pass 'make test'.

% make test
....
42 tests OK.
19 tests skipped: test_al test_audioop test_bsddb test_cd test_cl test_crypt
test_dbm test_dl test_gdbm test_gl test_gzip test_imageop test_imgfile
test_nis test_rgbimg test_sunaudiodev test_thread test_timing test_zlib
...

If I then go into the lib directory of Zope and do the
following...(ExtensionClass is used by Zope 2)
% python
Python 1.5.2 (#1, May 21 1999, 09:17:08)  [GCC egcs-2.91.66 19990314
(egcs-1.1.2  on sunos5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import ExtensionClass
Traceback (innermost last):
  File "<stdin>", line 1, in ?
ImportError: ld.so.1: python: fatal: relocation error: file
./ExtensionClass.so: symbol PyImport_ImportModule: referenced symbol not
found

If I then do a 'make distclean', cp Setup.in Setup and edit Setup to
uncomment the  *shared* line, follow up with './configure' and 'make', I get
this from 'make test'

15 tests OK.
2 tests failed: test_re test_rfc822
44 tests skipped: test_grammar test_builtin test_MimeWriter test_al
test_array test_audioop test_binascii test_bsddb test_cd test_cl test_cmath
test_cpickle test_crypt test_dbm test_dl test_errno test_fcntl test_gdbm
test_gl test_grp test_gzip test_imageop test_imgfile test_long test_math
test_md5 test_new test_nis test_operator test_pickle test_pwd test_rgbimg
test_rotor test_select test_sha test_socket test_strftime test_strop
test_struct test_sunaudiodev test_thread test_time test_timing test_zlib
make: *** [test] Error 1

I didn't even try 'make install'

can anyone help me out here?
thanks,
Tone




More information about the Python-list mailing list