php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3602 pcrelib/Makefile missing CFLAGS_SHLIB parameter
Submitted: 2000-02-24 00:08 UTC Modified: 2000-03-29 23:49 UTC
From: bbrown at ibexa dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.14 OS: HPUX 10.20
Private report: No CVE-ID: None
 [2000-02-24 00:08 UTC] bbrown at ibexa dot com
When comiling PHP with apxs (DSO support), the CFLAGS line in pcrelib/Makefile doesn't import CFLAGS_SHLIB from the top-level Makefile, so compiler flags for creating a shared library don't get activated. This causes a compilation failure at link time because libpcre.a isn't created sharable.  

        ranlib libmodphp3-so.a
        /dfs/opt/apache/bin/apxs -c -o libphp3.so  -I. -I.  ./mod_php3.c libmodphp3-so.a -L/usr/local/lib                          -L/dfs/opt/informix/lib -L/dfs/opt/informix/lib/esql -lixsql -lixasf -lixgen -lixos -lixgls -lnsl_s -lV3 -lcl -lsec /dfs/opt/informix/lib/esql/checkapi.o -lixglx     pcrelib/libpcre.a -lm   -Lpcrelib -lpcre
cc -DHPUX10 -Aa -D_HPUX_SOURCE -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -Ae +DAportable -O +z -DSHARED_MODULE -I/dfs/opt/apache/include -I. -I.  -c ./mod_php3.c
ld -b -o libphp3.so ./mod_php3.o libmodphp3-so.a -L/usr/local/lib -L/dfs/opt/informix/lib -L/dfs/opt/informix/lib/esql -lixsql -lixasf -lixgen -lixos -lixgls -lnsl_s -lV3 -lcl -lsec /dfs/opt/informix/lib/esql/checkapi.o -lixglx pcrelib/libpcre.a -lm -Lpcrelib -lpcre 
ld: Invalid loader fixup for symbol "$0000000D".
apxs:Break: Command failed with rc=65536
*** Error exit code 1

I had to add "+z -DSHARED_MODULE" to the CFLAGS line in pcrelib/Makefile to link correctly.

My configure line was:
./configure --with-informix \
            --with-config-file-path=/etc/opt/apache \
            --with-apxs=/dfs/opt/apache/bin/apxs \
            --with-xml

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-29 23:49 UTC] sas at cvs dot php dot net
Fixed in CVS. Thanks for your report.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 21:00:02 2026 UTC