Re: HP-UX system
Albert Chin <[email protected]>
| Newsgroups | gmane.comp.kde.non-linux |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Apr 03, 2003 at 10:27:24PM +0200, Marcus Camen wrote: > > On Thu, Apr 03, 2003 at 09:35:39PM +0200, Marcus Camen wrote: > > > kde-common (the libtool stuff in the admin dir), arts, kdelibs, kdebase > > > So far, we didn't try to build anything else. > > > > Did you get this error building kdelibs: > > > > kextsock.cpp: In static member function `static int > > KExtendedSocket::doLookup(const QString&, const QString&, addrinfo&, > > kde_addrinfo**)': > > kextsock.cpp:1817: error: `res_init' undeclared (first use this function) > > kextsock.cpp:1817: error: (Each undeclared identifier is reported only once > > for each function it appears in.) > > gmake[3]: *** [kextsock.lo] Error 1 > > gmake[3]: Leaving directory `/opt/build/kdelibs-3.1.1/kdecore' > > > > res_init is in /usr/lib/libc.sl but I cannot find a prototype in > > /usr/include. > > > Hehe: > --- kdecore/kextsock.cpp 13 Jan 2003 00:09:55 -0000 1.44.2.4 > +++ kdecore/kextsock.cpp 28 Feb 2003 17:36:34 -0000 > @@ -26,11 +26,13 @@ > #include <sys/socket.h> > #include <sys/times.h> > #include <netinet/in.h> > +#include <arpa/inet.h> > #include <sys/un.h> > > #ifdef HAVE_RES_INIT > # include <arpa/nameser.h> > # include <resolv.h> > +extern "C" int res_init(); > #endif > > #include <stdio.h> Ick. This is a hack. The attached is better. -- albert chin ([email protected]) -- snip snip --- acinclude.m4.orig Wed Apr 2 15:28:48 2003 +++ acinclude.m4 Thu Apr 3 15:19:58 2003 @@ -2250,23 +2247,16 @@ LIBS="$kde_libs_safe" AC_SUBST(LIBRESOLV) - AC_MSG_CHECKING([if res_init is available]) - AC_TRY_COMPILE( + KDE_CHECK_FUNC_EXT(res_init, [ #include <sys/types.h> #include <netinet/in.h> #include <arpa/nameser.h> #include <resolv.h> ], - [ - res_init(); - ], - [ - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_RES_INIT, 1, [Define if you have the res_init function]) - ], - [ AC_MSG_RESULT(no) ] - ) + [res_init()], + [int res_init(void)], + [RES_INIT]) ]) AC_DEFUN(AC_CHECK_STRLCPY,