Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

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

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


alex at ryte

Feb 21, 2011, 8:20 AM

Post #1 of 4 (1089 views)
Permalink
Compilation error for CentOS 5.5, perl-5.10, mp2-current

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 [at] localhos -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<----------


pgollucci at p6m7g8

Feb 21, 2011, 6:35 PM

Post #2 of 4 (1016 views)
Permalink
Re: Compilation error for CentOS 5.5, perl-5.10, mp2-current [In reply to]

On 2/21/2011 12:32 PM, Alexander Goller wrote:

> Apache2 : -
> Apache2::Request : -
> CGI : 3.49
> ExtUtils::MakeMaker: 6.56, 6.56
> LWP : 5.836
> mod_perl : -
> mod_perl2 : -
Can you pull the specific version from mod_perl2.pm?

Can you try with the recent 2.0.5 and/or svn trunk if thats not what you
have.



--
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci [at] p6m7g8) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer, FreeBSD Foundation
Consultant, P6M7G8 Inc.
Sr. System Admin, Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.


alex at ryte

Feb 22, 2011, 12:45 AM

Post #3 of 4 (1016 views)
Permalink
Re: Compilation error for CentOS 5.5, perl-5.10, mp2-current [In reply to]

Hi Philip,

thanks for looking into it. The version i used here is 2.0.6-dev, the -latest or -current version downloadable from the website. I can pull svn HEAD too and try that.

The error is happening in 2.0.4 which i tried first, then i downloaded 2.0.5 because i read of 5.10 improvements and am now using the -current version.

alex
Am 22.02.2011 um 03:35 schrieb Philip M. Gollucci:

> On 2/21/2011 12:32 PM, Alexander Goller wrote:
>
>> Apache2 : -
>> Apache2::Request : -
>> CGI : 3.49
>> ExtUtils::MakeMaker: 6.56, 6.56
>> LWP : 5.836
>> mod_perl : -
>> mod_perl2 : -
> Can you pull the specific version from mod_perl2.pm?
>
> Can you try with the recent 2.0.5 and/or svn trunk if thats not what you
> have.
>
>
>
> --
> ------------------------------------------------------------------------
> 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
> Philip M. Gollucci (pgollucci [at] p6m7g8) c: 703.336.9354
> VP Apache Infrastructure; Member, Apache Software Foundation
> Committer, FreeBSD Foundation
> Consultant, P6M7G8 Inc.
> Sr. System Admin, Ridecharge Inc.
>
> Work like you don't need the money,
> love like you'll never get hurt,
> and dance like nobody's watching.

--
Alexander Goller - Fotografie
web: www.ryte.de
mail: alex [at] ryte

GeSichtweisen - http://gesichtweisen.com/


torsten.foertsch at gmx

Feb 22, 2011, 4:07 AM

Post #4 of 4 (1022 views)
Permalink
Re: Compilation error for CentOS 5.5, perl-5.10, mp2-current [In reply to]

On Monday, February 21, 2011 18:32:56 Alexander Goller wrote:
> i have a problem compiling mod_perl on CentOS, using perl 5.10.

The problem could have been sorted out on IRC. Alex had used the wrong version
of ExtUtils::Embed.

We can prevent such problems by checking the version with Module::CoreList. Is
it worth the effort?

Module::CoreList has appeared in 5.8.9 and 5.10.0. For earlier versions we can
at least check the ExtUtils::Embed resides somewhere below $Config{privlib}.

Torsten Förtsch

--
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.