[OS X Emacs] emacs and Snow Leopard woes

Artemio González López artemiogl at telefonica.net
Sat Aug 29 12:21:47 EDT 2009


Since upgrading to Snow Leopard, I've had quite a few problems with  
emacs. Here are the most important ones:

1) I was using /usr/bin/emacs plus an /Applications/Emacs.app wrapper  
as my emacs of choice, with no problem at all. However, the emacs  
shipped with Snow Leopard, while still 22.1, apparently has NOT been  
compiled by Apple with carbon support, because when launched with the  
Emacs.app wrapper it quits with the following message:

emacs: input not from ttty

(I'm quoting from memory).

2) I installed Snow Leopard's Developer Tools, and tried to build  
emacs 22.3 with carbon support, which I had done without problems in  
Leopard. Now, after the usual "./configure --enable-carbon-app", make  
fails with the following error message:

mac.c: In function 'path_from_vol_dir_name':
mac.c:2999: error: 'CInfoPBRec' undeclared (first use in this function)
mac.c:2999: error: (Each undeclared identifier is reported only once
mac.c:2999: error: for each function it appears in.)
mac.c:2999: error: expected ';' before 'cipb'
mac.c:3002: warning: pointer targets in passing argument 1 of 'strlen'  
differ in signedness
mac.c:3009: error: 'cipb' undeclared (first use in this function)
mac.c:3024: warning: pointer targets in passing argument 1 of 'strlen'  
differ in signedness
mac.c:3027: warning: pointer targets in passing argument 1 of  
'__builtin___strcat_chk' differ in signedness
mac.c:3027: warning: pointer targets in passing argument 1 of  
'__inline_strcat_chk' differ in signedness
mac.c:3028: warning: pointer targets in passing argument 1 of  
'__builtin___strcat_chk' differ in signedness
mac.c:3028: warning: pointer targets in passing argument 1 of  
'__inline_strcat_chk' differ in signedness
mac.c:3030: warning: pointer targets in passing argument 2 of  
'__builtin___strcpy_chk' differ in signedness
mac.c:3030: warning: pointer targets in passing argument 2 of  
'__inline_strcpy_chk' differ in signedness
mac.c: In function 'get_temp_dir_name':
mac.c:3338: warning: passing argument 5 of 'FindFolder' from  
incompatible pointer type
mac.c:3342: warning: pointer targets in passing argument 1 of  
'path_from_vol_dir_name' differ in signedness
mac.c:3345: warning: pointer targets in passing argument 1 of 'strlen'  
differ in signedness
mac.c:3346: warning: pointer targets in passing argument 1 of  
'__builtin___strcat_chk' differ in signedness
mac.c:3346: warning: pointer targets in passing argument 1 of  
'__inline_strcat_chk' differ in signedness
mac.c:3350: warning: pointer targets in passing argument 1 of  
'mac_to_posix_pathname' differ in signedness
mac.c: In function 'Fmac_file_name_to_posix':
mac.c:4462: warning: pointer targets in passing argument 1 of  
'mac_to_posix_pathname' differ in signedness
mac.c: In function 'Fposix_file_name_to_mac':
mac.c:4479: warning: pointer targets in passing argument 1 of  
'posix_to_mac_pathname' differ in signedness
mac.c: In function 'mac_get_system_locale':
mac.c:4905: error: 'smScriptLang' undeclared (first use in this  
function)
mac.c:4906: warning: 'GetScriptManagerVariable' is deprecated  
(declared at /System/Library/Frameworks/CoreServices.framework/ 
Frameworks/CarbonCore.framework/Headers/Script.h:993)
mac.c:4910: warning: pointer targets in passing argument 4 of  
'LocaleRefGetPartString' differ in signedness
mac.c:4912: warning: pointer targets in passing argument 1 of  
'build_string' differ in signedness
mac.c: In function 'init_mac_osx_environment':
mac.c:5282: warning: 'GetScriptManagerVariable' is deprecated  
(declared at /System/Library/Frameworks/CoreServices.framework/ 
Frameworks/CarbonCore.framework/Headers/Script.h:993)
mac.c: In function 'syms_of_mac':
mac.c:5472: warning: 'GetScriptManagerVariable' is deprecated  
(declared at /System/Library/Frameworks/CoreServices.framework/ 
Frameworks/CarbonCore.framework/Headers/Script.h:993)
make[1]: *** [mac.o] Error 1
make: *** [src] Error 2

My question is: has anybody compiled from source emacs with carbon (or  
Cocoa) support under Snow Leoprad, and if so, how did you do it?

Cheers,

Artemio






More information about the MacOSX-Emacs mailing list