discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configure of base doesn't detect my ffcall


From: Lars Sonchocky-Helldorf
Subject: Re: configure of base doesn't detect my ffcall
Date: Tue, 28 Sep 2004 23:37:57 +0200


Am Dienstag, 28.09.04 um 21:18 Uhr schrieb Adam Fedor:


On Sep 28, 2004, at 7:14 AM, Lars Sonchocky-Helldorf wrote:
localhost:~/GNUstep-Darwin/test lars$ /opt/local/bin/gcc -E
-I/opt/local/include  -fgnu-runtime
-I/opt/local/GNUstep/System/Library/Headers conftest.c
cc1: warning: command line option "-fgnu-runtime" is valid for ObjC/ObjC++
but not for C
# 1 "conftest.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "conftest.c"
# 12653 "configure"
# 12765 "configure"
# 1 "/usr/include/objc/objc-api.h" 1 3 4
# 12766 "configure" 2
localhost:~/GNUstep-Darwin/test lars$

as one can see here the wrong objc-api.h is found: the one of the NeXT
runtime.



You need to have /opt/local/bin in your path. gcc also uses cpp, and it's probably finding Apple's cpp in /;usr/bin instead of the one you want in /opt/local/bin

/opt/local/bin is in my path:

localhost:~/GNUstep-Darwin/test lars$ env
.
.
.
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/opt/local/bin

And Apples cpp doesn't hiccup on -E and -fgnu-runtime together (but still includes the wrong header). If I leave out -E and use -save-temps instead everything is fine (results in a conftest.mi file which includes the right (gnu-runtime) header.





Thanks, Lars





reply via email to

[Prev in Thread] Current Thread [Next in Thread]