Error during compile of 5.8.1-RC2

E

Eric Kidder

I tried to send this as an email to (e-mail address removed), but it kept bouncing.
This is a compile-time error, so I can't use perlbug to report it.

My configuration is as follows:
Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
Platform:
osname=hpux, osvers=11.00, archname=PA-RISC2.0
uname='hp-ux xxxx b.11.00 e 9000800 22704576 8-user license '
config_args='-Dcc=gcc'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-fPIC -D_HPUX_SOURCE -mpa-risc-2-0
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O',
cppflags='-D_HPUX_SOURCE -fPIC -D_HPUX_SOURCE -mpa-risc-2-0
-fno-strict-aliasing'
ccversion='', gccversion='3.2', gccosandvers='hpux11.00'
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, prototype=define
Linker and Libraries:
ld='/usr/bin/ld', ldflags ='-L/home/cpcusers/ek9635/lib -L/appl/cpc/lib
-L/usr/local/lib'
libpth=/home/cpcusers/ek9635/lib /appl/cpc/lib /usr/local/lib /lib
/usr/lib /usr/ccs/lib
libs=-lcl -lpthread -lnsl -lnm -lndbm -lgdbm -ldb -lmalloc -ldld -lm
-lcrypt -lsec -lc
perllibs=-lcl -lpthread -lnsl -lnm -lmalloc -ldld -lm -lcrypt -lsec -lc
libc=/lib/libc.sl, so=sl, useshrplib=true, libperl=libperl.sl
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-B,deferred '
cccdlflags='-fPIC', lddlflags='-b -L/home/cpcusers/ek9635/lib
-L/appl/cpc/lib -L/usr/local/lib'

I am receiving the following error when compiling pp_sys.c:
`sh cflags "optimize='-O'" pp_sys.o` -fPIC pp_sys.c
CCCMD = gcc -DPERL_CORE -c -fPIC -D_HPUX_SOURCE -mpa-risc-2-0
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -Wall
In file included from /usr/include/shadow.h:9,
from pp_sys.c:36:
/usr/include/prot.h:600: conflicting types for `Perl_get_seed'
proto.h:817: previous declaration of `Perl_get_seed'
make: *** [pp_sys.o] Error 1

This is because this #define from embed.h:
#define get_seed Perl_get_seed

is conflicting with this function prototype from /usr/include/prot.h:
extern int get_seed __((struct pr_passwd *));

When pp_sys.c is run through the pre-processor, it is turning all of the
get_seed()s into Perl_get_seed()s, resulting in the following: (excerpted
from gcc -E)
UV Perl_get_seed(void); <-- from perl
....
extern int Perl_get_seed (struct pr_passwd *); <-- from /usr/include/prot.h
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top