Operating System - HP-UX
1833759 Members
2424 Online
110063 Solutions
New Discussion

Perl 5.6.1 Make Failure - Inconsistent type declaration: "getuid"

 
RON FLOLID
Occasional Contributor

Perl 5.6.1 Make Failure - Inconsistent type declaration: "getuid"

I'm trying to build Perl 5.6.1 but I'm failing on the make step with the following error: "inconsistnet type declaration: "getuid". I get the same for the geteuid. I'm compiling with additional cc flag of -D_POSIX_C_COURCE=199506L.

I'm trying to build on 10.2 with threads. I'm using the thread library supplied in the Core DCE libs and have appropriate patches applied. If someone has successfully installed 5.6.1 on 10.2, could they perhaps simply past a "perl -V" into this note or suggest what I might being doing wrong.

As always, thanks a million....
2 REPLIES 2
Gram Ludlow
Frequent Advisor

Re: Perl 5.6.1 Make Failure - Inconsistent type declaration: "getuid"

I'm not sure if it is an option to you, but I've found it many times easier to install perl usuing gcc to compile it.

You can download bintuils and gcc in depot format here:
http://hpux.connect.org.uk/

And even Perl, but I'm not sure if it's threading perl.

If you must compile with cc, then I'm sorry I can't help!
Turning and turning in the widening gyre,
H.Merijn Brand (procura
Honored Contributor

Re: Perl 5.6.1 Make Failure - Inconsistent type declaration: "getuid"

Beware, I'm usring /pro as prefix, not /usr or /opt. Change accordingly.

d3:/u/usr/merijn 102 > perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=hpux, osvers=10.20, archname=PA-RISC2.0
uname='hp-ux k1 b.10.20 u 9000800 90308302 unlimited-user license '
config_args='-des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='cc', ccflags =' -DDEBUGGING +DAportable -Ae -D_HPUX_SOURCE -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ',
optimize='+O2 +Onolimit',
cppflags='-DDEBUGGING +DAportable -Ae -D_HPUX_SOURCE -I/pro/local/include'
ccversion='A.10.32.30', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='ld', ldflags ='-L/pro/local/lib'
libpth=/pro/local/lib /lib /usr/lib /usr/ccs/lib /usr/local/lib
libs=-lnsl_s -lndbm -lgdbm -ldb -ldld -lm -lc -lndir -lcrypt -lsec
perllibs=-lnsl_s -ldld -lm -lc -lndir -lcrypt -lsec
libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred '
cccdlflags='+z', lddlflags='-b +vnocompatwarnings -L/pro/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING USE_LARGE_FILES
Built under hpux
Compiled at May 30 2001 12:23:47
@INC:
/pro/lib/perl5/5.6.1/PA-RISC2.0
/pro/lib/perl5/5.6.1
/pro/lib/perl5/site_perl/5.6.1/PA-RISC2.0
/pro/lib/perl5/site_perl/5.6.1
/pro/lib/perl5/site_perl
.
d3:/u/usr/merijn 103 >


Need anything else? A Policy.sh maybe? A revised hints/hpux.sh?
Enjoy, Have FUN! H.Merijn