Date: 03/01/99
- Next message: rasmus: "[PHP-DEV] CVS update: php3"
- Previous message: sas: "[PHP-DEV] CVS update: php3/functions"
- Next in thread: Rasmus Lerdorf: "Re: [PHP-DEV] apache134 with libphp3.so: undefined symbol: __dn_skipname"
- Reply: Rasmus Lerdorf: "Re: [PHP-DEV] apache134 with libphp3.so: undefined symbol: __dn_skipname"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected> For help: php-dev-help <email protected>
- Next message: rasmus: "[PHP-DEV] CVS update: php3"
- Previous message: sas: "[PHP-DEV] CVS update: php3/functions"
- Next in thread: Rasmus Lerdorf: "Re: [PHP-DEV] apache134 with libphp3.so: undefined symbol: __dn_skipname"
- Reply: Rasmus Lerdorf: "Re: [PHP-DEV] apache134 with libphp3.so: undefined symbol: __dn_skipname"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

