compiling on Solaris

--00504502f5787b3f1d04717889bc
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit

Hi

I am trying to compile modperl2 on Solaris. I am using Perl5.10.0, and
because the Solaris compiler seems to have difficulties compiling
Perl5.10.0 extensions, I want to compile modperl2 using gcc. I am trying to
configure with this command:
perl Makefile.PL MP_APXS=/usr/apache2/bin/apxs CC=gcc CCFLAGS='-fPIC -O2'
gmake CC=gcc

However it still uses the Sun compiler when building. How can I ensure gcc
is used to compile modperl2?

Cheers

--00504502f5787b3f1d04717889bc
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi

I am trying to compile modperl2 on Solaris. I am using Perl5.=
10.0, and because the Solaris compiler seems to have difficulties compiling=
Perl5.10.0 extensions, I want to compile modperl2 using gcc. I am trying t=
o configure with this command:
perl Makefile.PL MP_APXS=3D/usr/apache2=
/bin/apxs CC=3Dgcc CCFLAGS=3D'-fPIC -O2'
gmake CC=3Dgcc
<=
br />However it still uses the Sun compiler when building. How can I ensure=
gcc is used to compile modperl2?

Cheers
--00504502f5787b3f1d04717889bc--
megamic [ Mi, 19 August 2009 08:13 ] [ ID #2012674 ]

Re: compiling on Solaris

In message <00504502f5787b3f3004717889bf [at] google.com>, megamic [at] gmail.com writes:
>I am trying to compile modperl2 on Solaris. I am using Perl5.10.0, and
>because the Solaris compiler seems to have difficulties compiling
>Perl5.10.0 extensions, I want to compile modperl2 using gcc. I am trying to

Which extensions?
I run RT with a SunStudio compiled Perl. RT has many CPAN dependencies.

>configure with this command:
>perl Makefile.PL MP_APXS=/usr/apache2/bin/apxs CC=gcc CCFLAGS='-fPIC -O2'
>gmake CC=gcc
>
>However it still uses the Sun compiler when building. How can I ensure gcc
>is used to compile modperl2?

Make certain your custom built perl and Apache apxs are ahead of Sun's
in your path.

Your Apache should be built with the same compiler options as your
Perl.
modperl will segfault if 32-bit Perl and Apache don't similarly have
support for largefiles.

Happy hacking!
John
groenveld [at] acm.org
John D Groenveld [ Mi, 19 August 2009 13:26 ] [ ID #2012675 ]
Webserver » gmane.comp.apache.mod-perl » compiling on Solaris

Vorheriges Thema: Running scripts as OS user other than apache/nobody
Nächstes Thema: Debugging seg faults in Apache mod_perl