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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
19 - 16 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 16:01:29 2024 UTC