Hey all. I've to try build a redhat 7.x PHP-4.2 RPM, and it's not funny
how awkward it is.
The last set of problems are in the compiling. for some reason, it wasn't
building the PHP CGI binary. When i try and do it from the command line, I
get;
[root at mayo build-cgi]# make php
/bin/sh /usr/src/redhat/BUILD/php-4.2.2/build-cgi/libtool --silent --mode=link gcc -I. -I/usr/src/redhat/BUILD/php-4.2.2/ -I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/main
-I/usr/src/redhat/BUILD/php-4.2.2 -I/usr/include/apache -I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/Zend -I/usr/include/libxml2 -I/usr/include/freetype2/freetype -I/usr/include/imap
-I/usr/include/mysql -I/usr/local/include -I/usr/include/pgsql -I/usr/include/pspell -I/usr/include/ucd-snmp -I/usr/src/redhat/BUILD/php-4.2.2/main -I/usr/src/redhat/BUILD/php-4.2.2/Zend
-I/usr/src/redhat/BUILD/php-4.2.2/TSRM -DLINUX=22 -DEAPI -DEAPI_MM -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -I/usr/src/redhat/BUILD/php-4.2.2/build-cgi/TSRM -O2 -march=i386 -mcpu=i686 -fPIC -o php
-export-dynamic stub.lo libphp4.la
libtool: link: warning: library `/usr/lib/libgdbm.la' was moved.
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): undefined reference to `main'
./.libs/libphp4.so: undefined reference to `ap_user_id'
./.libs/libphp4.so: undefined reference to `ap_table_get'
./.libs/libphp4.so: undefined reference to `ap_table_setn'
./.libs/libphp4.so: undefined reference to `ap_update_mtime'
Any idea why ?
john
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!