[ZPatterns] Problems using fsrecover.py from 2.5.1 with 2.4.3?

Roch'e Compaan roche@upfrontsystems.co.za
Wed, 1 May 2002 15:59:05 +0200


> > For the record, during startup, Zope warns:
> >=20
> >  WARNING: Python C API version mismatch for module DynPersist:
> >    This Python has API version 1010, module DynPersist has version =
1007.
> >=20
> > We haven't been able to successfully recompile the dynpersist =
module,
> > so we've been ignoring the warning.
>=20
> I wouldn't ignore that warning. I suggest recompiling the=20
> dynpersist module.

We *tried* not to but recompilation gives an error that we
can't figure out:=20

roche@blommie ZPatterns $ make -f Makefile.pre.in boot
rm -f *.o *~
rm -f *.a tags TAGS config.c Makefile.pre python2.1 sedscript
rm -f *.so *.sl so_locations
VERSION=3D`python2.1 -c "import sys; print sys.version[:3]"`; \
installdir=3D`python2.1 -c "import sys; print sys.prefix"`; \
exec_installdir=3D`python2.1 -c "import sys; print sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=3D. srcdir=3D. \
        VERSION=3D$VERSION \
        installdir=3D$installdir \
        exec_installdir=3D$exec_installdir \
        Makefile
make[1]: Entering directory =
`/usr/local/zope/2-4-3/lib/python/Products/ZPatterns'
sed -n \
 -e '1s/.*/1i\\/p' \
 -e '2s%.*%# Generated automatically from Makefile.pre.in by =
sedscript.%p' \
 -e '/^VERSION=3D/s/^VERSION=3D[    ]*\(.*\)/s%@VERSION[@]%\1%/p' \
 -e '/^CC=3D/s/^CC=3D[      ]*\(.*\)/s%@CC[@]%\1%/p' \
 -e '/^CXX=3D/s/^CXX=3D[    ]*\(.*\)/s%@CXX[@]%\1%/p' \
 -e '/^LINKCC=3D/s/^LINKCC=3D[      ]*\(.*\)/s%@LINKCC[@]%\1%/p' \
 -e '/^OPT=3D/s/^OPT=3D[    ]*\(.*\)/s%@OPT[@]%\1%/p' \
 -e '/^LDFLAGS=3D/s/^LDFLAGS=3D[    ]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \
 -e '/^LDLAST=3D/s/^LDLAST=3D[      ]*\(.*\)/s%@LDLAST[@]%\1%/p' \
 -e '/^DEFS=3D/s/^DEFS=3D[  ]*\(.*\)/s%@DEFS[@]%\1%/p' \
 -e '/^LIBS=3D/s/^LIBS=3D[  ]*\(.*\)/s%@LIBS[@]%\1%/p' \
 -e '/^LIBM=3D/s/^LIBM=3D[  ]*\(.*\)/s%@LIBM[@]%\1%/p' \
 -e '/^LIBC=3D/s/^LIBC=3D[  ]*\(.*\)/s%@LIBC[@]%\1%/p' \
 -e '/^RANLIB=3D/s/^RANLIB=3D[      ]*\(.*\)/s%@RANLIB[@]%\1%/p' \
 -e '/^MACHDEP=3D/s/^MACHDEP=3D[    ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \
 -e '/^SO=3D/s/^SO=3D[      ]*\(.*\)/s%@SO[@]%\1%/p' \
 -e '/^LDSHARED=3D/s/^LDSHARED=3D[  ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \
 -e '/^CCSHARED=3D/s/^CCSHARED=3D[  ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \
 -e '/^SGI_ABI=3D/s/^SGI_ABI=3D[    ]*\(.*\)/s%@SGI_ABI[@]%\1%/p' \
 -e '/^LINKFORSHARED=3D/s/^LINKFORSHARED=3D[        =
]*\(.*\)/s%@LINKFORSHARED[@]%\1%/p' \
 -e '/^prefix=3D/s/^prefix=3D\(.*\)/s%^prefix=3D.*%prefix=3D\1%/p' \
 -e =
'/^exec_prefix=3D/s/^exec_prefix=3D\(.*\)/s%^exec_prefix=3D.*%exec_prefix=
=3D\1%/p' \
 /usr/lib/python2.1/config/Makefile >sedscript
echo "/^installdir=3D/s%=3D.*%=3D     /usr%" >>sedscript
echo "/^exec_installdir=3D/s%=3D.*%=3D/usr%" >>sedscript
echo "/^srcdir=3D/s%=3D.*%=3D         .%" >>sedscript
echo "/^VPATH=3D/s%=3D.*%=3D          .%" >>sedscript
echo "/^LINKPATH=3D/s%=3D.*%=3D       %" >>sedscript
echo "/^BASELIB=3D/s%=3D.*%=3D        %" >>sedscript
echo "/^BASESETUP=3D/s%=3D.*%=3D      %" >>sedscript
sed -f sedscript ./Makefile.pre.in >Makefile.pre
/usr/lib/python2.1/config/makesetup \
         -m Makefile.pre -c /usr/lib/python2.1/config/config.c.in Setup =
-n  /usr/lib/python2.1/config/Setup.config =
/usr/lib/python2.1/config/Setup.local /usr/lib/python2.1/config/Setup
 in *shared*ared*
make[1]: *** [Makefile] Error 1
make[1]: Leaving directory =
`/usr/local/zope/2-4-3/lib/python/Products/ZPatterns'
make: *** [boot] Error 2

--=20
Roch=E9 Compaan
Upfront Systems			http://www.upfrontsystems.co.za=20