php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1763 DSO php4 needs -lc at compile-time to resolve all symbols at runtime
Submitted: 1999-07-20 15:34 UTC Modified: 1999-07-22 09:20 UTC
From: sasha at forum dot swarthmore dot edu Assigned:
Status: Closed Package: Dynamic loading
PHP Version: 4.0 Beta 1 OS: Linux 2.2.5-15 RH 6.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sasha at forum dot swarthmore dot edu
New email:
PHP Version: OS:

 

 [1999-07-20 15:34 UTC] sasha at forum dot swarthmore dot edu
when mod_php4 configured via
CFLAGS="-fPIC" ./configure --prefix=/usr \
        --with-apxs=/usr/sbin/apxs \
        --with-config-file-path=/etc/httpd \
        --enable-safe-mode \
        --with-exec-dir=/usr/bin \
        --with-system-regex \
        --disable-debug \
        --with-zlib \
        --enable-debugger \
        --enable-magic-quotes \
        --enable-track-vars   
httpd fails to load libphp3.so:
Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4.so: undefined symbol: fstat

adding the -lc flag during the last step of compile solves the problem:

ld -Bshareable -o libphp4.so ./mod_php4.o libmodphp4-so
.a -L/root/php-4.0b1/ext/pcre/pcrelib -lpcre -lgdbm -lpam -lz -Llibzend -lzend -Lext -lphpext -L/root/php-4.0b1/ext/pcre/pcrelib -lpcre -lgdbm -lpam -lz -ldl -lttf -lgd -lm -lcrypt -lnsl -lresolv -lc


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-22 09:20 UTC] sas at cvs dot php dot net
We are currently working together with the Apache folks to solve these issues. In the meantime, you can use APXS and change lines 75 and 76 of the apxs utility to:

my $CFG_LD_SHLIB      = 'gcc';      # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = '-shared'; # substituted via Makefile.tmpl

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC