Subject: Undefined PLT symbol
To: None <netbsd-users@netbsd.org>
From: None <emre@vsrc.uab.edu>
List: netbsd-users
Date: 06/20/2001 22:51:06
Hello folks,

I still don't know how to fix this error while loading modules for apache.  I searched on
google for this particular error message, and most (all?) search results that came up were
netbsd specific.  Is this a 'usual bug' or something?  Is there *any* way to fix it?  If
not, what is causing this error?

Here is some more info:

NetBSD visual-cortex 1.5T NetBSD 1.5T (INFINITY) #0: Thu Apr  5 00:22:23 CDT 2001
+root@visual-cortex:/usr/src/sys/arch/i386/compile/INFINITY i386

% gcc -v
Using builtin specs.
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)

# /usr/local/sbin/apachectl start     
Syntax error on line 1 of /usr/local/etc/httpd/httpd.conf:
Cannot load /usr/local/lib/httpd/mod_perl.so into server: /usr/local/lib/httpd/mod_perl.so: Undefined PLT symbol "getcwd"
+(reloc type = 7, symnum = 663)
/usr/local/sbin/apachectl start: httpd could not be started

# /usr/local/sbin/apachectl start   
Syntax error on line 13 of /usr/local/etc/httpd/jserv/jserv.conf:
Cannot load /usr/local/lib/httpd/mod_jserv.so into server: /usr/local/lib/httpd/mod_jserv.so: Undefined PLT symbol
+"getppid" (reloc type = 7, symnum = 199)
/usr/local/sbin/apachectl start: httpd could not be started

# /usr/local/sbin/apachectl start   
Syntax error on line 6 of /usr/local/etc/httpd/httpd.conf:
Cannot load /usr/local/lib/httpd/mod_php4.so into server: /usr/local/lib/httpd/mod_php4.so: Undefined PLT symbol
+"__semctl13" (reloc type = 7, symnum = 1711)
/usr/local/sbin/apachectl start: httpd could not be started


My httpd.conf has the following for modules:

# mod_perl
LoadModule perl_module lib/httpd/mod_perl.so
AddModule mod_perl.c

# JServ
Include /usr/local/etc/httpd/jserv/jserv.conf

# PHP4
LoadModule php4_module lib/httpd/mod_php4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3


My pkgsrc is from yesterday, everything compiles fine without any problems.
Does anyone know what might be wrong?  Thanks *alot* for any help...