[p4perl] Unable to install p4perl on linux amd64

Tony Smith tony at smee.org
Tue Oct 17 04:43:53 PDT 2006


Hi Ankur,

> Thanks for the reply.

No problem.

> 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]

That doesn't seem right. The issue is that the compile command should 
have -Dconst_char='const char', not -Dconst_char='char'. Trouble is, I can't 
see why it's being defined incorrectly.

Could you:

(a) send me the output of this perl command:

	perl -e 'use Config; print $Config{myarchname}, "\n";'

(b) grab the latest current build (3.5704) from the P4Perl page and try again. 
I just submitted a change this morning which might help.

Thanks,

Tony



More information about the p4perl mailing list