List Info

Thread: installation meltdown on RHEL AS4.1




installation meltdown on RHEL AS4.1
user name
2006-09-22 02:56:41
Hi!

I've been fighting with this all day, please excuse any frustration that might filter through
I've been trying to build P4, and am being continually thwarted when i run make.

perforce version is R06.1 , so i'm attempting to compile the p4api from bin.linux26x86/
i have gcc3, and i have perl 5.8.5

since gcc2 seems to cause everyone else's problems here's a gcc-v:

[rootvulcan P4-3.5313]# gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.1)

here's what the compiler spits out when i run make (after perl Makefile.PL)

[rootvulcan P4-3.5313]# make
cd lib && make
make[1]: Entering directory `/root/P4-3.5313/lib'
c++ -c  -I/root/p4api -Ilib -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m32 -march=i386 -mtune=pentium4   -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/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: error: conflicting return type specified for `virtual void PerlClientUser::OutputText(char*, int)'
/root/p4api/clientuser.h:160: error:   overriding `virtual int ClientUser::OutputText(char*, int)'
perlclientuser.h:51: error: conflicting return type specified for `virtual void PerlClientUser::OutputInfo(char, char*)'
/root/p4api/clientuser.h:156: error:   overriding `virtual int ClientUser::OutputInfo(char, char*)'
perlclientuser.h:53: error: conflicting return type specified for `virtual void PerlClientUser::OutputBinary(char*, int)'
/root/p4api/clientuser.h:158: error:   overriding `virtual int ClientUser::OutputBinary(char*, int)'
make[1]: *** [perlclientapi.o] Error 1
make[1]: Leaving directory `/root/P4-3.5313/lib'
make: *** [lib/libp4.a] Error 2



here's some other stuff about the system in question:

[rootvulcan P4-3.5313 ]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 1)

[rootvulcan P4-3.5313]# uname -a
Linux vulcan 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005 i686 i686 i386 GNU/Linux

Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
  Platform:
  ;  osname=linux, osvers=2.4.21-25.elsmp, archname=i386-linux-thread-multi
    uname='linux porky.build.redhat.com 2.4.21-25.elsmp #1 smp fri nov 12 21:34:51 est 2004 i686 i686 i386 gnulinux '
    config_args='-des -Doptimize=-O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Dversion=5.8.5 -Dmyhostname=localhost -Dperladmin= rootlocalhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Dinc_version_list= 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
 ;   use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
  ;  cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2 -g -pipe -m32 -march=i386 -mtune=pentium4',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm'
  ;  ccversion='', gccversion=' 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)', gccosandvers=''
 ;   intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
   ; d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
   ; ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
 ;   perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
   ; libc=/lib/libc-2.3.4.so, so=so, useshrplib=true, libperl= libperl.so
    gnulibc_version='2.3.4'
  Dynamic Linking:
  ;  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Feb  1 2005 09:38:11
  INC:
 ;   /usr/lib/perl5/5.8.5/i386-linux-thread-multi
    /usr/lib/perl5/5.8.5
  ;  /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.5
    /usr/lib/perl5/site_perl/5.8.4
    /usr/lib/perl5/site_perl/5.8.3
  ;  /usr/lib/perl5/site_perl/5.8.2
    /usr/lib/perl5/site_perl/5.8.1
    /usr/lib/perl5/site_perl/5.8.0
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.5
    /usr/lib/perl5/vendor_perl/5.8.4
    /usr/lib/perl5/vendor_perl/5.8.3
    /usr/lib/perl5/vendor_perl/5.8.2
    /usr/lib/perl5/vendor_perl/5.8.1
    /usr/lib/perl5/vendor_perl/5.8.0
    /usr/lib/perl5/vendor_perl


--
---
neko wa kowai
installation meltdown on RHEL AS4.1
user name
2006-09-26 14:06:12
Hi Wil,

> I've been fighting with this all day, please excuse any
frustration that
> might filter through 
> I've been trying to build P4, and am being continually
thwarted when i run
> make.
>
> perforce version is R06.1 , so i'm attempting to
compile the p4api from
> bin.linux26x86/
> i have gcc3, and i have perl 5.8.5
>
> since gcc2 seems to cause everyone else's problems
here's a gcc-v:
>
> [rootvulcan P4-3.5313]# gcc -v
> Reading specs from
/usr/lib/gcc/i386-redhat-linux/3.4.3/specs
> Configured with: ../configure --prefix=/usr
--mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared
--enable-threads=posix
> --disable-checking --with-system-zlib
--enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-java-awt=gtk
> --host=i386-redhat-linux
> Thread model: posix
> gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.1)
>
> here's what the compiler spits out when i run make
(after perl Makefile.PL)
>
> [rootvulcan P4-3.5313]# make
> cd lib && make
> make[1]: Entering directory `/root/P4-3.5313/lib'
> c++ -c  -I/root/p4api -Ilib -D_REENTRANT -D_GNU_SOURCE
-DDEBUGGING
> -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe
-m32 -march=i386
> -mtune=pentium4   -DVERSION=""
-DXS_VERSION="" -fPIC
>
"-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE&qu
ot;  -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: error: conflicting return type
specified for `virtual
> void PerlClientUser::OutputText(char*, int)'
> /root/p4api/clientuser.h:160: error:   overriding
`virtual int
> ClientUser::OutputText(char*, int)'
> perlclientuser.h:51: error: conflicting return type
specified for `virtual
> void PerlClientUser::OutputInfo(char, char*)'
> /root/p4api/clientuser.h:156: error:   overriding
`virtual int
> ClientUser::OutputInfo(char, char*)'
> perlclientuser.h:53: error: conflicting return type
specified for `virtual
> void PerlClientUser::OutputBinary(char*, int)'
> /root/p4api/clientuser.h:158: error:   overriding
`virtual int
> ClientUser::OutputBinary(char*, int)'
> make[1]: *** [perlclientapi.o] Error 1
> make[1]: Leaving directory `/root/P4-3.5313/lib'
> make: *** [lib/libp4.a] Error 2

Thanks for all the detail - that really helps!

I think this may be a bug, P4Perl needs to be updated to
support the 2006.1 
API which did away with the horrible const_char stuff we had
in older APIs.

Could you try with the 2005.2 API and see if that works (you
can still use it 
to talk to a 2006.1 server)? I'll take a look at what needs
to change in the 
code.

Thanks,

Tony
_______________________________________________
p4perl mailing list
p4perlperforce.com

http://maillist.perforce.com/mailman/listinfo/p4perl
[1-2]

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