I have am having all sorts of problems trying to get php to build from the source rpm. The build fails because: aclocal fails to find TSRM/TSRM/threads.mf Commented out in spec file. Not sure why this should be run anyway. Build then fails because it can't find httpd.conf in $RPM_BUILD_ROOT/etc/httpd/conf/httpd.conf and $RPM_BUILD_ROOT/etc/apache2/httpd2-prefork.cong Modfied .spec to copy those in. Now it fails in the test part of the script. It looks like a linking problem: + lynx -dump /var/tmp/test.html + gawk '/^Environment/ {exit} {print}' + echo -e 'LoadModule php4_module /var/tmp/mod_php4-4.3.3-build//usr/lib/apache/libphp4.so\n' + echo -e 'AddModule mod_php4.c\n' + httpd -t Syntax error on line 1 of /etc/httpd/suse_loadmodule.conf: Cannot load /var/tmp/mod_php4-4.3.3-build//usr/lib/apache/libphp4.so into server: /var/tmp/mod_php4-4.3.3-build//usr/lib/apache/libphp4.so: undefined symbol: _ZN12QDomDocument10setContentERK7QStringPS0_PiS4_ + exit 1 The above symbol is in /usr/lib/qt3/lib/libqtxxx libs. Not sure why its not getting linked in. Any pointers on getting this to work? Thanks, Andy
On Wednesday 14 April 2004 02.38, Andy Howell wrote:
I have am having all sorts of problems trying to get php to build from the source rpm. The build fails because:
aclocal fails to find TSRM/TSRM/threads.mf
Commented out in spec file.
You commented out aclocal because it failed? OK, that's not the best way to solve a problem. aclocal is an integral part of the autotools It's TSRM/threads.m4, not .mf, and it's there in the source package. Figure out why it isn't found instead. Got any error messages?
Any pointers on getting this to work?
Make sure you have all packages listed in the spec file installed. And don't edit the spec file without being certain that it's wrong. The spec should work. It was used to build the binary in the distribution.
participants (2)
-
Anders Johansson
-
Andy Howell