Compilation error for CentOS 5.5, perl-5.10, mp2-current

Alexander Goller <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
Hi,

i have a problem compiling mod_perl on CentOS, using perl 5.10.


Bug report:

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

Running make:

         -c modperl_flags.c && mv modperl_flags.o modperl_flags.lo
gcc -I/usr/src/redhat/BUILD/modperl-2.0/src/modules/perl 
-I/usr/src/redhat/BUILD/modperl-2.0/xs -I/usr/include/apr-1 
-I/usr/include/apr-1  -I/usr/include/httpd -D_REENTRANT -D_GNU_SOURCE 
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -fstack-protector 
-I/usr/local/include -I/usr/lib/perl5/CORE -DMOD_PERL -DMP_COMPAT_1X 
-DLINUX=2 -D_LARGEFILE64_SOURCE -O2 -g -m32 -march=i386 -mtune=generic 
-fasynchronous-unwind-tables -fPIC \
         -c modperl_xsinit.c && mv modperl_xsinit.o modperl_xsinit.lo
modperl_xsinit.c: In function 'xs_init':
modperl_xsinit.c:30: error: 'my_perl' undeclared (first use in this 
function)
modperl_xsinit.c:30: error: (Each undeclared identifier is reported only 
once
modperl_xsinit.c:30: error: for each function it appears in.)
modperl_xsinit.c:30: warning: passing argument 3 of 'Perl_newXS' from 
incompatible pointer type
make[1]: *** [modperl_xsinit.lo] Error 1
make[1]: Leaving directory 
`/usr/src/redhat/BUILD/modperl-2.0/src/modules/perl'
make: *** [modperl_lib] Error 2


2. Used Components and their Configuration:

*** mod_perl version 2.000006

*** using /usr/src/redhat/BUILD/modperl-2.0/lib/Apache2/BuildConfig.pm

*** Makefile.PL options:
   MP_APR_LIB     => aprext
   MP_APXS        => /usr/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

  -laprutil-1 -lldap -llber -ldb-4.3 -lexpat
  -lapr-1  -lpthread -ldl



*** /usr/bin/perl -V
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

   Platform:
     osname=linux, osvers=2.6.18-164.10.1.el5, 
archname=i386-linux-thread-multi
     uname='linux master-cent5 2.6.18-164.10.1.el5 #1 smp thu jan 7 
20:00:41 est 2010 i686 i686 i386 gnulinux '
     config_args='-des -Doptimize=-O2 -g -m32 -march=i386 -mtune=generic 
-fasynchronous-unwind-tables -DDEBUGGING=-g 
-Accflags=-DPERL_USE_SAFE_PUTENV -Dversion=5.10.1 -Dmyhostname=localhost 
-Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dprefix=/usr 
-Dvendorprefix=/usr -Dsiteprefix=/usr/local 
-Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib/perl5 
-Dprivlib=/usr/share/perl5 -Dvendorlib=/usr/share/perl5 
-Darchlib=/usr/lib/perl5 -Dvendorarch=/usr/lib/perl5 
-Dinc_version_list=5.10.0 -Darchname=i386-linux-thread-multi 
-Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid 
-Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog 
-Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 
-Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto 
-Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto 
-Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto 
-Dscriptdir=/usr/bin 
-Dotherlibdirs=/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi:/usr/local/lib/perl5/site_perl/5.10.0:/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi:/usr/lib/perl5/vendor_perl:/usr/lib/perl5/site_perl'
     hint=recommended, useposix=true, d_sigaction=define
     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 
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -fstack-protector 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
     optimize='-O2 -g -m32 -march=i386 -mtune=generic 
-fasynchronous-unwind-tables',
     cppflags='-D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV 
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
     ccversion='', gccversion='4.1.2 20080704 (Red Hat 4.1.2-46)', 
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 =' -fstack-protector -L/usr/local/lib'
     libpth=/usr/local/lib /lib /usr/lib
     libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
     perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
     libc=/lib/libc-2.5.so, so=so, useshrplib=true, libperl=libperl.so
     gnulibc_version='2.5'
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E 
-Wl,-rpath,/usr/lib/perl5/CORE'
     cccdlflags='-fPIC', lddlflags='-shared -O2 -g -m32 -march=i386 
-mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib 
-fstack-protector'


Characteristics of this binary (from libperl):
   Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
                         PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
                         PERL_USE_SAFE_PUTENV USE_ITHREADS USE_LARGE_FILES
                         USE_PERLIO USE_REENTRANT_API
   Built under linux
   Compiled at Mar 16 2010 07:51:47
   %ENV:
     PERL_LWP_USE_HTTP_10="1"
   @INC:
     /usr/local/lib/perl5
     /usr/local/share/perl5
     /usr/local/share/perl5
     /usr/lib/perl5
     /usr/share/perl5
     /usr/share/perl5
     /usr/lib/perl5
     /usr/share/perl5
     /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
     /usr/local/lib/perl5/site_perl/5.10.0
     /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
     /usr/lib/perl5/vendor_perl
     /usr/lib/perl5/site_perl
     .

*** Packages of interest status:

Apache2            : -
Apache2::Request   : -
CGI                : 3.49
ExtUtils::MakeMaker: 6.56, 6.56
LWP                : 5.836
mod_perl           : -
mod_perl2          : -


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

This report was generated by ./REPORT on Mon Feb 21 16:05:17 2011 GMT.

-------------8<---------- End Bug Report --------------8<----------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.