[EMAIL PROTECTED] wrote:
1. Problem Description:
I cannot compile mod_perl for Apache2. There seem to be two issues with the Configure.PL/make-process. Configure runs through without an error but with a warning that header files have been found in an unexpected directory (see warning message below) although I have supplied the MP_AP_PREFIX specifying the correct path (see 2.) ):

/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: 
/opt/perl/lib/5.10.0/x86_64-linux/CORE/libperl.a(gv.o): relocation R_X86_64_32 
against `a local symbol' can not be used when making a shared object; recompile 
with -fPIC

You need to use a perl binary that has been compiled with -fPIC (there is a current thread on the list regarding this issue). I have compiled 5.8.8 with -fPIC and was able to build mod_perl successfully repeatedly on x86_64. The exact commands aren't in my shell history any more, but all of the generated Makefiles have

CCFLAGS = -fPIC

in them. I'll try to build later this week and post the exact process I used back to the list.

/opt/perl/lib/5.10.0/x86_64-linux/CORE/libperl.a: could not read symbols: Bad 
value
collect2: ld returned 1 exit status
make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory `/opt/mod_perl-2.0.4/src/modules/perl'
make: *** [modperl_lib] Error 2

------------- /MAKE TRACE ----------

As you can see, I have used Perl 5.10.0, but the error is the same when using 
Perl 5.8.8

What is also very confusing: the COnfigure.PL program is unable to find the 
httpd binary. Again, I have specified MP_AP_PREFIX.


Thak you very much in advance!
2. Used Components and their Configuration:

*** mod_perl version 2.000004

*** using /opt/mod_perl-2.0.4/lib/Apache2/BuildConfig.pm

*** Makefile.PL options:
  MP_APR_LIB     => aprext
  MP_AP_PREFIX   => /usr/local/apache2
  MP_COMPAT_1X   => 0
  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/apache2/lib -laprutil-0 -lexpat
 -L/usr/local/apache2/lib -lapr-0 -lrt -lm -lcrypt -lnsl  -lpthread -ldl



*** /opt/perl/bin/perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.6.16.54-0.2.5-smp, archname=x86_64-linux
    uname='linux ccintrav1 2.6.16.54-0.2.5-smp #1 smp mon jan 21 13:29:51 utc 
2008 x86_64 x86_64 x86_64 gnulinux '
    config_args='-ds -e -Dprefix=/opt/perl'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='4.1.0 (SUSE Linux)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.4.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.4'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_64_BIT_ALL
                        USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
  Built under linux
  Compiled at Aug 26 2008 19:53:03
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /opt/perl/lib/5.10.0/x86_64-linux
    /opt/perl/lib/5.10.0
    /opt/perl/lib/site_perl/5.10.0/x86_64-linux
    /opt/perl/lib/site_perl/5.10.0
    .

*** Packages of interest status:

Apache2            : -
Apache2::Request   : -
CGI                : 3.29
ExtUtils::MakeMaker: 6.42
LWP                : -
mod_perl           : -
mod_perl2          : -


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

  [CORE TRACE COMES HERE]

This report was generated by ./REPORT on Wed Aug 27 07:42:38 2008 GMT.
---------------------------------------------------
Johannes Ebner
Junior System Engineer
Computacenter AG & Co oHG für FZ-442
Programmentwicklung NAS-SoD Betrieb
Tel: 089/45712-989
 Mobile: 0172/8462335
 mailto: [EMAIL PROTECTED]
---------------------------------------------------



--
Red Hot Penguin Consulting LLC
mod_perl/PostgreSQL consulting and implementation
http://www.redhotpenguin.com/

Reply via email to