[egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT..

M.-A. Lemburg mal at lemburg.com
Wed Mar 26 09:43:15 CET 2003


Mezz bsdforums.org wrote:
> Hello,
> 
> I am trying to port Straw (python script), but it doesn't work. I turned 
> everything on the debug mode and found the problem. It was mxDateTime 
> and I have no idea how to solve this problem.
> 
> Please, check this url for the more details. 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be 
> in the bottom of this email.)
> 
> The version is 2.0.3, but I tried 2.0.4 and still have the same result.
> 
> FreeBSD 5.0-CURRENT has GCC 3.2.2..
> 
> =============================
> macros to undefine: []
> running build_ext
> building 'mx.DateTime.mxDateTime.mxDateTime' extension
> creating build/temp.freebsd-5.0-CURRENT-i386-2.2
> creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx
> creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime
> creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime
> creating
> build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime
> cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC 
> -Imx/DateTime/mxDateTime
> -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o
> build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o 
> 
> -O -pipe -g -march=pentium3
> mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New':
> mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of
> `_Py_NewReference' from incompatible pointer type
> mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free':
> mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of
> `_Py_ForgetReference' from incompatible pointer type
> mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New':
> mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of
> `_Py_NewReference' from incompatible pointer type
> mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free':
> mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of
> `_Py_ForgetReference' from incompatible pointer type
> =============================
> 
> So, if you guys know any of hint to fix it, feel free to send me a patch 
> or update the tarball to download egenix-mx-base. Unless, you have any 
> of plan to update the next version soon, hope you will fix this one too.

It is already fixed in our current beta. The fix is easy:
simply remove all of the above lines. Note that the problem
only occurs in Python debug builds. Standard builds work just
fine.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Software directly from the Source  (#1, Mar 26 2003)
 >>> Python/Zope Products & Consulting ...         http://www.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________
Python UK 2003, Oxford:                                      6 days left
EuroPython 2003, Charleroi, Belgium:                        90 days left



More information about the egenix-users mailing list