help-gnustep
[Top][All Lists]
Advanced

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

Re: Failed to compile GNUstepWeb application......


From: David Ayers
Subject: Re: Failed to compile GNUstepWeb application......
Date: Tue, 27 Apr 2004 13:05:10 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113

nyap hong wrote:

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 (vogelke@xxx) 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




reply via email to

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