List Info

Thread: Compile problems with cygwin on WinXP




Compile problems with cygwin on WinXP
user name
2007-06-05 07:58:49
Hello all,

I9;m trying to compile the P4Perl module with cygwin on windows XP.
I have P4 version 3.5708 and have tried a number of the cygwin P4 APIs ranging from r03.2 up to the latest r07.2 without any luck.

I have gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125).
The command perl -e 'use Config; print $Config{myarchname}, "n"; returns i686-cygwin.
And this is the output I get when I run make using the 3.2 release of the API:

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 `/cygdrive/c/P4Perl/P4- 3.5708/lib'
g++ -c  -I/cygdrive/c/P4Perl/P4-3.5708/p4api-32 -Ilib -DPERL_USE_SAFE_PUTENV -fn
o-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O3   -DVERSION="";
 -DXS_VERSION=""  "-I/usr/lib/perl5/5.8/cygwin/CORE";  -DOS_CYGWIN -DP4API_VERS
ION=512770 -DBUILD_DATE=1181048090 -Dconst_char="const char" p4result.cc
g++ -c  -I/cygdrive/c/P4Perl/P4-3.5708/p4api-32 -Ilib -DPERL_USE_SAFE_PUTENV -fn
o-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O3   -DVERSION="";
 -DXS_VERSION=""  "-I/usr/lib/perl5/5.8/cygwin/CORE";  -DOS_CYGWIN -DP4API_VERS
ION=512770 -DBUILD_DATE=1181048090 -Dconst_char="const char" perlclientapi.cc
g++ -c  -I/cygdrive/c/P4Perl/P4- 3.5708/p4api-32 -Ilib -DPERL_USE_SAFE_PUTENV -fn
o-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O3   -DVERSION="";
 -DXS_VERSION=""  "-I/usr/lib/perl5/5.8/cygwin/CORE";  -DOS_CYGWIN -DP4API_VERS
ION=512770 -DBUILD_DATE=1181048090 -Dconst_char="const char" perlclientuser.cc
ar cr libp4.a p4result.o perlclientapi.o perlclientuser.o
make[1]: Leaving directory `/cygdrive/c/P4Perl/P4-3.5708/lib'
make[1]: Entering directory `/cygdrive/c/P4Perl/P4-3.5708/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/cygdrive/c/P4Perl/P4-3.5708/lib'
/usr/bin/perl.exe /usr/lib/perl5/5.8/ExtUtils/xsubpp  -C++ -prototypes -typemap
/usr/lib/perl5/5.8/ExtUtils/typemap  P4.xs > P4.xsc && mv P4.xsc P4.c
g++ -c  -I/cygdrive/c/P4Perl/P4-3.5708/p4api-32 -Ilib -x c++ -DUSEIMPORTLIB -O3
  -DVERSION="3.5708" -DXS_VERSION=" 3.5708";  "-I/usr/lib/perl5/5.8/cygwin/COR
E"  -DOS_CYGWIN -DP4API_VERSION=512770 -DBUILD_DATE=1181048090 -Dconst_char="con
st char" P4.c
Running Mkbootstrap for P4 ()
chmod 644 P4.bs
rm -f blib/arch/auto/P4/P4.dll
LD_RUN_PATH="" g++  -shared P4.o  -o blib/arch/auto/P4/P4.dll lib/libp4.a /usr/l
ib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/cygdrive/c/P4Perl/P4-3.5708/p4api-32 -
lclient -lrpc -lsupp
lib/libp4.a(perlclientuser.o):perlclientuser.cc:(.rdata$_ZTV14PerlClientUser[vta
ble for PerlClientUser]+0x1c): undefined reference to `ClientUser::OutputError(c
har const*)9;
lib/libp4.a( perlclientuser.o):perlclientuser.cc:(.rdata$_ZTV14PerlClientUser[vta
ble for PerlClientUser]+0x48): undefined reference to `ClientUser::Help(char con
st* const*)9;
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/P4/P4.dll] Error 1



Thanks for your help,
tony
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )