From kde-nonlinux Thu Apr 03 22:07:48 2003 From: Albert Chin Date: Thu, 03 Apr 2003 22:07:48 +0000 To: kde-nonlinux Subject: Re: [Kde-nonlinux] HP-UX system X-MARC-Message: https://marc.info/?l=kde-nonlinux&m=104940768320588 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 > #include > #include > +#include > #include > > #ifdef HAVE_RES_INIT > # include > # include > +extern "C" int res_init(); > #endif > > #include Ick. This is a hack. The attached is better. -- albert chin (china@thewrittenword.com) -- 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 #include #include #include ], - [ - 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, _______________________________________________ kde-nonlinux mailing list kde-nonlinux@mail.kde.org http://mail.kde.org/mailman/listinfo/kde-nonlinux