[p4perl] I need a winning combo for p4perl

Gallie, Keith Keith.Gallie at amd.com
Wed Jul 25 16:39:32 PDT 2007


 

I need a winning combo on theses releases. I am starting with nothing.
 
I'm trying to get p4perl going. P4-3.5708. I am following the
instructions on 

http://public.perforce.com/guest/tony_smith/perforce/API/Perl/index.html
#download-stable

It just isn't working for me. 

I tried using the p4api-2007.2.122958 from bin.linux26x86_64 and to get
the Makefile.PL to swallow the Version file you have to give it the path
all the way to sample, which it then uses as the include directory.
Bzzzt!

Fine, I adjust the include path and the compile fails.

 Entering directory `/home/kgallie/P4PERL/P4-3.5708/lib'
c++ -c  -I/home/kgallie/P4PERL/p4api-2007.2.122958/include/p4 -Ilib
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fPIC
-fno-strict-aliasing -pipe -Wdeclaration-after
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2
-DVERSION=\"\" -DXS_VERSION=\"\" -fpic
"-I/tool/pandora64/.package/perl-5.8.8/lib/5.8.8/x86_64-li
D_BSD_SOURCE -D_SVID_SOURCE -DP4API_VERSION=513794
-DBUILD_DATE=1185402538 -Dconst_char="const char" perlclientapi.cc
cc1plus: warning: command line option "-Wdeclaration-after-statement" is
valid for C/ObjC but not for C++
perlclientapi.cc: In member function `SV* PerlClientApi::ParseSpec(const
char*, const char*)':
perlclientapi.cc:486: error: no matching function for call to
`Spec::Spec(char*, const char[1])'
/home/kgallie/P4PERL/p4api-2007.2.122958/include/p4/spec.h:149: note:
candidates are: Spec::Spec(const Spec&)
/home/kgallie/P4PERL/p4api-2007.2.122958/include/p4/spec.h:153: note:
Spec::Spec(const char*, const char*, Error*)
/home/kgallie/P4PERL/p4api-2007.2.122958/include/p4/spec.h:152: note:
Spec::Spec()
make[1]: *** [perlclientapi.o] Error 1
make[1]: Leaving directory `/home/kgallie/P4PERL/P4-3.5708/lib'
make: *** [lib/libp4.a] Error 2

There doesn't seem to be a matching method for  Spec s( specDef->Text(),
""). The two latest releases don't seem to work together.

Same with ftp://ftp.perforce.com/perforce/r04.2/bin.linux90x86/pic/

Which releases will work together? I can't figure out the table at the
bottom of the web page.

Where do I find 2004.2/linux80x86 (gcc 3.x compatible)? I ofund
linux90x86 but as mentioned it didn't compile.

Thanks





More information about the p4perl mailing list