You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by jónJósef Bjarnason <jo...@nemendur.is> on 2007/08/21 15:33:37 UTC

mod_perl2 compiling error

When running make for mod_perl 2.0.3 I get an error telling me to use
-fPIC option.
Does anyone know where to put that compiling option  ?

Regards
Jon

Apache 2.2.4
Perl 5.8.8
mod_perl 2.0.3
Ubuntu 6.06 LTS 64bit AMD

when compiling -o mod_perl.so:
`a local symbol' can not be used when making a shared 
object; recompile with -fPIC 

Þessi tölvupóstur og viðhengi gæti innihaldið trúnaðarupplýsingar og/eða
einkamál og ereingöngu ætlaður þeim sem hann er stílaður á. Ef sending
þessi hefur ranglega borist yður vinsamlega gætið fyllsta trúnaðar,
tilkynnið sendanda og eyðileggið sendinguna eins og skylt er skv. 47.
gr. laga nr. 81/2003 um fjarskipti.

The information transmitted, including any attachment, may contain
confidential and/or privileged material and is intended only for the
addressee. If you receive this in error, please keep the information
confidential, contact the sender and delete the material from your
system.

Re: mod_perl2 compiling error

Posted by lists user <pr...@gmail.com>.
I could never install Apache2::Request successfully.
I'm running RH Linux as4,2.6.9 kernel.

2007/8/23, Manoj Bist <ma...@gmail.com>:
> Hi Jon,
>
> Which OS platform are you working on?
>
> On platforms like ubuntu linux you can get precompile packages for all
> these modules.
> You just need to do: sudo apt-get install <package-name>.
>
> An option like this may already be available on your development platform.
>
> -Manoj.
>
> On 8/22/07, jónJósef Bjarnason <jo...@nemendur.is> wrote:
> > Thanks.
> >
> > I had to compile Perl again, then mod_perl2.
> > mod_perl works now, nothing else thoguh,
> > Problems compiling DBI, DBD......etc. (MySql on a different machine)
> >
> > I´m getting there....very slowly.
> > Thank you all for your time and help.
> >
> > Regards
> > Jon
> >
> >
> > Þann 8/22/2007, skrifaði "Manoj Bist" <ma...@gmail.com>:
> >
> > >In general to create a shared object the constituent object files
> > >should be PICable. Look for Makefile(s) which compile the individual
> > >source files.  It would have a variable like 'CFLAGS'. Adding '-fPIC'
> > >to it should take care of it.
> > >
> > >
> > >On 8/21/07, jónJósef Bjarnason <jo...@nemendur.is> wrote:
> > >> When running make for mod_perl 2.0.3 I get an error telling me to use
> > >> -fPIC option.
> > >> Does anyone know where to put that compiling option  ?
> > >>
> > >> Regards
> > >> Jon
> > >>
> > >> Apache 2.2.4
> > >> Perl 5.8.8
> > >> mod_perl 2.0.3
> > >> Ubuntu 6.06 LTS 64bit AMD
> > >>
> > >> when compiling -o mod_perl.so:
> > >> `a local symbol' can not be used when making a shared
> > >> object; recompile with -fPIC
> > >>
> >
>

Re: mod_perl2 compiling error

Posted by Manoj Bist <ma...@gmail.com>.
Hi Jon,

Which OS platform are you working on?

On platforms like ubuntu linux you can get precompile packages for all
these modules.
You just need to do: sudo apt-get install <package-name>.

An option like this may already be available on your development platform.

-Manoj.

On 8/22/07, jónJósef Bjarnason <jo...@nemendur.is> wrote:
> Thanks.
>
> I had to compile Perl again, then mod_perl2.
> mod_perl works now, nothing else thoguh,
> Problems compiling DBI, DBD......etc. (MySql on a different machine)
>
> I´m getting there....very slowly.
> Thank you all for your time and help.
>
> Regards
> Jon
>
>
> Þann 8/22/2007, skrifaði "Manoj Bist" <ma...@gmail.com>:
>
> >In general to create a shared object the constituent object files
> >should be PICable. Look for Makefile(s) which compile the individual
> >source files.  It would have a variable like 'CFLAGS'. Adding '-fPIC'
> >to it should take care of it.
> >
> >
> >On 8/21/07, jónJósef Bjarnason <jo...@nemendur.is> wrote:
> >> When running make for mod_perl 2.0.3 I get an error telling me to use
> >> -fPIC option.
> >> Does anyone know where to put that compiling option  ?
> >>
> >> Regards
> >> Jon
> >>
> >> Apache 2.2.4
> >> Perl 5.8.8
> >> mod_perl 2.0.3
> >> Ubuntu 6.06 LTS 64bit AMD
> >>
> >> when compiling -o mod_perl.so:
> >> `a local symbol' can not be used when making a shared
> >> object; recompile with -fPIC
> >>
>

Re: mod_perl2 compiling error

Posted by jónJósef Bjarnason <jo...@nemendur.is>.
Thanks.

I had to compile Perl again, then mod_perl2.
mod_perl works now, nothing else thoguh, 
Problems compiling DBI, DBD......etc. (MySql on a different machine)

I´m getting there....very slowly.
Thank you all for your time and help.

Regards
Jon


Þann 8/22/2007, skrifaði "Manoj Bist" <ma...@gmail.com>:

>In general to create a shared object the constituent object files
>should be PICable. Look for Makefile(s) which compile the individual
>source files.  It would have a variable like 'CFLAGS'. Adding '-fPIC'
>to it should take care of it.
>
>
>On 8/21/07, jónJósef Bjarnason <jo...@nemendur.is> wrote:
>> When running make for mod_perl 2.0.3 I get an error telling me to use
>> -fPIC option.
>> Does anyone know where to put that compiling option  ?
>>
>> Regards
>> Jon
>>
>> Apache 2.2.4
>> Perl 5.8.8
>> mod_perl 2.0.3
>> Ubuntu 6.06 LTS 64bit AMD
>>
>> when compiling -o mod_perl.so:
>> `a local symbol' can not be used when making a shared
>> object; recompile with -fPIC
>>

Re: mod_perl2 compiling error

Posted by Manoj Bist <ma...@gmail.com>.
In general to create a shared object the constituent object files
should be PICable. Look for Makefile(s) which compile the individual
source files.  It would have a variable like 'CFLAGS'. Adding '-fPIC'
to it should take care of it.


On 8/21/07, jónJósef Bjarnason <jo...@nemendur.is> wrote:
> When running make for mod_perl 2.0.3 I get an error telling me to use
> -fPIC option.
> Does anyone know where to put that compiling option  ?
>
> Regards
> Jon
>
> Apache 2.2.4
> Perl 5.8.8
> mod_perl 2.0.3
> Ubuntu 6.06 LTS 64bit AMD
>
> when compiling -o mod_perl.so:
> `a local symbol' can not be used when making a shared
> object; recompile with -fPIC
>
> Þessi tölvupóstur og viðhengi gæti innihaldið trúnaðarupplýsingar og/eða
> einkamál og ereingöngu ætlaður þeim sem hann er stílaður á. Ef sending
> þessi hefur ranglega borist yður vinsamlega gætið fyllsta trúnaðar,
> tilkynnið sendanda og eyðileggið sendinguna eins og skylt er skv. 47.
> gr. laga nr. 81/2003 um fjarskipti.
>
> The information transmitted, including any attachment, may contain
> confidential and/or privileged material and is intended only for the
> addressee. If you receive this in error, please keep the information
> confidential, contact the sender and delete the material from your
> system.
>