On Fri, May 14, 2010 at 04:01:59PM +0100, Derek Homeier wrote:
> Hi Dan,
> 
> On 14.05.2010, at 5:11AM, Daniel Macks wrote:
> 
> > Both platforms' autodetect and determine to build the mmap module, but
> > on 10.6 the actual compiling fails. Compare starting at the line:
> > 
> >  building 'mmap' extension
> > [compiler command looks about the same]
> > [warnings about winsize look the same]
> > [on 10.6 but not on 10.5 the following error...]
> >  /sw32/src/fink.build/python25-2.5.4-102/Python-2.5.4/Modules/mmapmodule.c: 
> > In function 'new_mmap_object':
> >  
> > /sw32/src/fink.build/python25-2.5.4-102/Python-2.5.4/Modules/mmapmodule.c:919:
> >  warning: implicit declaration of function 'open'
> >  
> > /sw32/src/fink.build/python25-2.5.4-102/Python-2.5.4/Modules/mmapmodule.c:919:
> >  error: 'O_RDWR' undeclared (first use in this function)
> >  
> > /sw32/src/fink.build/python25-2.5.4-102/Python-2.5.4/Modules/mmapmodule.c:919:
> >  error: (Each undeclared identifier is reported only once
> >  
> > /sw32/src/fink.build/python25-2.5.4-102/Python-2.5.4/Modules/mmapmodule.c:919:
> >  error: for each function it appears in.)
> > 
> > Like it's missing #include <fcntl.h> or something. Probably some
> > unrelated platform difference triggers some difference in #include
> > spaghetti somewhere? See if you can patch mmapmodule.c to add fcntl.h
> > 
> > I vaguely remember other cases where python-module packages where the
> > standard build system don't abort when a fatal compiler error occurs.
> > Makes debugging/packaging "interesting":(
> 
> thanks for the pointer, you're quite right! 
> Patching mmapmodule.c as you suggested worked. I am attaching the updated 
> info and 
> patch files (including the update to 2.5.5, as this is only a security fix 
> release, there don't 
> seem to be many other changes).

Committed (new version is a nice touch too, hadn't thought to look for
"new version of very old version":).

> Checking the build log revealed three other errors 
> bypassed in the same way: ctypes, bsddb and resource are broken as well 
> (all three do work in python2.5 on 10.5 and python2.6 on 10.6. ctypes and 
> resource also 
> work in OS X's /usr/bin/python2.5, but bsddb doesn't seem to be enabled - 
> there probably 
> is no Berkeley DB included in the system to begin with...)

I'll take a look hopefully in a few days.

dan

-- 
Daniel Macks
[email protected]
http://www.netspace.org/~dmacks


------------------------------------------------------------------------------

_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to