php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4109 Compile fails on /opt/apache/bin/apxs -c -o libphp3.so -I. ... (etc)
Submitted: 2000-04-11 17:54 UTC Modified: 2000-04-27 13:43 UTC
From: steven_r_rice at yahoo dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.16 OS: Sparc/Solaris 2.5.1
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: steven_r_rice at yahoo dot com
New email:
PHP Version: OS:

 

 [2000-04-11 17:54 UTC] steven_r_rice at yahoo dot com
When compiling i get this (successful lines removed):

# make
/opt/apache/bin/apxs -c -o libphp3.so  -I. -I.  ./mod_php3.c libmodphp3-so.a -L/usr/local/lib                               -lm -ldl -lsocket -lnsl  -lresolv 
gcc -DSOLARIS2=251 -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE -I/opt/apache/include -I. -I.  -c ./mod_php3.c
gcc q(-shared) -o libphp3.so ./mod_php3.o libmodphp3-so.a -L/usr/local/lib -lm -ldl -lsocket -lnsl -lresolv 
sh: syntax error at line 1: `(' unexpected
apxs:Break: Command failed with rc=131072
make: *** [libphp3.so] Error 1
# 

This was configured with this line:
./configure --with-apache=/opt/apache_1.3.9 --with-apxs=/opt/apache/bin/apxs

I was sure to edit the appropriate apxs file accordingly:

my $CFG_CFLAGS_SHLIB  = '-fpic -DSHARED_MODULE';      # substituted via Makefile.tmpl
my $CFG_LD_SHLIB      = 'gcc';          # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = 'q(-shared)'; # substituted via Makefile.tmpl
my $CFG_LIBS_SHLIB    = '';        # substituted via Makefile.tmpl
my $CFG_PREFIX        = '/opt/apache';            # substituted via APACI install
my $CFG_SBINDIR       = '/opt/apache/bin';           # substituted via APACI install
my $CFG_INCLUDEDIR    = '/opt/apache/include';        # substituted via APACI install
my $CFG_LIBEXECDIR    = '/opt/apache/libexec';        # substituted via APACI install
my $CFG_SYSCONFDIR    = '/opt/apache/conf';        # substituted via APACI install


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-27 13:43 UTC] sas at cvs dot php dot net
Set $CFG_LDFLAGS_SHLIB to -shared, not q(-shared)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 00:00:02 2026 UTC