This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Build fails on OS X with case sensitive fs
Type: Stage:
Components: Build Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ronaldoussoren Nosy List: gdm, ronaldoussoren
Priority: high Keywords:

Created on 2006-07-19 17:24 by gdm, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg29210 - (view) Author: gideon may (gdm) Date: 2006-07-19 17:24
When compiling python from svn on a Mac OS X with a 
case sensitive file system I get the following build
error:

running build
running build_ext
db.h: found (4, 3) in /opt/local/include/db4
db lib: using (4, 3) db-4.3
sqlite: found /usr/include/sqlite3.h
/usr/include/sqlite3.h: version 3.1.3
Traceback (most recent call last):
  File "./setup.py", line 1507, in <module>
    main()
.
.
  File "./setup.py", line 1088, in addMacExtension
    raise RuntimeError("%s not found" % name)
RuntimeError: MacOS not found
make: *** [sharedmods] Error 1




It can be fixed by either renaming the file:
  Mac/Modules/macosmodule.c 
to
  Mac/Modules/MacOSmodule.c 

or applying the following patch :
Index: setup.py
===================================================================
--- setup.py    (revision 50687)
+++ setup.py    (working copy)
@@ -1101,7 +1101,7 @@
             carbon_kwds = {'extra_compile_args':
carbon_extra_compile_args,
                            'extra_link_args':
['-framework', 'Carbon'],
                           }
-            CARBON_EXTS = ['ColorPicker', 'gestalt',
'MacOS', 'Nav',
+            CARBON_EXTS = ['ColorPicker', 'gestalt',
'macos', 'Nav',
                            'OSATerminology', 'icglue',
                            # All these are in subdirs
                            '_AE', '_AH', '_App',
'_CarbonEvt', '_Cm', '_Ctl',


Cheers,

Gideon

msg29211 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2006-07-23 09:31
Logged In: YES 
user_id=580910

The patch is incorrect, as this would rename user visible name of the python 
extension ('import MacOS' would stop working). 

The rename would be correct.
msg29212 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2006-07-23 18:11
Logged In: YES 
user_id=580910

Could you please test if renaming Mac/Modules/macosmodule.c to Mac/
Modules/MacOS.c solves your problem?  With that rename the build still works 
for me, but I don't have a case-sensitive filesystem.
msg29213 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2006-07-25 19:21
Logged In: YES 
user_id=580910

I've implemented the rename I suggested earlier in revision 50832.

Could you please confirm that this does actually solve your problem?
msg29214 - (view) Author: gideon may (gdm) Date: 2006-07-31 10:14
Logged In: YES 
user_id=117359

The rename works for me. I've been able to compile with and without
the --enable-framework configure option and both versions can import
and use MacOS correctly.
History
Date User Action Args
2022-04-11 14:56:18adminsetgithub: 43692
2006-07-19 17:24:48gdmcreate