php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1668 Apxs fails during compilation with rc=16711680
Submitted: 1999-07-06 10:01 UTC Modified: 1999-07-07 17:52 UTC
From: mattrose at folkwolf dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.11 OS: Debian Linux 2.1 kernel 2.0.36
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mattrose at folkwolf dot net
New email:
PHP Version: OS:

 

 [1999-07-06 10:01 UTC] mattrose at folkwolf dot net
this is the configure command I used
 ./configure --with-apxs=/usr/local/apache/bin/apxs --with-config-file=/usr/local/lib/ --with-mysql
then I have to go into config.h and change these lines
to 1.

/* Define both of these if you want the bundled REGEX library */
#define REGEX 1
#define HSREGEX 1

(without these lines it'll break at the regex stuff)

then when I go to make, it gives me this error
I added the -w to the apxs perl script so that I could see what was going on more

/usr/local/apache/bin/apxs -c -o libphp3.so -I. -I.  -Wl,'-rpath /usr/lib/mysql' mod_php3.c libmodphp3-so.a -L/usr/local/lib                             -ldb  pcrelib/libpcre.a  -L/usr/lib/mysql -lmysqlclient -lm -ldl -lcrypt -lnsl  -lresolv  -Lpcrelib -lpcre
gcc -DLINUX=2 -DUSE_HSREGEX  -I/usr/local/apache/include -I. -I.  -c mod_php3.c
  -o libphp3.so mod_php3.o libmodphp3-so.a -L/usr/local/lib -ldb pcrelib/libpcre.a -L/usr/lib/mysql -lmysqlclient -lm -ldl -lcrypt -lnsl -lresolv -Lpcrelib -lpcre -rpath /usr/lib/mysql 
Can't exec "-o": No such file or directory at /usr/local/apache/bin/apxs line 224.
apxs:Break: Command failed with rc=16711680


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-07 12:51 UTC] mattrose at folkwolf dot net
OK.  Just for fun I d/led the CVStree to fix some of the other problems.  It did fix the regex problem I was having that I had hacked around.
however, it still did not fix the problem.  Does anyone have an idea on this apxs thing?

 [1999-07-07 17:52 UTC] sas at cvs dot php dot net
Looks like your APXS is broken. The last command apxs executes is bogus (as you noted before). However, the arguments passed to apxs are correct.

  -o libphp3.so mod_php3.o libmodphp3-so.a -L/usr/local/lib -ldb +pcrelib/libpcre.a -L/usr/lib/mysql -lmysqlclient -lm -ldl -lcrypt -lnsl +-lresolv -Lpcrelib -lpcre -rpath /usr/lib/mysql 

Reinstalling Apache should help. Have a look at apxs, around line 70. From the above output it looks like CFG_LD_SHLIB and CFG_LDFLAGS_SHLIB are not set. 

my $CFG_LD_SHLIB      = 'ld';      # substituted via Makefile.tmpl
my $CFG_LDFLAGS_SHLIB = '-Bshareable'; # substituted via Makefile.tmpl
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 17:01:29 2024 UTC