Re: [mp2] modperl2 compile error

[prev] [thread] [next] [Date index for 2005/05/05]

From: Marc =?ISO-8859-1?Q?Gr=E0cia?=
Subject: Re: [mp2] modperl2 compile error
Date: 10:26 on 05 May 2005
--=-A4Rpm2KfXqCLEXsIXsJv
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

El dc 04 de 05 del 2005 a les 10:09 -0500, en/na Tom Caldwell va
escriure:

> I have to concur with Marc - that there was no -fPIC and the 
> necessary libraries were missing as well on my x86_64 red hat box. 
> This seems to be happening with all the builds - perl, mod_perl, 
> and probably apache too.

Ok,
If Perl is configured OK, mod_perl gets the args from Perl and
everytning goes well, the same on all normal Makefile.PL building
modules. 
But you must take care that the rests of things you had to use are
compiled also with -fPIC.
All RedHat or Fedora default builds seems to have been compiled that
way, so no problems for default libs.

>  (I haven't had a chance to get back to 
> rebuilding apache as last suggested.) Different from Marc, I have 
> been working as root, but still experiencing the same problems.
> 
> The other thing I noticed was that a random directory (from the src 
> tree) was added to the CCDLFLAGS when I added  '-rdynamic -W1' 
> during configure (as per the rpm version of perl). I had to remove 
> this manually from the Makefile.
> 
> Tom
> 
> --On Wednesday, May 04, 2005 12:09 PM +0200 Marc Gràcia 
> <mgracia@xxxxxxxxx.xxx> wrote:
> 
> > El dl 02 de 05 del 2005 a les 10:05 -0700, en/na Stas Bekman va
> > escriure:
> >
> >
> >
> > Marc Gràcia wrote:
> >> I had some problems like this on my new x86_64 machine with
> >> mod_perl2, seems that not only perl must be compiled with -fPIC
> >> , also apache and all libraries or modules you plan to use. I
> >> think it's a general issue with this architecture, not mod_perl
> >> related.
> >
> > That's correct, Marc.
> >
> >> If not, there are runtime linking relocation errors everywhere..
> >> (I also had to recompile with -fPIC db and libz, for example)
> >> Maybe that's the problem...
> >
> > I supposed that Tom has recompiled everything after rebuilding
> > perl.
> > mod_perl will pick up -fPIC automatically at compile time, if
> > perl was
> > compiled with it.
> >
> >
> > Yes that's Ok for all perl modules.
> > But BTW, my Perl Compilation did not put automaticaly the -fPIC
> > flag when configuring and also didn't detect the needed libraries
> > (The line when Config script lets you add additional libraries
> > was empty except for the ones i compiled for myself, see below).
> > I had to put all that manually (After a lot of recompilations
> > trying to find what was happening)
> >
> > I was using a closed environment in a user with no root
> > permissions. All dependencies except most basic ones
> > (libc,lpthreads,etc..) are compiled and self contained in the
> > user's home (I'm doing a untar-and-forget instalation for our
> > product).
> > The same procedure went OK on all other kind of machines... so
> > maybe perl Config has some problem with x86_64.
> > The base system was a Fedora Core 3 EM64T version with no 32bits
> > compatibility packages installed.
> > But everything is running OK after all, only the Configure script
> > failed..
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Marc Gràcia <mgracia@xxxxxxxxx.xxx>
> 
> 
> 
> 
> Tom Caldwell
> Vanderbilt University Medical Center
> 
> 

--=-A4Rpm2KfXqCLEXsIXsJv
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.2.4">
</HEAD>
<BODY>
El dc 04 de 05 del 2005 a les 10:09 -0500, en/na Tom Caldwell va escriure:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">I have to concur with Marc - that there was no -fPIC and the </FONT>
<FONT COLOR="#000000">necessary libraries were missing as well on my x86_64 red hat box. </FONT>
<FONT COLOR="#000000">This seems to be happening with all the builds - perl, mod_perl, </FONT>
<FONT COLOR="#000000">and probably apache too.</FONT>
</PRE>
</BLOCKQUOTE>
Ok,<BR>
If Perl is configured OK, mod_perl gets the args from Perl and everytning goes well, the same on all normal Makefile.PL building modules. <BR>
But you must take care that the rests of things you had to use are compiled also with -fPIC.<BR>
All RedHat or Fedora default builds seems to have been compiled that way, so no problems for default libs.
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000"> (I haven't had a chance to get back to </FONT>
<FONT COLOR="#000000">rebuilding apache as last suggested.) Different from Marc, I have </FONT>
<FONT COLOR="#000000">been working as root, but still experiencing the same problems.</FONT>

<FONT COLOR="#000000">The other thing I noticed was that a random directory (from the src </FONT>
<FONT COLOR="#000000">tree) was added to the CCDLFLAGS when I added  '-rdynamic -W1' </FONT>
<FONT COLOR="#000000">during configure (as per the rpm version of perl). I had to remove </FONT>
<FONT COLOR="#000000">this manually from the Makefile.</FONT>

<FONT COLOR="#000000">Tom</FONT>

<FONT COLOR="#000000">--On Wednesday, May 04, 2005 12:09 PM +0200 Marc Gr&#224;cia </FONT>
<FONT COLOR="#000000">&lt;<A HREF="mailto:mgracia@xxxxxxxxx.xxx">mgracia@xxxxxxxxx.xxx</A>&gt; wrote:</FONT>

<FONT COLOR="#000000">&gt; El dl 02 de 05 del 2005 a les 10:05 -0700, en/na Stas Bekman va</FONT>
<FONT COLOR="#000000">&gt; escriure:</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; Marc Gr&#224;cia wrote:</FONT>
<FONT COLOR="#000000">&gt;&gt; I had some problems like this on my new x86_64 machine with</FONT>
<FONT COLOR="#000000">&gt;&gt; mod_perl2, seems that not only perl must be compiled with -fPIC</FONT>
<FONT COLOR="#000000">&gt;&gt; , also apache and all libraries or modules you plan to use. I</FONT>
<FONT COLOR="#000000">&gt;&gt; think it's a general issue with this architecture, not mod_perl</FONT>
<FONT COLOR="#000000">&gt;&gt; related.</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; That's correct, Marc.</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;&gt; If not, there are runtime linking relocation errors everywhere..</FONT>
<FONT COLOR="#000000">&gt;&gt; (I also had to recompile with -fPIC db and libz, for example)</FONT>
<FONT COLOR="#000000">&gt;&gt; Maybe that's the problem...</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; I supposed that Tom has recompiled everything after rebuilding</FONT>
<FONT COLOR="#000000">&gt; perl.</FONT>
<FONT COLOR="#000000">&gt; mod_perl will pick up -fPIC automatically at compile time, if</FONT>
<FONT COLOR="#000000">&gt; perl was</FONT>
<FONT COLOR="#000000">&gt; compiled with it.</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; Yes that's Ok for all perl modules.</FONT>
<FONT COLOR="#000000">&gt; But BTW, my Perl Compilation did not put automaticaly the -fPIC</FONT>
<FONT COLOR="#000000">&gt; flag when configuring and also didn't detect the needed libraries</FONT>
<FONT COLOR="#000000">&gt; (The line when Config script lets you add additional libraries</FONT>
<FONT COLOR="#000000">&gt; was empty except for the ones i compiled for myself, see below).</FONT>
<FONT COLOR="#000000">&gt; I had to put all that manually (After a lot of recompilations</FONT>
<FONT COLOR="#000000">&gt; trying to find what was happening)</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; I was using a closed environment in a user with no root</FONT>
<FONT COLOR="#000000">&gt; permissions. All dependencies except most basic ones</FONT>
<FONT COLOR="#000000">&gt; (libc,lpthreads,etc..) are compiled and self contained in the</FONT>
<FONT COLOR="#000000">&gt; user's home (I'm doing a untar-and-forget instalation for our</FONT>
<FONT COLOR="#000000">&gt; product).</FONT>
<FONT COLOR="#000000">&gt; The same procedure went OK on all other kind of machines... so</FONT>
<FONT COLOR="#000000">&gt; maybe perl Config has some problem with x86_64.</FONT>
<FONT COLOR="#000000">&gt; The base system was a Fedora Core 3 EM64T version with no 32bits</FONT>
<FONT COLOR="#000000">&gt; compatibility packages installed.</FONT>
<FONT COLOR="#000000">&gt; But everything is running OK after all, only the Configure script</FONT>
<FONT COLOR="#000000">&gt; failed..</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; --</FONT>
<FONT COLOR="#000000">&gt; Marc Gr&#224;cia &lt;<A HREF="mailto:mgracia@xxxxxxxxx.xxx">mgracia@xxxxxxxxx.xxx</A>&gt;</FONT>;




<FONT COLOR="#000000">Tom Caldwell</FONT>
<FONT COLOR="#000000">Vanderbilt University Medical Center</FONT>


</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-A4Rpm2KfXqCLEXsIXsJv--

(message missing)

[mp2] modperl2 compile error
Tom Caldwell 16:35 on 27 Apr 2005

Re: [mp2] modperl2 compile error
Stas Bekman 16:41 on 27 Apr 2005

Re: [mp2] modperl2 compile error
Stas Bekman 16:36 on 28 Apr 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 19:46 on 28 Apr 2005

Re: [mp2] modperl2 compile error
Stas Bekman 20:55 on 28 Apr 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 18:54 on 29 Apr 2005

Re: [mp2] modperl2 compile error
Stas Bekman 06:25 on 30 Apr 2005

Re: [mp2] modperl2 compile error
Marc =?ISO-8859-1?Q?Gr=E0cia?= 07:53 on 02 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 17:05 on 02 May 2005

Re: [mp2] modperl2 compile error
Marc =?ISO-8859-1?Q?Gr=E0cia?= 10:09 on 04 May 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 15:09 on 04 May 2005

Re: [mp2] modperl2 compile error
Marc =?ISO-8859-1?Q?Gr=E0cia?= 10:26 on 05 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 05:23 on 06 May 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 20:03 on 09 May 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 22:24 on 02 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 06:40 on 03 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 05:51 on 03 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 20:46 on 09 May 2005

Generated at 06:56 on 17 May 2005 by mariachi v0.52