[p4perl] Unable to install p4perl on linux amd64

Ankur Gupta ankur2080 at gmail.com
Wed Oct 11 08:31:23 PDT 2006


Hi,

I am *able* to install P4 on linux x86 and solaris sparc machines :-).

But I need to install the same on other platforms such as linux
amd64/em64t and solaris amd machines(maybe more).

I am unsuccessful so far to get it working on linux amd64.

Following is the uname -a o/p of a linux amd64 machine.
Linux vgamd126 2.4.21-32.ELsmp #1 SMP Fri Apr 15 21:03:28 EDT 2005
x86_64 x86_64 x86_64 GNU/Linux

I tried r05.2/bin.linux26amd64, r04.2/bin.linux26amd64 and
r03.2/bin.linux26amd64..
All gave the following error....
(I don't understand what the error means, can someone give me some
pointers on how to correct them.. am I using the correct api... Please
let me know if you need more information)

Writing Makefile for P4::lib
Writing Makefile for P4
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 && /usr/bin/make
make[1]: Entering directory `/remote/vtghome6/ankurg/.cpan/build/P4-3.5313/lib'
c++ -c  -I/remote/vtghome6/ankurg/P4-3.5692/api/05.2 -Ilib
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include
/gdbm -O2   -DVERSION=\"\" -DXS_VERSION=\"\" -fpic
"-I/depot/perl-5.8.0/lib/5.8.4/x86_64-linux/CORE"  -DOS_LINUX
-Dconst_char='char' -D_BSD_SOURCE -D_SVID_SOU
RCE -DP4API_VERSION=513282 p4result.cc
c++ -c  -I/remote/vtghome6/ankurg/P4-3.5692/api/05.2 -Ilib
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include
/gdbm -O2   -DVERSION=\"\" -DXS_VERSION=\"\" -fpic
"-I/depot/perl-5.8.0/lib/5.8.4/x86_64-linux/CORE"  -DOS_LINUX
-Dconst_char='char' -D_BSD_SOURCE -D_SVID_SOU
RCE -DP4API_VERSION=513282 perlclientapi.cc
c++ -c  -I/remote/vtghome6/ankurg/P4-3.5692/api/05.2 -Ilib
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include
/gdbm -O2   -DVERSION=\"\" -DXS_VERSION=\"\" -fpic
"-I/depot/perl-5.8.0/lib/5.8.4/x86_64-linux/CORE"  -DOS_LINUX
-Dconst_char='char' -D_BSD_SOURCE -D_SVID_SOU
RCE -DP4API_VERSION=513282 perlclientuser.cc
ar cr libp4.a p4result.o perlclientapi.o perlclientuser.o
make[1]: Leaving directory `/remote/vtghome6/ankurg/.cpan/build/P4-3.5313/lib'
make[1]: Entering directory `/remote/vtghome6/ankurg/.cpan/build/P4-3.5313/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/remote/vtghome6/ankurg/.cpan/build/P4-3.5313/lib'
/linux/depot/perl-5.8.0/bin/perl
/depot/perl-5.8.0/lib/5.8.4/ExtUtils/xsubpp  -C++ -prototypes -typemap
/depot/perl-5.8.0/lib/5.8.4/ExtUtils/typemap  P4.xs >
P4.xsc && mv P4.xsc P4.c
c++ -c  -I/remote/vtghome6/ankurg/P4-3.5692/api/05.2 -Ilib
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include
/gdbm -O2   -DVERSION=\"3.5313\" -DXS_VERSION=\"3.5313\" -fpic
"-I/depot/perl-5.8.0/lib/5.8.4/x86_64-linux/CORE"  -DOS_LINUX
-Dconst_char='char' -D_BSD_SOURCE
 -D_SVID_SOURCE -DP4API_VERSION=513282 P4.c
P4.xs: In function `void XS_P4_new(CV*)':
P4.xs:121: warning: cast from pointer to integer of different size
Running Mkbootstrap for P4 ()
chmod 644 P4.bs
rm -f blib/arch/auto/P4/P4.so
LD_RUN_PATH="" c++  -shared -L/usr/local/lib P4.o  -o
blib/arch/auto/P4/P4.so lib/libp4.a
-L/remote/vtghome6/ankurg/P4-3.5692/api/05.2 -lclient -lrpc -lsupp
/usr/bin/ld: /remote/vtghome6/ankurg/P4-3.5692/api/05.2/libclient.a(clientapi.o):
relocation R_X86_64_32S can not be used when making a shared object;
recompi
le with -fPIC
/remote/vtghome6/ankurg/P4-3.5692/api/05.2/libclient.a: could not read
symbols: Bad value
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/P4/P4.so] Error 1
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

Following is the perl -V o/p
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
  Platform:
    osname=linux, osvers=2.4.21-4.el, archname=x86_64-linux
    uname='linux littleboy2.synopsys.com 2.4.21-4.el #1 fri oct 3
17:39:19 edt 2003 x86_64 x86_64 x86_64 gnulinux '
    config_args='-Dprefix=/depot/perl-5.8.0
-Dscriptdir=/depot/perl-5.8.0/scripts -Dextras=Mail::Mailer Tk -des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='3.2.3 20030502 (Red Hat Linux
3.2.3-20)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES
  Built under linux
  Compiled at May  6 2004 17:36:04
  @INC:
    /depot/perl-5.8.0/lib/5.8.4/x86_64-linux
    /depot/perl-5.8.0/lib/5.8.4
    /depot/perl-5.8.0/lib/site_perl/5.8.4/x86_64-linux
    /depot/perl-5.8.0/lib/site_perl/5.8.4
    /depot/perl-5.8.0/lib/site_perl
   .

Thanks for your help :-)

--Ankur



More information about the p4perl mailing list