Theres a link at /usr/local/bin/cc pointing to /usr/local/bin/gcc.
Why doesn't it use the sun compiler when compilinig mod_perl? where does cc point? How come that it has picked gcc?
Compiler: cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
mod_perl simply tries to use the same compiler perl was compiled with, so if perl reports cc and it's not the same compiler it was compiled with it's the problem of your installation.
So, that explains the issue. Purhaps perl needs to start embedding a full path to the compiler to avoid this kind of problem.
I think this can and should be fixed on the Makefile.PL level, w/o having any special-case documentation for solaris9 users :) Just help us to figure out what went wrong...
The problem I've had with solaris over the years is that theres a fake cc living in /usr/ucb. Any time you run it (unless you buy the sun compiler, I assume) you get an error like "language optional software package not installed". And some software that we have had to compile just wants "cc" instead of "gcc". Instead of hacking up makefiles and such, we just make the link to let those programs compile. Many solaris admins don't have access to the sun compiler, and use the same trickery to get thier packages to compile.
So what happened is that while the makefile was being built, it saw the sun-compiled perl and got the information above (compiler, etc.) During make the cc command was called, but was a link to gcc. The gcc compiler didn't like the -KPIC flag that the sun-compiled perl was built with and choked. This problem will probably pop up on any solaris 9 system with the default perl left installed (5.6.1) and 'cc' linked to 'gcc'.
Understood, Marc.
So all we need to add in the 2.0 docs is that a reminder that mod_perl, must be compiled with the same compiler perl was compiled with. This applies to any platform, and not specific to solaris 9. We have this in the mod_perl 1.0 docs, for this exact reason.
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html