[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Makefile packages do not work oon OSX due to use of -traditional-cpp
From: |
David Ayers |
Subject: |
Re: Makefile packages do not work oon OSX due to use of -traditional-cpp |
Date: |
Tue, 15 Jul 2003 15:54:45 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030507 |
Enrico Sersale wrote:
Besides this problem, can somebody suggest me how to build base on osx?
You mean -baseadd not -base right? If not, you'll need to configure
-make with:
./configure --with-library-combo=gnu-gnu-gnu (or just 'gnu' for short)
(deleted extra info as I just spotted Nicola's reply.)
With both the apple complier and gcc-3.3 I'm getting:
/usr/bin/gcc GSCompatibility.m -c \
-MMD -MP -DGNUSTEP_INSTALL_PREFIX=/usr/GNUstep/System
-DGNUSTEP_LOCAL_ROOT=/usr/GNUstep/Local
-DGNUSTEP_NETWORK_ROOT=/usr/GNUstep/Network -DGNUSTEP_TARGET_DIR=\".\"
-DGNUSTEP_TARGET_CPU=\"powerpc\" -DGNUSTEP_TARGET_OS=\"darwin6\"
-DLIBRARY_COMBO=\"apple-apple-apple\" -Wall -Wcast-align
-DNeXT_Foundation_LIBRARY=1 -DNeXT_GUI_LIBRARY=1 -DNeXT_RUNTIME=1
-framework Foundation -framework AppKit -traditional-cpp -dynamic
-fno-common -DGSWARN -DGSDIAGNOSE -O2 -fno-strict-aliasing
-fnext-runtime -I../Headers/gnustep -I../Headers -I./. -I. \
-o shared_obj/GSCompatibility.o
In file included from GSCompatibility.m:28:
GSPrivate.h:30: syntax error before "NSString"
GSPrivate.h:36: syntax error before "BOOL"
Try:
Index: Source/GSPrivate.h
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/base/Source/GSPrivate.h,v
retrieving revision 1.4
diff -u -r1.4 GSPrivate.h
--- Source/GSPrivate.h 9 Nov 2002 06:45:31 -0000 1.4
+++ Source/GSPrivate.h 15 Jul 2003 13:24:40 -0000
@@ -23,6 +23,7 @@
#ifndef __GSPrivate_h_
#define __GSPrivate_h_
+#include <gnsutep/base/GSObjCRuntime.h>
/*
* Function to get the name of a string encoding as an NSString.
GSCompatibility.m: In function `PString':
GSCompatibility.m:241: warning: implicit declaration of function
`RELEASE'
You're currently trying to build for 'apple-apple-apple' which means,
you want Apple's ObjC runtime, Apple's Foundation and Apple's AppKit.
Then you don't want to build -base but only -baseadd. (I think this is
done with make add=yes but it may allready be the default on
apple-apple-apple).
Now it seems that the include-path looks like:
GSCompatibility.m: #include "GSCompatibility.h"
GSCompatibility.h: #ifdef NeXT_Foundation_LIBRARY < And the log above
shows that it is indeed defined.
GSCompatibility.h: #include "gnustep/base/GNUstep.h"
GNUstep.h: defines RELEASE and all the other missing declarations, if
GNUSTEP isn't defined which it doesn't seem to be.
Also the log shows:
-I../Headers
I'm not sure why your getting this problem. Could you "debug" the
include-path above?
Cheers,
David
- Re: Makefile packages do not work oon OSX due to use of -traditional-cpp, Lars Sonchocky-Helldorf, 2003/07/14
- Re: Makefile packages do not work oon OSX due to use of -traditional-cpp, Lars Sonchocky-Helldorf, 2003/07/14
- Re: Makefile packages do not work oon OSX due to use of -traditional-cpp, Pete French, 2003/07/14
- Re: Makefile packages do not work oon OSX due to use of -traditional-cpp, Nicola Pero, 2003/07/15
- Re: Makefile packages do not work oon OSX due to use of -traditional-cpp, Pete French, 2003/07/15
- Re: Makefile packages do not work oon OSX due to use of -traditional-cpp, Enrico Sersale, 2003/07/15
- Re: Makefile packages do not work oon OSX due to use of -traditional-cpp, Nicola Pero, 2003/07/15
- Re: Makefile packages do not work oon OSX due to use of -traditional-cpp,
David Ayers <=
- Re: Makefile packages do not work oon OSX due to use of -traditional-cpp, David Ayers, 2003/07/15
Re: Makefile packages do not work oon OSX due to use of -traditional-cpp, Lars Sonchocky-Helldorf, 2003/07/15
Re: Makefile packages do not work oon OSX due to use of -traditional-cpp, Lars Sonchocky-Helldorf, 2003/07/15
Re: Makefile packages do not work oon OSX due to use of -traditional-cpp, Lars Sonchocky-Helldorf, 2003/07/15
Re: Makefile packages do not work oon OSX due to use of -traditional-cpp, Lars Sonchocky-Helldorf, 2003/07/15
Re: Makefile packages do not work oon OSX due to use of -traditional-cpp, Lars Sonchocky-Helldorf, 2003/07/16