Hi monks,

I want to be able to use Perl 5.10.0 on both Linux and Solaris boxes, and have successfully built it on both - however, I wish to be able to use it relocatable, and the Solaris binary does not seem to work as expected. The Linux binary searches for library paths (../lib) from the binary install dir, however the Solaris binary just searches from the current path.

To build perl on each box I used:
./Configure -de -Dprefix=/home/user/perl -Dcc=gcc -Duserelocatableinc make make install

I've checked the binaries, and both refer to library paths using '.../../lib', so in theory they both should be fully relocatable, so my question is this: Does any one know of any problems with building a properly relocatable perl on Solaris?

Below I've posted the perl -V from both binaries (for what it's worth). There ARE differences in the boxes environments, and I'm hoping that I've been a muppet and just not included a required library in the Solaris build.

Linux (relocates from binary install path - as expected):
Summary of my perl5 (revision 5 version 10 subversion 0) configuration +: Platform: osname=linux, osvers=2.6.9-22.0.1.elsmp, archname=x86_64-linux uname='linux linbox.domain.com 2.6.9-22.0.1.elsmp #1 smp tue oct 1 +8 18:39:02 edt 2005 x86_64 x86_64 x86_64 gnulinux ' config_args='-de -Dprefix=/home/user/perl -Duserelocatableinc -Dcc +=gcc' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und +ef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/includ +e -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='3.2.3 20030502 (Red Hat Linux 3.2.3-47.3 +)', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +6 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64 /usr/local/l +ib64 libs=-lnsl -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.3.4.so, so=so, useshrplib=false, libperl=libperl. +a gnulibc_version='2.3.4' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_64_ +BIT_ALL USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO Built under linux Compiled at Apr 25 2008 16:38:21 @INC: /home/user/perl/lib/5.10.0/x86_64-linux /home/user/perl/lib/5.10.0 /home/user/perl/lib/site_perl/5.10.0/x86_64-linux /home/user/perl/lib/site_perl/5.10.0 .

Solaris (relocates from ./):
Summary of my perl5 (revision 5 version 10 subversion 0) configuration +: Platform: osname=solaris, osvers=2.8, archname=sun4-solaris uname='sunos solbox.domain.com 5.8 generic_117350-43 sun4u sparc s +unw,sun-fire-480r ' config_args='-de -Dprefix=/home/user/perl -Dcc=gcc -Duserelocatabl +einc' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und +ef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE + -D_FILE_OFFSET_BITS=64', optimize='-O', cppflags='-fno-strict-aliasing -pipe' ccversion='', gccversion='3.3.2', gccosandvers='solaris2.8' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +6 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib ' libpth=/usr/local/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=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO Built under solaris Compiled at May 15 2008 13:00:27 @INC: ./../lib/5.10.0/sun4-solaris ./../lib/5.10.0 ./../lib/site_perl/5.10.0/sun4-solaris ./../lib/site_perl/5.10.0 .

Thanks,
CK.

In reply to Relocatable Perl 5.10.0 on Solaris by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.