bug-gnustep
[Top][All Lists]
Advanced

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

problem compiling gnustep-base


From: Nicola Pero
Subject: problem compiling gnustep-base
Date: Sun, 18 Feb 2001 23:36:52 +0000 (GMT)

Matthias Klose reported that he can't compile gnustep-base on newer
Debian - he gets an undefined reference to YESSTR and NOSTR in
GSLocale.m:

/* Log from Matthias */

gcc-2.95 GSLocale.m -c
-DGNUSTEP_INSTALL_PREFIX=/usr/lib/GNUstep/System
-DGNUSTEP_TARGET_DIR=\"ix86/linux-gnu\" -DGNUSTEP_TARGET_CPU=\"ix86\"
-DGNUSTEP_TARGET_OS=\"linux-gnu\" -DLIBRARY_COMBO=\"gnu-gnu-gnu-xgps\"
 -DHAVE_ICONV  -DHAVE_LIBXML=1 -Wall -DGNUSTEP -DGNUSTEP_VERSION=
-DGNUSTEP_MAJOR_VERSION= -DGNUSTEP_MINOR_VERSION=
-DGNUSTEP_BASE_LIBRARY=1   -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1
-D_REENTRANT  -fPIC -DGSWARN -O2 -Wno-import -fgnu-runtime
-I../Headers/gnustep -I../Headers -I./ix86/linux-gnu
-I. -I/usr/lib/GNUstep/System/Headers
-I/usr/lib/GNUstep/System/Headers -I/usr/include/libxml -I/usr/include
-I/home/swt/doko/GNUstep/Library/Headers
-I/usr/lib/GNUstep/Local/Library/Headers
-I/usr/lib/GNUstep/Network/Library/Headers
-I/usr/lib/GNUstep/System/Library/Headers
-I/usr/lib/GNUstep/Network/Headers/gnustep
-I/home/swt/doko/GNUstep/Headers/gnustep
-I/usr/lib/GNUstep/Local/Headers/gnustep
-I/usr/lib/GNUstep/System/Headers/gnustep
-I/usr/lib/GNUstep/Network/Headers/ix86/linux-gnu
-I/home/swt/doko/GNUstep/Headers/ix86/linux-gnu
-I/usr/lib/GNUstep/Local/Headers/ix86/linux-gnu
-I/usr/lib/GNUstep/System/Headers/ix86/linux-gnu
-I/home/swt/doko/GNUstep/Headers -I/usr/lib/GNUstep/Local/Headers
-I/usr/lib/GNUstep/Network/Headers -I/usr/lib/GNUstep/System/Headers
-o shared_obj/ix86/linux-gnu/gnu-gnu-gnu-xgps/GSLocale.o
GSLocale.m: In function `GSDomainFromDefaultLocale':
GSLocale.m:131: `YESSTR' undeclared (first use in this function)
GSLocale.m:131: (Each undeclared identifier is reported only once
GSLocale.m:131: for each function it appears in.)
GSLocale.m:133: `NOSTR' undeclared (first use in this function)
make[4]: *** [shared_obj/ix86/linux-gnu/gnu-gnu-gnu-xgps/GSLocale.o]
Error 1

/* Forwarded Message from Matthias Klose: */

 > Ahm - this is quite new to me.  
 > 
 > Does it happen to you always - ie if you compile gnustep-base by hand,
 > typing 
 > 
 >  . /usr/lib/GNUstep/System/Makefiles/GNUstep.sh; ./configure; make;
 > 
 > does it happen then ?
 > 
 > It looks like YESSTR and NOSTR should be defined in
 > /usr/include/langinfo.h.  On my Debian they are.  Are they on yours ?
 > 
 > The only difference with the standard build command I notice is that
 > you have been able to somewhat remove the version from the build
 > command...

from /usr/include/langinfo.h:

#if defined __USE_GNU || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
# define YESSTR                 __YESSTR
#endif

hmm, I assume you use glibc-2.1.3. The definition on glibc-2.2.2
(Debian unstable) seems to be guarded by __USE_GNU. So probably
gnustep-make configuratiuon should check for it and conditionally
define it.



reply via email to

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