httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Me" ...@yzix.org>
Subject [users@httpd] RHL 9 rpmbuild problems with 2.0.50
Date Tue, 17 Aug 2004 11:14:07 GMT
I'm trying to upgrade Apache from 2.0.40 to 2.0.50 on RHL 9. Because I don't want to lose any
more than I absolutely have to and I've got quite a few identical machines that I'd like to
apply the upgrade to, I'm trying to build an RPM rather than just configure/make/make install.

Thus far, I've done this:

d/l httpd-2.0.50.tar.gz
[root@ns3 downloads]# tar -zxvf httpd-2.0.50.tar.gz
[root@ns3 downloads]# cd httpd-2.0.50

ran rpmbuild
[root@ns3 downloads]# rpmbuild -ba httpd.spec

It complained files weren't being packaged, so I opened httpd.spec in a text editor and added
the lines:
%{_libdir}/libapr*
%{contentdir}/error/README

%{_mandir}/man8/apachectl.8*
%{_mandir}/man8/httpd.8*

ran rpmbuild again
[root@ns3 downloads]# rpmbuild -ba httpd.spec

It created the rpm's, good, so:
[root@ns3 downloads]# rpm -Uvh /usr/src/redhat/RPMS/i386/*.rpm

it complains (obviously):
httpd-mmn = 20020628 is needed by (installed) mod_auth_pgsql-0.9.12-14
httpd-mmn = 20020628 is needed by (installed) mod_python-3.0.1-3
httpd-mmn = 20020628 is needed by (installed) mod_perl-1.99_07-5
httpd-mmn = 20020628 is needed by (installed) mod_ssl-2.0.40-21
httpd-mmn = 20020628 is needed by (installed) php-4.2.2-17
httpd-mmn = 20020628 is needed by (installed) mod_auth_mysql-1.11-12
libapr.so.0 is needed by (installed) mod_perl-1.99_07-5
libaprutil.so.0 is needed by (installed) mod_perl-1.99_07-5

Went and d/l'ed each package listed and did it again:
[root@ns3 downloads]# rpm -Uvh --nodeps /usr/src/redhad/RPMS/i386/*.rpm

Everything looks ok, so reinstall the pacages it complained about earlier:
[root@ns3 downloads]# cd httpd_deps
[root@ns3 httpd_deps]# rpm -ivh *.rpm

Everything looked good from here, until I tried to recompile the packages:
[root@ns3 httpd_deps]# cd /usr/src/redhat/SPEC
[root@ns3 SPEC]# rpmbuild -ba mod_perl
---------8<---------------
Reading Makefile.PL args from @ARGV
MP_APXS = /usr/sbin/apxs
!!! '/usr/sbin/apxs -q INCLUDEDIR' failed:
!!! sh: line 1: /usr/sbin/envvars: No such file or directory
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/usr/sbin/httpd'..

!!! Unable to determine server version, aborting.
!!! Invalid MP_APXS specified?
error: Bad exit status from /var/tmp/rpm-tmp.99061 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.99061 (%build)
---------8<---------------

That was certainly not what I wanted?
[root@ns3 SPECS]# which apxs
/usr/sbin/apxs
and it lives where it's expected

maybe it's just mod_perl has to be done last (or near to it), so try a different module
[root@ns3 SPEC]# rpmbuild -ba mod_auth_mysql.spec
---------8<---------------
+ /usr/sbin/apxs -c mod_auth_mysql.c -L/usr/lib/mysql -lmysqlclient
sh: line 1: /usr/sbin/envvars: No such file or directory
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/usr/sbin/httpd'..
error: Bad exit status from /var/tmp/rpm-tmp.36796 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.36796 (%build)
---------8<---------------

did I forget to --enable-so?, Let's see:
[root@ns3 SPECS]# httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c

Nope, there it is.

I'm at the end of my wits here. I've recompiled httpd 20 ways from Sunday with the same results.
I've included --with-apxs2=/usr/sbin/apxs and --enable-mods-shared=all in my latest attempt.

Every post that seems to address whatever the issue here is states simply to recompile httpd
with mod_so support, which you can see I have. I'm thinking this issue probably has more to
do with apxs not recognizing it than it not being there.

Any help in at least the right direction would be much appreciated.


Mime
View raw message