Issue 3052: Mac Modules failing to compile (original) (raw)
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/47302
classification
Title: | Mac Modules failing to compile | |
---|---|---|
Type: | compile error | Stage: |
Components: | Versions: | Python 2.6 |
process
Status: | closed | Resolution: | fixed |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | ronaldoussoren | Nosy List: | benjamin.peterson, ronaldoussoren |
Priority: | critical | Keywords: |
Created on 2008-06-06 14:15 by benjamin.peterson, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (5) | ||
---|---|---|
msg67767 - (view) | Author: Benjamin Peterson (benjamin.peterson) * ![]() |
Date: 2008-06-06 14:15 |
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) | ||
msg67769 - (view) | Author: Ronald Oussoren (ronaldoussoren) * ![]() |
Date: 2008-06-06 14:26 |
Is this on OSX 10.4? I'll fix this tonight or tomorrow (the latter would probably result in a commit on sunday morning PST). The fix will look like this: #ifdef __LP64__ FSIORefNum fRefNum; #else SInt16 fRefNum; #endif That is, unless I can find the correct way to detect if the code is compiled with the 10.5 SDK or not. | ||
msg67770 - (view) | Author: Benjamin Peterson (benjamin.peterson) * ![]() |
Date: 2008-06-06 14:28 |
This is 10.4. | ||
msg67784 - (view) | Author: Ronald Oussoren (ronaldoussoren) * ![]() |
Date: 2008-06-06 21:32 |
This should be fixed in revision 63997. | ||
msg67805 - (view) | Author: Benjamin Peterson (benjamin.peterson) * ![]() |
Date: 2008-06-07 12:47 |
It is fixed. Thanks. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:35 | admin | set | github: 47302 |
2008-06-07 12:47:44 | benjamin.peterson | set | status: pending -> closedmessages: + |
2008-06-06 21:32:18 | ronaldoussoren | set | status: open -> pendingresolution: accepted -> fixedmessages: + |
2008-06-06 14:28:07 | benjamin.peterson | set | messages: + |
2008-06-06 14:26:34 | ronaldoussoren | set | resolution: acceptedmessages: + |
2008-06-06 14:15:15 | benjamin.peterson | create |