[p4perl] Unable to install p4perl on linux amd64

Ankur Gupta ankur2080 at gmail.com
Mon Oct 16 11:25:41 PDT 2006


On 10/16/06, Tony Smith <tony at perforce.com> wrote:
> Hi Ankur,

Hi Tony,

Thanks for the reply.

> > 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.
> >
>
> > I tried r05.2/bin.linux26amd64, r04.2/bin.linux26amd64 and
> > r03.2/bin.linux26amd64..
>
> You need a PIC build of the API for that platform:
>
> ftp://ftp.perforce.com/perforce/r06.1/bin.linux26x86_64/pic/p4api.tar
>
> That should do the trick.

I tried this api but I am getting a different error now.

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/r06.1 -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.3/lib/5.8.3/x86_64-linux/CORE"  -DOS_LINUX
-Dconst_char='char' -D_BSD_SOURCE -D_SVID_SOURCE
-DP4API_VERSION=513537 p4result.cc
c++ -c  -I/remote/vtghome6/ankurg/P4-3.5692/api/r06.1 -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.3/lib/5.8.3/x86_64-linux/CORE"  -DOS_LINUX
-Dconst_char='char' -D_BSD_SOURCE -D_SVID_SOURCE
-DP4API_VERSION=513537 perlclientapi.cc
In file included from perlclientapi.cc:56:
perlclientuser.h:50: conflicting return type specified for `virtual void
   PerlClientUser::OutputText(char*, int)'
/remote/vtghome6/ankurg/P4-3.5692/api/r06.1/clientuser.h:160:   overriding `
   virtual int ClientUser::OutputText(char*, int)'
perlclientuser.h:51: conflicting return type specified for `virtual void
   PerlClientUser::OutputInfo(char, char*)'
/remote/vtghome6/ankurg/P4-3.5692/api/r06.1/clientuser.h:156:   overriding `
   virtual int ClientUser::OutputInfo(char, char*)'
perlclientuser.h:53: conflicting return type specified for `virtual void
   PerlClientUser::OutputBinary(char*, int)'
/remote/vtghome6/ankurg/P4-3.5692/api/r06.1/clientuser.h:158:   overriding `
   virtual int ClientUser::OutputBinary(char*, int)'
make[1]: *** [perlclientapi.o] Error 1
make[1]: Leaving directory `/remote/vtghome6/ankurg/.cpan/build/P4-3.5313/lib'
make: *** [lib/libp4.a] Error 2
  /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
Failed during this command:
  SMEE/P4-3.5313.tar.gz                        : make NO

--Ankur



More information about the p4perl mailing list