[p4perl] Issue Compiling P4Perl on Solaris8

Tony Smith tony@smee.org
Thu, 2 Dec 2004 15:23:04 +0000


Hi Seef,

This looks like there's something wrong with your gcc setup. Can you 
compile/link any C++ programs on this box? The missing file, libstdc++.so.5, 
should have been installed when you installed gcc3.

Tony

On Thursday 02 December 2004 06:29, Seef Venter (ZA) wrote:
> Goodday,
>
> In attempting to compile the P4 perl module on our solaris system an ld
> error occurs, if anybody can assist in resolving this it would be
> appreciated.
>
> Output for $>make
> /usr/local/lib/perl5/5.8.0/sun4-solaris/auto/List/Util/Util.so,
> List::Util->dl_load_flags
> cp P4.pm blib/lib/P4.pm
> AutoSplitting blib/lib/P4.pm (blib/lib/auto/P4)
> cp example.pl blib/lib/example.pl
> cd lib && make
> make[1]: Entering directory `/net/delta/2/seef/temp/P4-3.4608/lib'
> c++ -c  -I/net/delta/2/seef/temp/p4api -Ilib -fno-strict-aliasing
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"\"
> -DXS_VERSION=\"\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE"
> -Dsolaris -DOS_SOLARIS28 -Dconst_char='const char'
> -DP4API_VERSION=513026 p4result.cc
> c++ -c  -I/net/delta/2/seef/temp/p4api -Ilib -fno-strict-aliasing
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"\"
> -DXS_VERSION=\"\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE"
> -Dsolaris -DOS_SOLARIS28 -Dconst_char='const char'
> -DP4API_VERSION=513026 perlclientapi.cc
> c++ -c  -I/net/delta/2/seef/temp/p4api -Ilib -fno-strict-aliasing
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"\"
> -DXS_VERSION=\"\" -fPIC "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE"
> -Dsolaris -DOS_SOLARIS28 -Dconst_char='const char'
> -DP4API_VERSION=513026 perlclientuser.cc
> ar cr libp4.a p4result.o perlclientapi.o perlclientuser.o
> make[1]: Leaving directory `/net/delta/2/seef/temp/P4-3.4608/lib'
> make[1]: Entering directory `/net/delta/2/seef/temp/P4-3.4608/lib'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/net/delta/2/seef/temp/P4-3.4608/lib'
> /usr/local/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp  -C++
> -prototypes -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap  P4.xs
>
> > P4.xsc && mv P4.xsc P4.c
>
> c++ -c  -I/net/delta/2/seef/temp/p4api -Ilib -fno-strict-aliasing
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   -DVERSION=\"3.4608\"
> -DXS_VERSION=\"3.4608\" -fPIC
> "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE"  -Dsolaris
> -DOS_SOLARIS28 -Dconst_char='const char' -DP4API_VERSION=513026 P4.c
> Running Mkbootstrap for P4 ()
> chmod 644 P4.bs
> rm -f blib/arch/auto/P4/P4.so
> LD_RUN_PATH="/net/delta/2/seef/temp/p4api:/usr/lib" c++  -G
> -L/usr/local/lib P4.o  -o blib/arch/auto/P4/P4.so lib/libp4.a
> -L/net/delta/2/seef/temp/p4api -lclient -lrpc -lsupp -lsocket
> chmod 755 blib/arch/auto/P4/P4.so
> cp P4.bs blib/arch/auto/P4/P4.bs
> chmod 644 blib/arch/auto/P4/P4.bs
> Manifying blib/man3/P4.3
>
> Output for $>make test
> make[1]: Entering directory `/net/delta/2/seef/temp/P4-3.4608/lib'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/net/delta/2/seef/temp/P4-3.4608/lib'
> PERL_DL_NONLAZY=1 /usr/local/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
> 1..6
> Can't load 'blib/arch/auto/P4/P4.so' for module P4: ld.so.1:
> /usr/local/bin/perl: fatal: libstdc++.so.5: open failed: No such file or
> directory at /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line
> 229.
>  at test.pl line 34
>  Compilation failed in require at test.pl line 34.
>  BEGIN failed--compilation aborted at test.pl line 34.
>  not ok 1
>  make: *** [test_dynamic] Error 255
>
> Some additional information
> $>gcc -v
> Reading specs from
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/specs
> Configured with: ../configure --with-as=/usr/ccs/bin/as
> --with-ld=/usr/ccs/bin/ld --disable-nls
> Thread model: posix
> gcc version 3.3.2
>
> $>uname -a
> SunOS ibd-build 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Fire-280R
> Solaris
>
> I am using the following 2004.2 P4 api : bin.solaris8sparc
>
> Regards
> Seef Venter
>
>
> This email and all contents are subject to the following disclaimer:
>
> "http://www.didata.com/disclaimer.asp"
>
>
> _______________________________________________
> p4perl mailing list
> p4perl@perforce.com
> http://maillist.perforce.com/mailman/listinfo/p4perl
>
> !DSPAM:41aeb60052562688613027!