apache134 with libphp3.so: undefined symbol: __dn_skipname

From: Date: Mon, 01 Mar 1999 20:26:00 +0000
Subject: apache134 with libphp3.so: undefined symbol: __dn_skipname
Groups: php.dev 
Request: Send a blank email to php-dev+get-4399@lists.php.net to get a copy of this message
hi, i use latest php3/cvs, latest apache 1.3.4, linux-2.2.1 and got the following error after starting apache: Syntax error on line 235 of /etc/httpd/httpd.conf: Cannot load /usr/local/apache/libexec/libphp3.so into server: /usr/local/apache/libexec/libphp3.so: undefined symbol: __dn_skipname configure also tells me that i don't have 'dn_skipname' .. checking for dn_skipname in -lresolv... no despite this i *have* '__dn_skipname' defined in libresolv.so.2 .. styx:/sbin/init.d # nm /lib/libresolv.so.2 |grep skipname 00003980 T __dn_skipname so i guess the apache's php3-modules Makefile is missing a "-lresolve". manually adding "-lresolve" to .../apache-1.3.4/src/modules/php3/Makefile makes it work. ... LIBS1= -lresolv -lm -ldl -lm -lcrypt -lndbm -lgdbm -ldl ... ^^^^^^^^ following is the configure.in code to blame. sorry, don't know how to handle it. ---------------- dnl The res_search may be in libsocket as well, and if it is dnl make sure to check for dn_skipname in libresolv, or if res_search dnl is in neither of these libs, still check for dn_skipname in libresolv AC_CHECK_LIB(socket, res_search, [ AC_CHECK_LIB(resolv, dn_skipname) LIBS="$LIBS -lsocket" AC_DEFINE(HAVE_LIBSOCKET) ], [ AC_CHECK_LIB(resolv, res_search, [ LIBS="$LIBS -lresolv" AC_DEFINE(HAVE_LIBRESOLV) ], [ AC_CHECK_LIB(resolv, dn_skipname) ]) ]) ------------------ mfg peter lerner -- Disc space -- the final frontier! -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4399) next »