[Zope] ZMySQLDA instal Import Error problem

Richard Moon richard@dcs.co.uk
Fri, 29 Sep 2000 19:00:41 +0100

Installing MySQLDA-0.1.2 and running

python build.py

I get the error

Import Error: ./_mysqlmodule.so: undefined symbol: uncompress

Any clues ? I've just installed the latest (3.23.25) MySQL rpms on Linux 
6.1, including the client and development libraries, this seems to have put 
stuff in usr/lib and usr/lib/mysql so I made sure that these paths were in 
/etc/ld.so.conf and re-ran /sbin/ldconfig.

Here's the full output - thanks in advance.

rm -f *.o *~
rm -f *.a tags TAGS config.c Makefile.pre python sedscript
rm -f *.so *.sl so_locations
VERSION=`python -c "import sys; print sys.version[:3]"`; \
installdir=`python -c "import sys; print sys.prefix"`; \
exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=. srcdir=. \
         installdir=$installdir \
         exec_installdir=$exec_installdir \
make[1]: Entering directory `/opt/Zope-2.2.1/lib/python/Products/MySQLdb-0.1.2'
sed -n \
  -e '1s/.*/1i\\/p' \
  -e '2s%.*%# Generated automatically from Makefile.pre.in by sedscript.%p' \
  -e '/^VERSION=/s/^VERSION=[    ]*\(.*\)/s%@VERSION[@]%\1%/p' \
  -e '/^CC=/s/^CC=[      ]*\(.*\)/s%@CC[@]%\1%/p' \
  -e '/^CCC=/s/^CCC=[    ]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \
  -e '/^LINKCC=/s/^LINKCC=[      ]*\(.*\)/s%@LINKCC[@]%\1%/p' \
  -e '/^OPT=/s/^OPT=[    ]*\(.*\)/s%@OPT[@]%\1%/p' \
  -e '/^LDFLAGS=/s/^LDFLAGS=[    ]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \
  -e '/^LDLAST=/s/^LDLAST=[      ]*\(.*\)/s%@LDLAST[@]%\1%/p' \
  -e '/^DEFS=/s/^DEFS=[  ]*\(.*\)/s%@DEFS[@]%\1%/p' \
  -e '/^LIBS=/s/^LIBS=[  ]*\(.*\)/s%@LIBS[@]%\1%/p' \
  -e '/^LIBM=/s/^LIBM=[  ]*\(.*\)/s%@LIBM[@]%\1%/p' \
  -e '/^LIBC=/s/^LIBC=[  ]*\(.*\)/s%@LIBC[@]%\1%/p' \
  -e '/^RANLIB=/s/^RANLIB=[      ]*\(.*\)/s%@RANLIB[@]%\1%/p' \
  -e '/^MACHDEP=/s/^MACHDEP=[    ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \
  -e '/^SO=/s/^SO=[      ]*\(.*\)/s%@SO[@]%\1%/p' \
  -e '/^LDSHARED=/s/^LDSHARED=[  ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \
  -e '/^CCSHARED=/s/^CCSHARED=[  ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \
  -e '/^SGI_ABI=/s/^SGI_ABI=[    ]*\(.*\)/s%@SGI_ABI[@]%\1%/p' \
/p' \
  -e '/^prefix=/s/^prefix=\(.*\)/s%^prefix=.*%prefix=\1%/p' \
'/^exec_prefix=/s/^exec_prefix=\(.*\)/s%^exec_prefix=.*%exec_prefix=\1%/p' \

  /usr/lib/python1.5/config/Makefile >sedscript
echo "/^#@SET_CCC@/d" >>sedscript
echo "/^installdir=/s%=.*%=     /usr%" >>sedscript
echo "/^exec_installdir=/s%=.*%=/usr%" >>sedscript
echo "/^srcdir=/s%=.*%=         .%" >>sedscript
echo "/^VPATH=/s%=.*%=          .%" >>sedscript
echo "/^LINKPATH=/s%=.*%=       %" >>sedscript
echo "/^BASELIB=/s%=.*%=        %" >>sedscript
echo "/^BASESETUP=/s%=.*%=      %" >>sedscript
sed -f sedscript ./Makefile.pre.in >Makefile.pre
/usr/lib/python1.5/config/makesetup \
          -m Makefile.pre -c /usr/lib/python1.5/config/config.c.in Setup 
-n  /usr
/lib/python1.5/config/Setup.thread /usr/lib/python1.5/config/Setup.local 
make -f Makefile do-it-again
make[2]: Entering directory `/opt/Zope-2.2.1/lib/python/Products/MySQLdb-0.1.2'
/usr/lib/python1.5/config/makesetup \
          -m Makefile.pre -c /usr/lib/python1.5/config/config.c.in Setup 
-n  /usr
/lib/python1.5/config/Setup.thread /usr/lib/python1.5/config/Setup.local 
make[2]: Leaving directory `/opt/Zope-2.2.1/lib/python/Products/MySQLdb-0.1.2'
make[1]: Leaving directory `/opt/Zope-2.2.1/lib/python/Products/MySQLdb-0.1.2'
gcc -fPIC  -I/usr/include/mysql -g -O2 -I/usr/include/python1.5 
ython1.5 -DHAVE_CONFIG_H -c ./_mysqlmodule.c
./_mysqlmodule.c: In function `_mysql_ConnectionObject_num_fields':
./_mysqlmodule.c:909: warning: passing arg 1 of `mysql_num_fields' from 
ible pointer type
gcc -shared  _mysqlmodule.o  -L/usr/lib/mysql -lmysqlclient -o _mysqlmodule.so
Traceback (innermost last):
   File "build.py", line 14, in ?
     import MySQLdb
   File "MySQLdb.py", line 19, in ?
     from _mysql import *
ImportError: ./_mysqlmodule.so: undefined symbol: uncompress



Richard Moon