You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Ken Gillett <ke...@ukgb.net> on 2005/01/21 23:32:31 UTC

Compile fails *** The httpd binary was not found

[root@neXus mod_perl]# make
cd "src/modules/perl" && make
make[1]: Entering directory 
`/usr/src/mod_perl-2.0.0-RC3/src/modules/perl'
gcc -I/usr/src/mod_perl-2.0.0-RC3/src/modules/perl 
-I/usr/src/mod_perl-2.0.0-RC3/xs -I/usr/local/include/apache 
-I/usr/local/include/apache -I/usr/local/include 
-I/usr/local/include/apache -D_REENTRANT -D_GNU_SOURCE 
-DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe 
-I/usr/local/include -I/usr/include/gdbm 
-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE -DMOD_PERL 
-DMP_COMPAT_1X -DLINUX=2 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE 
-D_SVID_SOURCE -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -fPIC \
-c mod_perl.c && mv mod_perl.o mod_perl.lo
cc1: invalid option `tune=pentium4'
make[1]: *** [mod_perl.lo] Error 1
make[1]: Leaving directory 
`/usr/src/mod_perl-2.0.0-RC3/src/modules/perl'
make: *** [modperl_lib] Error 2

-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

Included above is the screen output for the failed compile, but the 
report below perhaps indicates the reason - it couldn't find the httpd 
binary. In fact this is in /usr/local/sbin alongside apxs so I don't 
know why there was a problem.

Machine is running RedHat 9.0. Apache 2.0.52 has just been compiled and 
installed (and runs) without problem, using prefix=/usr/local so files 
are placed in bin, sbin and inlcude/apache. mod_perl configured with:-

	perl Makefile.PL \
		MP_APXS=/usr/local/sbin/apxs \
		MP_APR_CONFIG=/usr/local/bin/apr-config

Is this a bug that mod_perl cannot find httpd in the same dir as apxs, 
or is there some other configuration that is required to fix this 
problem?

2. Used Components and their Configuration:

*** mod_perl version 1.999020

*** using /usr/src/mod_perl-2.0.0-RC3/lib/Apache/BuildConfig.pm

*** Makefile.PL options:
   MP_APR_CONFIG  => /usr/local/bin/apr-config
   MP_APR_LIB     => aprext
   MP_APXS        => /usr/local/sbin/apxs
   MP_COMPAT_1X   => 1
   MP_GENERATE_XS => 1
   MP_LIBNAME     => mod_perl
   MP_USE_DSO     => 1


*** The httpd binary was not found


*** (apr|apu)-config linking info

  -L/usr/local/lib -lapr-0 -lrt -lm -lcrypt -lnsl  -lpthread -ldl
  -L/usr/local/lib -laprutil-0 -lgdbm -ldb-4.2 -lexpat



*** /usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
   Platform:
     osname=linux, osvers=2.4.21-14.elsmp, 
archname=i386-linux-thread-multi
     uname='linux tweety.build.redhat.com 2.4.21-14.elsmp #1 smp wed apr 
14 18:55:47 edt 2004 i686 i6
86 i386 gnulinux '
     config_args='-des -Doptimize=-O2 -g -pipe -m32 -march=i386 
-mtune=pentium4 -Dversion=5.8.5 -Dmyh
ostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, 
Inc. -Dinstallprefix=/usr -Dp
refix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr 
-Duseshrplib -Dusethreads -Du
seithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm 
-Di_gdbm -Di_shadow -Di_syslo
g -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 
-Uversiononly -Dpager=/usr/bin/less
-isr -Dinc_version_list=5.8.4 5.8.3 5.8.2 5.8.1 5.8.0'
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=define use5005threads=undef useithreads=define 
usemultiplicity=define
     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=undef use64bitall=undef uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS 
-DDEBUGGING -fno-strict-alias
ing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
     optimize='-O2 -g -pipe -m32 -march=i386 -mtune=pentium4',
     cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS 
-DDEBUGGING -fno-strict-aliasing -pipe
-I/usr/local/include -I/usr/include/gdbm'
     ccversion='', gccversion='3.4.2 20041006 (Red Hat 3.4.2-5)', 
gccosandvers=''
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
     alignbytes=4, prototype=define
   Linker and Libraries:
     ld='gcc', ldflags =' -L/usr/local/lib'
     libpth=/usr/local/lib /lib /usr/lib
     libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
     perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
     libc=/lib/libc-2.3.3.so, so=so, useshrplib=true, libperl=libperl.so
     gnulibc_version='2.3.3'
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E 
-Wl,-rpath,/usr/lib/perl5/5.8.5
/i386-linux-thread-multi/CORE'
     cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
   Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS 
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
   Built under linux
   Compiled at Oct 12 2004 12:45:01
   %ENV:
     PERL_LWP_USE_HTTP_10="1"
   @INC:
     /usr/lib/perl5/5.8.5/i386-linux-thread-multi
     /usr/lib/perl5/5.8.5
     /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
     /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
     /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
     /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
     /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
     /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
     /usr/lib/perl5/site_perl/5.8.5
     /usr/lib/perl5/site_perl/5.8.4
     /usr/lib/perl5/site_perl/5.8.3
     /usr/lib/perl5/site_perl/5.8.2
     /usr/lib/perl5/site_perl/5.8.1
     /usr/lib/perl5/site_perl/5.8.0
     /usr/lib/perl5/site_perl
     /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
     /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
     /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
     /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
     /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
     /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
     /usr/lib/perl5/vendor_perl/5.8.5
     /usr/lib/perl5/vendor_perl/5.8.4
     /usr/lib/perl5/vendor_perl/5.8.3
     /usr/lib/perl5/vendor_perl/5.8.2
     /usr/lib/perl5/vendor_perl/5.8.1
     /usr/lib/perl5/vendor_perl/5.8.0
     /usr/lib/perl5/vendor_perl
     .

*** Packages of interest status:

Apache::Request: -
CGI            : 3.05
LWP            : 5.65
mod_perl       : -


3. This is the core dump trace: (if you get a core dump):

   [CORE TRACE COMES HERE]

This report was generated by t/REPORT on Fri Jan 21 22:15:17 2005 GMT.

-------------8<---------- End Bug Report --------------8<----------



Ken  G i l l e t t

_/_/_/_/_/_/_/_/_/


Re: Compile fails *** The httpd binary was not found

Posted by Stas Bekman <st...@stason.org>.
Ken Gillett wrote:
> [root@neXus mod_perl]# make
> cd "src/modules/perl" && make
> make[1]: Entering directory `/usr/src/mod_perl-2.0.0-RC3/src/modules/perl'
> gcc -I/usr/src/mod_perl-2.0.0-RC3/src/modules/perl 
[...]
> -D_SVID_SOURCE -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -fPIC \
> -c mod_perl.c && mv mod_perl.o mod_perl.lo
> cc1: invalid option `tune=pentium4'

that means that your perl wasn't built with the same gcc that you've on 
your machine. It's your perl that suggests modperl to use -mtune=pentium 
as you can see:

>     config_args='-des -Doptimize=-O2 -g -pipe -m32 -march=i386 
> -mtune=pentium4 -Dversion=5.8.5 -Dmyh

rebuild perl using the compiler you have on *your* machine and then return 
on the modperl build process and you will be fine.

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com