php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5506 undefined reference
Submitted: 2000-07-11 09:21 UTC Modified: 2000-09-06 13:42 UTC
From: izauddin at magnifix dot com dot my Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.1pl2 OS: RedHat 6.2
Private report: No CVE-ID: None
 [2000-07-11 09:21 UTC] izauddin at magnifix dot com dot my
This is my build config for php 4.0.1pl2

./configure --with-apache=../apache_1.3.12 \
        --enable-inline-optimization \
        --enable-magic-quotes \
        --enable-track-vars \
        --enable-memory-limit \
        --enable-wddx \
        --enable-sysvsem \
        --enable-sysvshm \
        --enable-bcmath \
        --enable-gdbm \
        --enable-db2 \
        --enable-debugger \
        --with-xml \
        --with-gd \
        --with-ttf \
        --with-ftp \
        --with-readline \
        --with-mm=/usr \
        --enable-trans-sid \
        --with-mysql \
        --with-ldap \
        --with-imap \
        --with-zlib \
        --with-pgsql \
        --with-gettext \
        --with-pdflib=/usr/local \
        --with-mhash=/usr/local \
        --with-oci8=/u01/app/oracle/product/8.1.6 \
        --with-fdftk=/usr/local/fdftk4_05

php configure, make and make installed run fine. I have mm-1.1.3-1 and the mm library
is at /usr/lib as per installed by the rpm.  Where do I go wrong ?, when I go to the apache
directory and run configure fine, run make give me the error below. Any idea that can help
me solved this problem ?

Using PHP 4.0.1pl2 rpm provided by Troels Arvin at http://fsr.ku.dk/people/troels/rpms/php/
give me different error. I add the pdflib,mhash,oci8 and the fdftk support in the php.spec
as per above, rpm -ba php.spec run fine, but when I try to installed it, I get error 
failed dependencies, so I installed using --nodeps, but when I try to start apache I get this
error undefined symbol for the module that I add manually above, even though I put the
/usr/local/lib and /u01/app/oracle/product/8.1.6 in the /etc/ld.so.conf and run ldconfig -v 
running ldd stasify everything and doing nm on the library show that ok. Any idea ?



cp libmodphp4.a libphp4.a
ar r libphp4.a mod_php4.o
ranlib libphp4.a
<=== src/modules/php4
<=== src/modules
gcc -c  -I./os/unix -I./include   -DLINUX=2 -I/home/izauddin/src/php-4.0.1pl2 -I
/home/izauddin/src/php-4.0.1pl2/main -I/home/izauddin/src/php-4.0.1pl2/main -I/h
ome/izauddin/src/php-4.0.1pl2/Zend -I/home/izauddin/src/php-4.0.1pl2/Zend -I/hom
e/izauddin/src/php-4.0.1pl2 -DUSE_EXPAT -I./lib/expat-lite `./apaci` modules.c
gcc -c  -I./os/unix -I./include   -DLINUX=2 -I/home/izauddin/src/php-4.0.1pl2 -I
/home/izauddin/src/php-4.0.1pl2/main -I/home/izauddin/src/php-4.0.1pl2/main -I/h
ome/izauddin/src/php-4.0.1pl2/Zend -I/home/izauddin/src/php-4.0.1pl2/Zend -I/hom
e/izauddin/src/php-4.0.1pl2 -DUSE_EXPAT -I./lib/expat-lite `./apaci` buildmark.c
gcc  -DLINUX=2 -I/home/izauddin/src/php-4.0.1pl2 -I/home/izauddin/src/php-4.0.1p
l2/main -I/home/izauddin/src/php-4.0.1pl2/main -I/home/izauddin/src/php-4.0.1pl2
/Zend -I/home/izauddin/src/php-4.0.1pl2/Zend -I/home/izauddin/src/php-4.0.1pl2 -
DUSE_EXPAT -I./lib/expat-lite `./apaci`   -rdynamic \
     -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4
/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a  lib/expat-lite/libexpat.
a  -Wl,-rpath,/usr/local/lib -Wl,-rpath,/u01/app/oracle/product/8.1.6/lib -Wl,-r
path,/usr/lib/pgsql  -rdynamic -L/usr/local/lib -L/u01/app/oracle/product/8.1.6/
lib -L/usr/lib/pgsql -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmod
php4  -lgdbm -L/usr/local/fdftk4_05/lib -lFdfTk -lpam -lc-client  -ldl -lz -lmm
-lreadline -lhistory -lncurses -lpq -lpdf -ltiff -ltiff -lpng -lpng -ljpeg -ljpe
g -lclntsh -lm -lmhash -lldap -lttf -lgd -lresolv -lm -ldl -lcrypt -lnsl  -lreso
lv -llber -lz -ljpeg -lpng -ltiff  -lm -lcrypt -lndbm -ldb -ldl
modules/php4/libphp4.a(mod_mm.o): In function `ps_sd_new':
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:94: undefined reference to
`mm_malloc'
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:99: undefined reference to
`mm_malloc'
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:107: undefined reference to
 `mm_strdup'
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:109: undefined reference to
 `mm_free'
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:110: undefined reference to
 `mm_free'
modules/php4/libphp4.a(mod_mm.o): In function `ps_sd_destroy':
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:141: undefined reference to
 `mm_free'
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:143: undefined reference to
 `mm_free'
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:144: undefined reference to
 `mm_free'
modules/php4/libphp4.a(mod_mm.o): In function `ps_mm_initialize':
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:178: undefined reference to
 `mm_create'
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:180: undefined reference to
 `mm_calloc'
modules/php4/libphp4.a(mod_mm.o): In function `ps_mm_destroy':
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:196: undefined reference to
 `mm_free'
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:197: undefined reference to
 `mm_destroy'
modules/php4/libphp4.a(mod_mm.o): In function `_ps_read_mm':
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:239: undefined reference to
 `mm_lock'
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:249: undefined reference to
 `mm_unlock'
modules/php4/libphp4.a(mod_mm.o): In function `_ps_write_mm':
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:259: undefined reference to
 `mm_lock'
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:267: undefined reference to
 `mm_free'
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:269: undefined reference to
 `mm_malloc'
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:280: undefined reference to
 `mm_unlock'
modules/php4/libphp4.a(mod_mm.o): In function `_ps_delete_mm':
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:290: undefined reference to
 `mm_lock'
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:296: undefined reference to
 `mm_unlock'
modules/php4/libphp4.a(mod_mm.o): In function `_ps_gc_mm':
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:311: undefined reference to
 `mm_lock'
/home/izauddin/src/php-4.0.1pl2/ext/session/mod_mm.c:325: undefined reference to
 `mm_unlock'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/izauddin/src/apache_1.3.12/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/izauddin/src/apache_1.3.12'
make: *** [build] Error 2



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-22 11:57 UTC] sniper@php.net
Is this still happening with more recent version of php
(from CVS or snaps.php.net) ??

--Jani
 [2000-09-06 13:42 UTC] sniper@php.net
No feedback from user.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 02:00:01 2026 UTC