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). 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...)

For the moment, mmap at least would work, including scipy read_array. 
The rest is above my head for now, I am afraid.

Cheers,
                                                Derek

Attachment: python25-10.6.info
Description: Binary data


Attachment: python25-10.6.patch
Description: Binary data


1:
building '_ctypes' extension
creating 
build/temp.macosx-10.6-i386-2.5/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes
creating 
build/temp.macosx-10.6-i386-2.5/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/darwincreating
 
build/temp.macosx-10.6-i386-2.5/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/libffi
creating 
build/temp.macosx-10.6-i386-2.5/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/libffi/src
creating 
build/temp.macosx-10.6-i386-2.5/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/libffi/src/x86
creating 
build/temp.macosx-10.6-i386-2.5/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/libffi/src/powerpc
gcc -fno-strict-aliasing -mno-fused-madd -fno-common -DNDEBUG -g -fwrapv -O3 
-Wall -Wstrict-prototypes -I_ctypes/darwin -I. -I/scratch.noindex
/fink.build/python25-2.5.5-2/Python-2.5.5/./Include 
-Ibuild/temp.macosx-10.6-i386-2.5/libffi/include 
-Ibuild/temp.macosx-10.6-i386-2.5/libffi 
-I/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/libffi/src
 -I. -IInclude -I./Include -I/sw/include -I/scratch.noin
dex/fink.build/python25-2.5.5-2/Python-2.5.5/Include 
-I/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5 -c 
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/_ctypes.c
 -o 
build/temp.macosx-10.6-i386-2.5/scratch.noindex/fink.build/python25-2.5.5-2/Pytho
n-2.5.5/Modules/_ctypes/_ctypes.o
In file included from 
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/./Include/Python.h:57,
                 from 
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/_ctypes.c:107:
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/./Include/pyport.h:547:
 warning: 'struct winsize' declared inside parameter list
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/./Include/pyport.h:547:
 warning: its scope is only this definition or declaration, which is probably 
not what you want
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/./Include/pyport.h:548:
 warning: 'struct winsize' declared inside parameter list
In file included from 
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/_ctypes.c:110:
build/temp.macosx-10.6-i386-2.5/libffi/include/ffi.h:161: error: expected 
specifier-qualifier-list before 'ffi_abi'
build/temp.macosx-10.6-i386-2.5/libffi/include/ffi.h:183: error: expected 
specifier-qualifier-list before 
'ffi_sarg'build/temp.macosx-10.6-i386-2.5/libffi/include/ffi.h:267: error: 
expected declaration specifiers or '...' before 'ffi_abi'In file included from 
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/_ctypes.c:126:/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/ctypes.h:72:
 error: expected specifier-qualifier-list before 'ffi_cl
osure'
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/_ctypes.c:
 In function 'CDataType_in_dll':
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/_ctypes.c:304:
 warning: format not a string literal and no format arguments
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/_ctypes.c:
 In function 'CFuncPtr_FromDll':
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/_ctypes.c:2806:
 warning: format not a string literal and no format arguments
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/_ctypes.c:
 In function 'CFuncPtr_new':
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_ctypes/_ctypes.c:2955:
 error: 'CThunkObject' has no member named 'pcl'

2:
building '_bsddb' extension
gcc -fno-strict-aliasing -mno-fused-madd -fno-common -DNDEBUG -g -fwrapv -O3 
-Wall -Wstrict-prototypes -I/sw/include/db4 -I. -I/scratch.noinde
x/fink.build/python25-2.5.5-2/Python-2.5.5/./Include -I. -IInclude -I./Include 
-I/sw/include -I/scratch.noindex/fink.build/python25-2.5.5-2/Py
thon-2.5.5/Include -I/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5 
-c /scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Mo
dules/_bsddb.c -o 
build/temp.macosx-10.6-i386-2.5/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_bsddb.o
In file included from 
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/./Include/Python.h:57,
                 from 
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_bsddb.c:89:
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/./Include/pyport.h:547:
 warning: 'struct winsize' declared inside parameter list
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/./Include/pyport.h:547:
 warning: its scope is only this definition or declaration, w
hich is probably not what you want
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/./Include/pyport.h:548:
 warning: 'struct winsize' declared inside parameter list
In file included from 
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_bsddb.c:90:
/sw/include/db4/db.h:1376: error: expected specifier-qualifier-list before 
'u_int'
/sw/include/db4/db.h:1742: error: expected specifier-qualifier-list before 
'u_int'
/sw/include/db4/db.h:1930: error: expected specifier-qualifier-list before 
'u_int'
/sw/include/db4/db.h:2399: error: expected declaration specifiers or '...' 
before 'u_long'
/sw/include/db4/db.h:2399: error: expected declaration specifiers or '...' 
before 'u_long'
/sw/include/db4/db.h:2399: warning: function declaration isn't a prototype
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_bsddb.c: In 
function '_DB_get_type':
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/_bsddb.c:364: 
error: 'DB' has no member named 'get_type'
[much more of that kind...]

3.
building 'resource' extension
gcc -fno-strict-aliasing -mno-fused-madd -fno-common -DNDEBUG -g -fwrapv -O3 
-Wall -Wstrict-prototypes -I. -I/scratch.noindex/fink.build/pytho
n25-2.5.5-2/Python-2.5.5/./Include -I. -IInclude -I./Include -I/sw/include 
-I/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Include
 -I/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5 -c 
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c -
o 
build/temp.macosx-10.6-i386-2.5/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.o
In file included from 
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/./Include/Python.h:57,
                 from 
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:2:
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/./Include/pyport.h:547:
 warning: 'struct winsize' declared inside parameter list
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/./Include/pyport.h:547:
 warning: its scope is only this definition or declaration, w
hich is probably not what you want
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/./Include/pyport.h:548:
 warning: 'struct winsize' declared inside parameter list
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c: 
In function 'resource_getrusage':
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:89:
 error: 'struct rusage' has no member named 'ru_maxrss'
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:90:
 error: 'struct rusage' has no member named 
'ru_ixrss'/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:91:
 error: 'struct rusage' has no member named 'ru_idrss'
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:92:
 error: 'struct rusage' has no member named 'ru_isrss'
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:93:
 error: 'struct rusage' has no member named 'ru_minflt'
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:94:
 error: 'struct rusage' has no member named 'ru_majflt'
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:95:
 error: 'struct rusage' has no member named 
'ru_nswap'/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:96:
 error: 'struct rusage' has no member named 'ru_inblock'
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:97:
 error: 'struct rusage' has no member named 'ru_oublock'
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:98:
 error: 'struct rusage' has no member named 
'ru_msgsnd'/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:99:
 error: 'struct rusage' has no member named 
'ru_msgrcv'/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:100:
 error: 'struct rusage' has no member named 
'ru_nsignals'/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:101:
 error: 'struct rusage' has no member named 'ru_nvcsw'
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:102:
 error: 'struct rusage' has no member named 'ru_nivcsw'
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c: 
In function 'resource_getrlimit':
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:122:
 error: 'RLIM_NLIMITS' undeclared (first use in this function
)/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:122:
 error: (Each undeclared identifier is reported only once
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:122:
 error: for each function it appears in.)
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c: 
In function 'resource_setrlimit':
/scratch.noindex/fink.build/python25-2.5.5-2/Python-2.5.5/Modules/resource.c:154:
 error: 'RLIM_NLIMITS' undeclared (first use in this function)

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

_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to