[plt-scheme] Seeing a compile-time error on Mac OS 10.5, using a case-sensitive file system

From: Danny Yoo (dyoo at cs.wpi.edu)
Date: Fri Nov 9 21:56:30 EST 2007

Hi everyone,


I'm seeing the following error messages when compiling DrScheme from svn:


./../contrib/wxxpm/libxpm.34b/lib/simx.cpp:42:22: error: Memory.h: No such 
file or directory


[later in the compile]


env XFORM_USE_PRECOMP=macxsrc/xform_precomp.h ../../mzscheme/mzscheme3m 
-rq ./../../mzscheme/gc2/xform.ss --setup  --cpp "g++ -E 
-I./../../mzscheme/gc2 -I./../../wxmac/include/base 
-I./../../wxmac/include/mac -I./../../wxcommon -I./../../a-list/c-headers/ 
-I./../../mred/wxme/ -I./../../mzscheme/ -I./../../mzscheme/include/ 
-fno-common  -DNEWGC_BTC_ACCOUNT  -fpascal-strings -DOPERATOR_NEW_ARRAY 
-DOS_X -Dwx_mac -DOS_X -MMD -DWX_CARBON 
-I./../../wxmac/src/../utils/image/src 
-I./../../wxmac/src/../contrib/wxxpm/libxpm.34b/lib 
-I./../../wxmac/src/../../mac/mzscheme -I../../wxcommon/jpeg 
-I./../../wxcommon/jpeg " -o xsrc/wxscheme.cc ./../wxs/wxscheme.cxx
./../wxs/wxscheme.cxx:70:33: error: Quicktime/Movies.h: No such file or 
directory
xform: cpp failed



I believe this is due to the case-sensitive file system I'm using on my 
shiny new Leopard install.  The following changes seem necessary to make 
the compilation work on Mac OS 10.5 on a case-sensitive file system:


mythril:src dyoo$ svn diff
Index: wxmac/contrib/wxxpm/libxpm.34b/lib/simx.cpp
===================================================================
--- wxmac/contrib/wxxpm/libxpm.34b/lib/simx.cpp	(revision 7689)
+++ wxmac/contrib/wxxpm/libxpm.34b/lib/simx.cpp	(working copy)
@@ -39,7 +39,7 @@
  #include "xpm34p.h"			/* for XpmMalloc */
  #ifdef FOR_MAC
  #  include <stdlib.h>
-#  include <Memory.h>
+#  include <memory.h>
  #  ifdef __cplusplus
       extern  int xpmGetRGBfromName(char *inname, int *r, int *g, int *b);
  #  endif
Index: mred/wxs/wxscheme.cxx
===================================================================
--- mred/wxs/wxscheme.cxx	(revision 7689)
+++ mred/wxs/wxscheme.cxx	(working copy)
@@ -67,7 +67,7 @@
  #ifdef wx_mac
  # ifdef WX_CARBON
  #  ifdef OS_X
-#   include <Quicktime/Movies.h>
+#   include <QuickTime/Movies.h>
  #  else
  #   include <Movies.h>
  #  endif



I hope this helps!


Posted on the users mailing list.