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

Mailing List Archive: ModPerl: ModPerl

compiling on Solaris

 

 

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


megamic at gmail

Aug 18, 2009, 11:13 PM

Post #1 of 2 (557 views)
Permalink
compiling on Solaris

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


jdg117 at elvis

Aug 19, 2009, 4:26 AM

Post #2 of 2 (510 views)
Permalink
Re: compiling on Solaris [In reply to]

In message <00504502f5787b3f3004717889bf [at] google>, megamic [at] gmail 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

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.