Hi List,
I have followed the instructions given: -lwrap was
added and check GSWeb.framework/Makefile.preamble has
-lwrap in LIBRARIES_DEPEND_UPON Below is the messages return during compilation
process:
[snip]
gcc -o Hello.gswa/./Hello
./shared_obj/Hello_main.o ./shared_obj/Hello.o
./shared_obj/HelloPage.o ./shared_obj/Main.o\
-L/home/hong/GNUstep/Library/Libraries
-L/opt/GNUstep/Local/Library/Libraries
-L/opt/GNUstep/Network/Library/Libraries
-L/opt/GNUstep/System/Library/Libraries -lwrap -lGSWeb
-lGSWExtensions -lGSWExtensionsGSW -lwrap -lGSANTLR
-lgnustep-db2 -lgnustep-db2control -lgnustep-base
-lpthread -lobjc -lm
/opt/GNUstep/System/Library/Libraries/libGSWeb.so:
undefined reference to `yp_get_default_domain'
collect2: ld returned 1 exit status
make[1]: *** [Hello.gswa/./Hello] Error 1
make: *** [Hello.all.gswapp.variables] Error 2d
Thanks... I'll need to do some more investigation. We don't seem to use yp_get_default_domain directly. (I haven't found any traces of it in my version of the sources.) I suspect that some included header may use it in a static/inlined function definition it. Or your libwrap depends on it and doesn't include the workaround:
workarounds.c (of libwrap):
/* * According to Karl Vogel ([EMAIL PROTECTED]) some Pyramid * versions have no yp_default_domain() function. We use getdomainname() * instead. */
#ifdef USE_GETDOMAIN
int yp_get_default_domain(ptr)
char **ptr;
{
static char mydomain[MAXHOSTNAMELEN]; *ptr = mydomain;
return (getdomainname(mydomain, MAXHOSTNAMELEN));
}#endif /* USE_GETDOMAIN */
maybe you need to add: -lnsl
But I would be interested in which distro you are using.
Cheers, David
_______________________________________________ Help-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-gnustep
