php problems!!! apxs compile
Posted on 2006-11-16
I'm attempting a reinstall of PHP. I'm running this line for the initial configure:
./configure --with-gd --with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-zlib --with-jpeg-dir=/usr/include --with-zlib-dir=/usr/include --prefix=/usr/local/ --enable-shared --includedir=/usr/local/ --libdir=/usr/local/
The ./configure runs just fine, but when I attempt the Make, it gets about halfway and then I get a long list of errors that look basically like this:
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o(.text+0x18): In function `_st
: undefined reference to `main'
ext/standard/info.lo(.text+0x19): In function `php_info_write_wrapper':
/home/installd/buildapache/php-4.4.4/ext/standard/info.c:69: undefined reference t
/info.c:71: undefined reference to `php_body_write'
/info.c:73: undefined reference to `_efree'
It a whole bunch of undefined references. One other thing to note, is that if I change the ./configure line to use "--with-a
pache=/home/installd/buildapache/apache_1.3.36" instead of "--with-apxs=/usr/local/apache/bin/apxs", it compiles successfully. Unfortunately, I need to use the apxs compile to work with the forum software, so I have to be able to get it to work this way.
I can't see why the compiler is not seeing those function names. All of the undefined references come from included header files, which I've attempted to point to with the "includedir=" option, but it still continues to fail. Please help. What generally causes the undefined reference errors, and how can I get a successful apxs compile?
Probably won't hurt to mention that the OS is CentOS 4.4, the version of PHP being installed is 4.4.4.