You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by John D Groenveld <jd...@elvis.arl.psu.edu> on 2004/09/24 22:42:58 UTC

Re: Solaris 9 x86 compile (SunFire v40z)

In message <6....@mail.kwinternet.com>, Eric writes
:
>Which sounds like the answer to my problem except I don't know how to 
>correctly make these changes so that gcc flags are used instead of Solaris 
>compiler flags. I am guessing that mod_perl is being a little too smart for 

As root,
# rm /usr/bin/perl

As eric,
$ cd /tmp/perl-5.8.5
$ env PATH=/usr/bin:/usr/ccs/bin:/opt/sfw/bin ./Configure \
-Dprefix=/opt/perl-5.8.5 -Dcc=gcc -Duseshrplib -Uusemymalloc \
-Duselargefiles  -Ubincompat5005 -des
$ env PATH=/usr/bin:/usr/ccs/bin:/opt/sfw/bin make test

When building modperl, remember to be explicit about invoking the
correct Perl.
$ /opt/perl-5.8.5/bin/perl Makefile.PL USE_APXS=1 \
WITH_APXS=/opt/apache/bin/apxs EVERYTHING=1 PERL_TRACE=1

Happy hacking,
John
groenveld@acm.org


-- 
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


Re: Solaris 9 x86 compile (SunFire v40z)

Posted by Eric <ef...@kwinternet.com>.
Hi,

I just realized I have no idea what you just told me because of that 
Configure in the command line.

I did find this in the INSTALL which makes some sense:

On most systems, both Perl and Apache+mod_perl must be built using the
same compiler.  Sometimes Perl's configuration will choose one
compiler, e.g. I<cc>, but Apache's configuration chooses a different
one, e.g. I<gcc>.  If you run into this problem, consult Perl's and
Apache's INSTALL documents on how to ensure both are built with the
same compiler.


So if my default 5.6.1 perl was built with Sun's compiler that could be why 
I am having problems?
If that is true then I am not sure the perl package will help if it also is 
compiled with Sun's cc.


Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
   Platform:
     osname=solaris, osvers=2.9, archname=i86pc-solaris-64int
     uname='sunos localhost 5.9 i86pc i386 i86pc'
     config_args=''
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
     useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=define use64bitall=undef uselongdouble=undef
   Compiler:
     cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
     optimize='-xO3 -xdepend',
     cppflags=''
     ccversion='Sun WorkShop', gccversion='', gccosandvers=''
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
     ivtype='long long', ivsize=8, nvtype='double', nvsize=8, 
Off_t='off_t', lseeksize=8
     alignbytes=4, usemymalloc=n, prototype=define
   Linker and Libraries:
     ld='cc', ldflags =''
     libpth=/lib /usr/lib /usr/ccs/lib
     libs=-lsocket -lnsl -ldl -lm -lc
     perllibs=-lsocket -lnsl -ldl -lm -lc
     libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R 
/usr/perl5/5.6.1/lib/i86pc-solaris-64int/CORE'
     cccdlflags='-KPIC', lddlflags='-G'


Characteristics of this binary (from libperl):
   Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
   Locally applied patches:
      9676 Port the OpenBSD glob() security patch
      9678 Addendum to #9676: some missing changes from OpenBSD glob.c
      9679 Up $File::Glob::VERSION, add OpenBSD glob version note
      9693 $VERSION and Version() on same line provokes CPAN.pm warning
      9706 #7210 broke .packlist generation
      9707 ExtUtils::Installed doesn't quote regex metacharacters in paths
      9775 Typo in utf8.h
      9950 Revert integration of #8254,#8255 in #8620 (causes coredump)
     10021 Insecure regexes
     10091 $ref1 == $ref2 behaves unpredictably if not NV_PRESERVES_UV
     10093 Incorrect line numbers in AutoSplit
     10100 [20010514.027] PL_last_in_gv may not be GV if stale filehandle
     10145 [20010515.004] Segfaults from premature GC
     10203 Don't think about UTF8
     10250 [20010422.005] perl -e '{s//${}/; //}' segfaults
     10394 Leakage of file scope lexicals into predeclared subroutines
     10404 eval.t was relying on pre-#10394 buggy behavior
     10412 Rationalize locale handling to fix bugs uncovered by #10394
     10422 Potential buffer overrun if the radix separator > 1 byte
     10448 Lexicals outside eval weren't resolved correctly pre-#10394
     10450 Optimize #10448 slightly
     10543 Add LC_MESSAGES constant to POSIX module
     10667 #10449 broke visibility of lexicals inside DB::DB()
     10739 C<eval "/x$\r\n/x"> fails to compile correctly
     10939 Proposed fix for Pod::Man
     11169 Doc patch for Tie::Hash
     11374 Make h2ph grok ccsymbols fo the form 1234L, 1234ULL etc
     11427 t/harness wasn't picking up all the tests
     11428 run/runenv.t needs fflushNULL sanity
     11431 pod/*.t tests not picked up by t/TEST either
     11510 eval 'format foo=' would loop indefinitely
     11713 UTF8 wasn't printing for PVMGs
     11716 UTF8 flag should be meaningful only when POK
     11808 [20010831.002] Bug in Term::Cap on Solaris ansi terminal
     11847 Typo in perl_clone() code causes local(*foo) breakage
     12005 [20010912.007] substr reference core dump
     12024 Fix local() precedence bug in #8311
     12303 Fix 'local $!=0;undef*STDOUT;' segfault
     12304 Pod::Html makes a poor guess at author
     12350 Typo in IO::Seekable doc
     12496 Carp::shortmess_heavy() doesn't notice trailing newline
     12549 readline() doesn't work with 'our' variables
     12550 #12549 wasn't aware of strictures
     12752 croak(Nullch) wasn't printing the contents of ERRSV
     12811 [20011101.069] \stat('.') gives 'free unref scalar' error
     12812 Slight modification of #12811
     13149 Integrate #13147 from mainline (fixes nit in #10091)
     13261 Integrate #8340,#13260 from mainline
   Built under solaris
   Compiled at Nov  4 2002 01:56:55
   @INC:
     /usr/perl5/5.6.1/lib/i86pc-solaris-64int
     /usr/perl5/5.6.1/lib
     /usr/perl5/site_perl/5.6.1/i86pc-solaris-64int
     /usr/perl5/site_perl/5.6.1
     /usr/perl5/site_perl
     /usr/perl5/vendor_perl/5.6.1/i86pc-solaris-64int
     /usr/perl5/vendor_perl/5.6.1
     /usr/perl5/vendor_perl



Thanks,

Eric


At 01:42 PM 9/24/2004, John D Groenveld wrote:
>In message <6....@mail.kwinternet.com>, Eric 
>writes
>:
> >Which sounds like the answer to my problem except I don't know how to
> >correctly make these changes so that gcc flags are used instead of Solaris
> >compiler flags. I am guessing that mod_perl is being a little too smart for
>
>As root,
># rm /usr/bin/perl
>
>As eric,
>$ cd /tmp/perl-5.8.5
>$ env PATH=/usr/bin:/usr/ccs/bin:/opt/sfw/bin ./Configure \
>-Dprefix=/opt/perl-5.8.5 -Dcc=gcc -Duseshrplib -Uusemymalloc \
>-Duselargefiles  -Ubincompat5005 -des
>$ env PATH=/usr/bin:/usr/ccs/bin:/opt/sfw/bin make test
>
>When building modperl, remember to be explicit about invoking the
>correct Perl.
>$ /opt/perl-5.8.5/bin/perl Makefile.PL USE_APXS=1 \
>WITH_APXS=/opt/apache/bin/apxs EVERYTHING=1 PERL_TRACE=1
>
>Happy hacking,
>John
>groenveld@acm.org
>
>
>--
>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


Lead Programmer
D.M. Contact Management
250.383.8267 ext 229 


-- 
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


Re: Solaris 9 x86 compile (SunFire v40z)

Posted by Eric <ef...@kwinternet.com>.
At 01:42 PM 9/24/2004, John D Groenveld wrote:
>In message <6....@mail.kwinternet.com>, Eric 
>writes
>:
> >Which sounds like the answer to my problem except I don't know how to
> >correctly make these changes so that gcc flags are used instead of Solaris
> >compiler flags. I am guessing that mod_perl is being a little too smart for
>
>As root,
># rm /usr/bin/perl
>
>As eric,
>$ cd /tmp/perl-5.8.5
>$ env PATH=/usr/bin:/usr/ccs/bin:/opt/sfw/bin ./Configure \
>-Dprefix=/opt/perl-5.8.5 -Dcc=gcc -Duseshrplib -Uusemymalloc \
>-Duselargefiles  -Ubincompat5005 -des
>$ env PATH=/usr/bin:/usr/ccs/bin:/opt/sfw/bin make test
>
>When building modperl, remember to be explicit about invoking the
>correct Perl.
>$ /opt/perl-5.8.5/bin/perl Makefile.PL USE_APXS=1 \
>WITH_APXS=/opt/apache/bin/apxs EVERYTHING=1 PERL_TRACE=1
>
>Happy hacking,
>John
>groenveld@acm.org


Thanks for your reply. Are you saying I should really get the Perl 5.8.5 
package? I thought I would be ok using the installed 5.6.1 version. I will 
try it this way, but first with 5.6.1

Thanks again,

Eric





>--
>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


Lead Programmer
D.M. Contact Management
250.383.8267 ext 229 


-- 
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


Re: Solaris 9 x86 compile (SunFire v40z)

Posted by Eric <ef...@kwinternet.com>.
Hi,

It took a while for this to sink into my weak little brain, but I did 
almost exactly as you said and life is good! I ended up putting the new 
Perl in /opt and linking /usr/local/bin/perl to it.

I read some stuff that scared me away from trying to replace the existing 
5.6.1 perl.

Thanks for your help,

Eric

At 01:42 PM 9/24/2004, John D Groenveld wrote:
>In message <6....@mail.kwinternet.com>, Eric 
>writes
>:
> >Which sounds like the answer to my problem except I don't know how to
> >correctly make these changes so that gcc flags are used instead of Solaris
> >compiler flags. I am guessing that mod_perl is being a little too smart for
>
>As root,
># rm /usr/bin/perl
>
>As eric,
>$ cd /tmp/perl-5.8.5
>$ env PATH=/usr/bin:/usr/ccs/bin:/opt/sfw/bin ./Configure \
>-Dprefix=/opt/perl-5.8.5 -Dcc=gcc -Duseshrplib -Uusemymalloc \
>-Duselargefiles  -Ubincompat5005 -des
>$ env PATH=/usr/bin:/usr/ccs/bin:/opt/sfw/bin make test
>
>When building modperl, remember to be explicit about invoking the
>correct Perl.
>$ /opt/perl-5.8.5/bin/perl Makefile.PL USE_APXS=1 \
>WITH_APXS=/opt/apache/bin/apxs EVERYTHING=1 PERL_TRACE=1
>
>Happy hacking,
>John
>groenveld@acm.org
>
>
>--
>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


-- 
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