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

Mailing List Archive: ModPerl: ModPerl

Errors building mod_perl on 64 bit perl Solaris

 

 

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


kartik.unix at gmail

May 29, 2013, 4:54 PM

Post #1 of 5 (917 views)
Permalink
Errors building mod_perl on 64 bit perl Solaris

Hi,

I am getting the following errors on 2.0.7:

Manifying ../blib/man3/Apache2::Reload.3
modperl_perl.c: In function ‚modperl_hash_seed_set‚:
modperl_perl.c:272:9: error: ‚PL_rehash_seed‚ undeclared (first use in this
function)
modperl_perl.c:272:9: note: each undeclared identifier is reported only
once for each function it appears in
modperl_perl.c:273:9: error: ‚PL_rehash_seed_set‚ undeclared (first use in
this function)
make[1]: *** [modperl_perl.lo] Error 1


and on 2.0.8, I am getting the following error:

symbol PL_check: relocations based on the ABS44 coding model can not be
used in building a shared object


Please assist


jdg117 at elvis

May 29, 2013, 7:09 PM

Post #2 of 5 (868 views)
Permalink
Re: Errors building mod_perl on 64 bit perl Solaris [In reply to]

In message <CAJFC5W0p-skKsgOhit8zf=QvawoXqc=WP8i51_bbE2JxejXX+w [at] mail>
, Kartik Vashishta writes:
>and on 2.0.8, I am getting the following error:
>
>symbol PL_check: relocations based on the ABS44 coding model can not be
>used in building a shared object

mod_perl 2.0.8 builds for me with 64-bit perl 5.18.0 and
apache httpd 2.2.24 under Solaris 10 with Solaris Studio compilers.

How are your Perl and Apache built?

John
groenveld [at] acm


kartik.unix at gmail

May 30, 2013, 2:30 AM

Post #3 of 5 (866 views)
Permalink
Re: Errors building mod_perl on 64 bit perl Solaris [In reply to]

perl was built with the same compiler as mod_perl
./Configure -ders -Dcc=cc -Ud_sigsetjmp -Uinstallusrbinperl -Ulocincpth=
-Uloclibpth= -Duse64bitint -Duse64bitall -Ud_strerror_r -Ud_signbit
-Duselargefiles -Dprefix=/usr/perl6/5.18.0

apache was built from sources.....probably used gcc....not sure...



On Wed, May 29, 2013 at 9:09 PM, John D Groenveld
<jdg117 [at] elvis>wrote:

> In message <CAJFC5W0p-skKsgOhit8zf=QvawoXqc=
> WP8i51_bbE2JxejXX+w [at] mail>
> , Kartik Vashishta writes:
> >and on 2.0.8, I am getting the following error:
> >
> >symbol PL_check: relocations based on the ABS44 coding model can not be
> >used in building a shared object
>
> mod_perl 2.0.8 builds for me with 64-bit perl 5.18.0 and
> apache httpd 2.2.24 under Solaris 10 with Solaris Studio compilers.
>
> How are your Perl and Apache built?
>
> John
> groenveld [at] acm
>


jdg117 at elvis

May 30, 2013, 6:28 AM

Post #4 of 5 (863 views)
Permalink
Re: Errors building mod_perl on 64 bit perl Solaris [In reply to]

In message <CAJFC5W1JAHwV+fYxCkBC0CnhwkwjFWxVct2SjcTT-CS+CN-qeA [at] mail>
, Kartik Vashishta writes:
>perl was built with the same compiler as mod_perl
>./Configure -ders -Dcc=cc -Ud_sigsetjmp -Uinstallusrbinperl -Ulocincpth=
>-Uloclibpth= -Duse64bitint -Duse64bitall -Ud_strerror_r -Ud_signbit
>-Duselargefiles -Dprefix=/usr/perl6/5.18.0

config_args='-Dprefix=/opt/apache2/perl-5.18.0 -Dcc=cc -Duseshrplib -Uusemymalc -Duselargefiles -Ubincompat5005 -Doptimize=-xO3 -Duse64bitall'

>apache was built from sources.....probably used gcc....not sure...

$ cat config.nice
#! /bin/sh
#
# Created by configure

CC="cc"; export CC
CFLAGS="-m64 -xO3"; export CFLAGS
LDFLAGS="-m64"; export LDFLAGS
"./configure" \
"--with-expat=/usr/sfw" \
"--with-ssl=/usr" \
"--enable-ssl" \
"--enable-proxy" \
"--enable-rewrite" \
"--enable-modules=all" \
"--enable-mods-shared=all" \
"--with-included-apr" \
"--prefix=/opt/apache2" \
"CC=cc" \
"CFLAGS=-m64 -xO3" \
"LDFLAGS=-m64" \
"$@"


John
groenveld [at] acm


kartik.unix at gmail

May 31, 2013, 4:00 AM

Post #5 of 5 (868 views)
Permalink
Re: Errors building mod_perl on 64 bit perl Solaris [In reply to]

Summary: Building 64 bit perl, mod_perl 64 bit apache and connecting to 64
bit MySql database on Solaris Sparc

We could successfully build 64 bit apache with the configuration options so
kindly shared by John D. Groenveld, also, in order to build mod_perl on 64
bit perl we had to recompile perl 64 bit, these are the flags we used:
./Configure -ders -Dcc=cc -Ud_sigsetjmp -Uinstallusrbinperl -Ulocincpth=
-Uloclibpth= -Duse64bitint -Duse64bitall -Ud_strerror_r -Ud_signbit
-Duselargefiles -Dprefix=/usr/perl10/5.18.0 -Accflags="-xcode=pic32"

The noteworthy flags in above ./Configure are -Accflags="-xcode=pic32" in
./Configure the "-Accflags=" passes the flags you want to the C compiler,
in our case we wanted the -xcode=x32 flag to be passed to the C
compiler(solaris studio compiler) because of the error message we were
getting:
"symbol PL_check: relocations based on the ABS44 coding model can not be
used in building a shared object"
So to build for "shared object" support, perl 64 bit had to be recompiled
with the -xcode=pic32 flag

Building mod_perl was then seamless, perl Makefile.PL (NOTE: the perl is
teh perl which was built with above arguments.
make, make install.


It is important to use the SAME COMPILER for everything. We are using
Solaris Studio compiler, which, John D. Grovenfeld also used. We needed
DBD::mysql to talk to the MYSql database, now Mysql was installed on
Solaris 10 via pkgadd and is a 64 bit application. Needless to say it is
safe to assume that Oracle built it using the Solaris Studio compiler......

DBD::mysql was built using MCPAN shell.....

Hope this helps someone in the future.......

Thanks to John D. Groenveld, The other resources online, and to my boss...

Regards,

Kartik Vashishta


On Wed, May 29, 2013 at 9:09 PM, John D Groenveld
<jdg117 [at] elvis>wrote:

> In message <CAJFC5W0p-skKsgOhit8zf=QvawoXqc=
> WP8i51_bbE2JxejXX+w [at] mail>
> , Kartik Vashishta writes:
> >and on 2.0.8, I am getting the following error:
> >
> >symbol PL_check: relocations based on the ABS44 coding model can not be
> >used in building a shared object
>
> mod_perl 2.0.8 builds for me with 64-bit perl 5.18.0 and
> apache httpd 2.2.24 under Solaris 10 with Solaris Studio compilers.
>
> How are your Perl and Apache built?
>
> 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.