[ZODB-Dev] SVN: ZODB/trunk/ Note split of persistent.

Adam GROSZER agroszer.ll at gmail.com
Mon Aug 27 06:57:10 UTC 2012


Hello,

Now we have some problems making the binary eggs.
See the attached txt for the full output.

On 08/26/2012 09:07 PM, Tres Seaver wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 08/26/2012 07:05 AM, Hanno Schlichting wrote:
>> On Sat, Aug 25, 2012 at 4:11 PM, Tres Seaver <tseaver at palladion.com>
>> wrote:
>>> This failure, and the others like it, indicate that the buildout
>>> has failed to install persistent correctly (there is nothing
>>> Windows-specific about the failure)::
>>
>> I actually got the same error locally.
>>
>> The trouble is the timestamp.py module and the TimeStamp.c extension.
>> During installation setuptools creates a wrapper for the extension
>> file. So you end up with TimeStamp.so but also a timestamp.py
>> wrapper. This wrapper overwrites the original timestamp.py module.
>>
>> You likely have a case-sensitive file system and therefor didn't get
>> this problem.
>
> Whoever came up with the idea of a case-insensitive filesystem should be
> shot (or at least, whoever decided to keep doing that after moving off of
> DOS).
>
> I have worked around this problem (I think) by renaming the extension
> module to '_timestamp.so'.  I released a 4.0.1 to PyPI with this fix,
> along with a fix for the int -> long overflow on 32-bit systems.
>
>> I think TimeStamp.c has been there before and is imported in other
>> modules as "from persistent.TimeStamp import TimeStamp". So we should
>> keep that API and use a different name for the new timestamp.py
>> module.
>
> I don't see the need for the BBB-preservation here:  I documented the
> backward-incompatibility in CHANGES.txt instead.
>
>
> Tres.
> - --
> ===================================================================
> Tres Seaver          +1 540-429-0999          tseaver at palladion.com
> Palladion Software   "Excellence by Design"    http://palladion.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAlA6c9IACgkQ+gerLs4ltQ6ocACeIqlGWazwos+yWGaMvgMCOkQD
> ZQoAn3oR2rY70a1oT6aTjLpofIVtVBNd
> =GzPs
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> For more information about ZODB, see http://zodb.org/
>
> ZODB-Dev mailing list  -  ZODB-Dev at zope.org
> https://mail.zope.org/mailman/listinfo/zodb-dev
>


-- 
Best regards,
  Adam GROSZER
--
Quote of the day:
Never let a man imagine that he can pursue a good end by evil means, 
without sinning against his own soul. The evil effect on himself is certain.
- Robert Southey
-------------- next part --------------
running build_ext
building 'persistent.cPersistence' extension
creating build
creating build\temp.win32-2.6
creating build\temp.win32-2.6\Release
creating build\temp.win32-2.6\Release\persistent
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python26_32\include -Ic:\Python26_32\PC /Tcpersistent/cPersistence.c /Fobuild\temp.win32-2.6\Release\persistent/cPersistence.obj
cPersistence.c
persistent/cPersistence.c(1124) : warning C4047: '>' : '__int64' differs in levels of indirection from 'PyObject *'
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python26_32\include -Ic:\Python26_32\PC /Tcpersistent/ring.c /Fobuild\temp.win32-2.6\Release\persistent/ring.obj
ring.c
creating build\lib.win32-2.6
creating build\lib.win32-2.6\persistent
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\Python26_32\libs /LIBPATH:c:\Python26_32\PCbuild /EXPORT:initcPersistence build\temp.win32-2.6\Release\persistent/cPersistence.obj build\temp.win32-2.6\Release\persistent/ring.obj /OUT:build\lib.win32-2.6\persistent\cPersistence.pyd /IMPLIB:build\temp.win32-2.6\Release\persistent\cPersistence.lib /MANIFESTFILE:build\temp.win32-2.6\Release\persistent\cPersistence.pyd.manifest
   Creating library build\temp.win32-2.6\Release\persistent\cPersistence.lib and object build\temp.win32-2.6\Release\persistent\cPersistence.exp
C:\Program Files\Microsoft SDKs\Windows\v6.1\bin\mt.exe -nologo -manifest build\temp.win32-2.6\Release\persistent\cPersistence.pyd.manifest -outputresource:build\lib.win32-2.6\persistent\cPersistence.pyd;2
building 'persistent.cPickleCache' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python26_32\include -Ic:\Python26_32\PC /Tcpersistent/cPickleCache.c /Fobuild\temp.win32-2.6\Release\persistent/cPickleCache.obj
cPickleCache.c
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python26_32\include -Ic:\Python26_32\PC /Tcpersistent/ring.c /Fobuild\temp.win32-2.6\Release\persistent/ring.obj
ring.c
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\Python26_32\libs /LIBPATH:c:\Python26_32\PCbuild /EXPORT:initcPickleCache build\temp.win32-2.6\Release\persistent/cPickleCache.obj build\temp.win32-2.6\Release\persistent/ring.obj /OUT:build\lib.win32-2.6\persistent\cPickleCache.pyd /IMPLIB:build\temp.win32-2.6\Release\persistent\cPickleCache.lib /MANIFESTFILE:build\temp.win32-2.6\Release\persistent\cPickleCache.pyd.manifest
   Creating library build\temp.win32-2.6\Release\persistent\cPickleCache.lib and object build\temp.win32-2.6\Release\persistent\cPickleCache.exp
C:\Program Files\Microsoft SDKs\Windows\v6.1\bin\mt.exe -nologo -manifest build\temp.win32-2.6\Release\persistent\cPickleCache.pyd.manifest -outputresource:build\lib.win32-2.6\persistent\cPickleCache.pyd;2
building 'persistent._timestamp' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Python26_32\include -Ic:\Python26_32\PC /Tcpersistent/_timestamp.c /Fobuild\temp.win32-2.6\Release\persistent/_timestamp.obj
_timestamp.c
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\Python26_32\libs /LIBPATH:c:\Python26_32\PCbuild /EXPORT:init_timestamp build\temp.win32-2.6\Release\persistent/_timestamp.obj /OUT:build\lib.win32-2.6\persistent\_timestamp.pyd /IMPLIB:build\temp.win32-2.6\Release\persistent\_timestamp.lib /MANIFESTFILE:build\temp.win32-2.6\Release\persistent\_timestamp.pyd.manifest
LINK : error LNK2001: unresolved external symbol init_timestamp
build\temp.win32-2.6\Release\persistent\_timestamp.lib : fatal error LNK1120: 1 unresolved externals


More information about the ZODB-Dev mailing list