|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
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 \
httpd fails to load
Cannot load /etc/httpd/modules/ into server: /etc/httpd/modules/ undefined symbol: fstat

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

ld -Bshareable -o ./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


Add a Patch

Pull Requests

Add a Pull Request


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-2020 The PHP Group
All rights reserved.
Last updated: Sat Oct 24 15:01:23 2020 UTC