[issue3052] Mac Modules failing to compile

Benjamin Peterson report at bugs.python.org
Fri Jun 6 16:15:17 CEST 2008


New submission from Benjamin Peterson <musiccomposition at gmail.com>:

On Mac 10.4 PPC:

building 'MacOS' extension
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I. -I/temp/python/trunk/./Include
-I/temp/python/trunk/./Mac/Include -I. -IInclude -I./Include
-I/usr/local/include -I/temp/python/trunk/Include -I/temp/python/trunk
-c /temp/python/trunk/Mac/Modules/MacOS.c -o
build/temp.macosx-10.3-ppc-2.6/temp/python/trunk/Mac/Modules/MacOS.o-Wno-deprecated-declarations
/temp/python/trunk/Mac/Modules/MacOS.c:44: error: parse error before
'Fsiorefnum'
/temp/python/trunk/Mac/Modules/MacOS.c:44: warning: no semicolon at end
of struct or union
/temp/python/trunk/Mac/Modules/MacOS.c:46: error: parse error before '}'
token
/temp/python/trunk/Mac/Modules/MacOS.c:46: warning: type defaults to
'int' in declaration of 'rfobject'
/temp/python/trunk/Mac/Modules/MacOS.c:46: warning: data definition has
no type or storage class
/temp/python/trunk/Mac/Modules/MacOS.c:55: error: parse error before '*'
token
/temp/python/trunk/Mac/Modules/MacOS.c:56: warning: function declaration
isn't a prototype
/temp/python/trunk/Mac/Modules/MacOS.c: In function 'do_close':
/temp/python/trunk/Mac/Modules/MacOS.c:57: error: 'self' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:57: error: (Each undeclared
identifier is reported only once
/temp/python/trunk/Mac/Modules/MacOS.c:57: error: for each function it
appears in.)
/temp/python/trunk/Mac/Modules/MacOS.c: At top level:
/temp/python/trunk/Mac/Modules/MacOS.c:67: error: parse error before '*'
token
/temp/python/trunk/Mac/Modules/MacOS.c:68: warning: function declaration
isn't a prototype
/temp/python/trunk/Mac/Modules/MacOS.c: In function 'rf_read':
/temp/python/trunk/Mac/Modules/MacOS.c:74: error: 'self' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:79: error: 'args' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:88: warning: implicit declaration
of function 'PyMac_Error'
/temp/python/trunk/Mac/Modules/MacOS.c: At top level:
/temp/python/trunk/Mac/Modules/MacOS.c:102: error: parse error before
'*' token
/temp/python/trunk/Mac/Modules/MacOS.c:103: warning: function
declaration isn't a prototype
/temp/python/trunk/Mac/Modules/MacOS.c: In function 'rf_write':
/temp/python/trunk/Mac/Modules/MacOS.c:108: error: 'self' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:112: error: 'args' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c: At top level:
/temp/python/trunk/Mac/Modules/MacOS.c:129: error: parse error before
'*' token
/temp/python/trunk/Mac/Modules/MacOS.c:130: warning: function
declaration isn't a prototype
/temp/python/trunk/Mac/Modules/MacOS.c: In function 'rf_seek':
/temp/python/trunk/Mac/Modules/MacOS.c:136: error: 'self' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:140: error: 'args' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c: At top level:
/temp/python/trunk/Mac/Modules/MacOS.c:174: error: parse error before
'*' token
/temp/python/trunk/Mac/Modules/MacOS.c:175: warning: function
declaration isn't a prototype
/temp/python/trunk/Mac/Modules/MacOS.c: In function 'rf_tell':
/temp/python/trunk/Mac/Modules/MacOS.c:179: error: 'self' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:183: error: 'args' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c: At top level:
/temp/python/trunk/Mac/Modules/MacOS.c:199: error: parse error before
'*' token
/temp/python/trunk/Mac/Modules/MacOS.c:200: warning: function
declaration isn't a prototype
/temp/python/trunk/Mac/Modules/MacOS.c: In function 'rf_close':
/temp/python/trunk/Mac/Modules/MacOS.c:201: error: 'args' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:203: error: 'self' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c: At top level:
/temp/python/trunk/Mac/Modules/MacOS.c:222: error: parse error before
'*' token
/temp/python/trunk/Mac/Modules/MacOS.c:224: warning: return type
defaults to 'int'
/temp/python/trunk/Mac/Modules/MacOS.c: In function 'newrfobject':
/temp/python/trunk/Mac/Modules/MacOS.c:225: error: 'self' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:227: error: parse error before
')' token
/temp/python/trunk/Mac/Modules/MacOS.c: At top level:
/temp/python/trunk/Mac/Modules/MacOS.c:236: error: parse error before
'*' token
/temp/python/trunk/Mac/Modules/MacOS.c:237: warning: function
declaration isn't a prototype
/temp/python/trunk/Mac/Modules/MacOS.c: In function 'rf_dealloc':
/temp/python/trunk/Mac/Modules/MacOS.c:238: error: 'self' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c: At top level:
/temp/python/trunk/Mac/Modules/MacOS.c:243: error: parse error before
'*' token
/temp/python/trunk/Mac/Modules/MacOS.c:244: warning: function
declaration isn't a prototype
/temp/python/trunk/Mac/Modules/MacOS.c: In function 'rf_getattr':
/temp/python/trunk/Mac/Modules/MacOS.c:245: error: 'self' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:245: error: 'name' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c: In function
'MacOS_GetCreatorAndType':
/temp/python/trunk/Mac/Modules/MacOS.c:295: error: 'PyMac_GetFSRef'
undeclared (first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:304: error: 'PyMac_GetFSSpec'
undeclared (first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:308: warning: implicit
declaration of function 'PyErr_Mac'
/temp/python/trunk/Mac/Modules/MacOS.c:308: warning: return makes
pointer from integer without a cast
/temp/python/trunk/Mac/Modules/MacOS.c: In function
'MacOS_SetCreatorAndType':
/temp/python/trunk/Mac/Modules/MacOS.c:362: error: 'PyMac_GetFSRef'
undeclared (first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:362: error: 'PyMac_GetOSType'
undeclared (first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:369: error: 'PyMac_GetFSSpec'
undeclared (first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:373: warning: return makes
pointer from integer without a cast
/temp/python/trunk/Mac/Modules/MacOS.c:379: warning: return makes
pointer from integer without a cast
/temp/python/trunk/Mac/Modules/MacOS.c: In function 'MacOS_DebugStr':
/temp/python/trunk/Mac/Modules/MacOS.c:540: error: 'PyMac_GetStr255'
undeclared (first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c: In function 'MacOS_openrf':
/temp/python/trunk/Mac/Modules/MacOS.c:626: error: 'fp' undeclared
(first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c:629: error: 'PyMac_GetFSRef'
undeclared (first use in this function)
/temp/python/trunk/Mac/Modules/MacOS.c: In function 'initMacOS':
/temp/python/trunk/Mac/Modules/MacOS.c:693: warning: implicit
declaration of function 'PyMac_GetOSErrException'
/temp/python/trunk/Mac/Modules/MacOS.c:693: warning: assignment makes
pointer from integer without a cast
building '_AE' extension
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I. -I/temp/python/trunk/./Include
-I/temp/python/trunk/./Mac/Include -I. -IInclude -I./Include
-I/usr/local/include -I/temp/python/trunk/Include -I/temp/python/trunk
-c /temp/python/trunk/Mac/Modules/ae/_AEmodule.c -o
build/temp.macosx-10.3-ppc-2.6/temp/python/trunk/Mac/Modules/ae/_AEmodule.o
-Wno-deprecated-declarations
/temp/python/trunk/Mac/Modules/ae/_AEmodule.c: In function
'AEDesc_AEResumeTheCurrentEvent':
/temp/python/trunk/Mac/Modules/ae/_AEmodule.c:687: error: 'SRefCon'
undeclared (first use in this function)
/temp/python/trunk/Mac/Modules/ae/_AEmodule.c:687: error: (Each
undeclared identifier is reported only once
/temp/python/trunk/Mac/Modules/ae/_AEmodule.c:687: error: for each
function it appears in.)
/temp/python/trunk/Mac/Modules/ae/_AEmodule.c:687: error: parse error
before 'dispatcher'
/temp/python/trunk/Mac/Modules/ae/_AEmodule.c: In function
'AE_AEInstallEventHandler':
/temp/python/trunk/Mac/Modules/ae/_AEmodule.c:1158: error: 'SRefCon'
undeclared (first use in this function)
/temp/python/trunk/Mac/Modules/ae/_AEmodule.c:1158: error: parse error
before 'handler'
/temp/python/trunk/Mac/Modules/ae/_AEmodule.c: In function
'AE_AEGetEventHandler':
/temp/python/trunk/Mac/Modules/ae/_AEmodule.c:1207: error: 'SRefCon'
undeclared (first use in this function)
/temp/python/trunk/Mac/Modules/ae/_AEmodule.c:1207: error: parse error
before ')' token
building '_File' extension
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I. -I/temp/python/trunk/./Include
-I/temp/python/trunk/./Mac/Include -I. -IInclude -I./Include
-I/usr/local/include -I/temp/python/trunk/Include -I/temp/python/trunk
-c /temp/python/trunk/Mac/Modules/file/_Filemodule.c -o
build/temp.macosx-10.3-ppc-2.6/temp/python/trunk/Mac/Modules/file/_Filemodule.o
-Wno-deprecated-declarations
/temp/python/trunk/Mac/Modules/file/_Filemodule.c: In function
'FSRef_FSOpenFork':
/temp/python/trunk/Mac/Modules/file/_Filemodule.c:1877: error:
'FSIORefNum' undeclared (first use in this function)
/temp/python/trunk/Mac/Modules/file/_Filemodule.c:1877: error: (Each
undeclared identifier is reported only once
/temp/python/trunk/Mac/Modules/file/_Filemodule.c:1877: error: for each
function it appears in.)
/temp/python/trunk/Mac/Modules/file/_Filemodule.c:1877: error: parse
error before 'forkRefNum'
/temp/python/trunk/Mac/Modules/file/_Filemodule.c:1886: error:
'forkRefNum' undeclared (first use in this function)

----------
assignee: ronaldoussoren
messages: 67767
nosy: benjamin.peterson, ronaldoussoren
priority: critical
severity: normal
status: open
title: Mac Modules failing to compile
type: compile error
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3052>
_______________________________________


More information about the Python-bugs-list mailing list