Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Error during compile of 5.8.1-RC2

Reply
Thread Tools

Error during compile of 5.8.1-RC2

 
 
Eric Kidder
Guest
Posts: n/a
 
      07-14-2003
I tried to send this as an email to , 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to compile the following source code in VC6// I have error inVC++6 but compile ok in GCC fAnSKyer C++ 2 06-07-2009 07:57 AM
Warning during generating classes through WSIMPORT & Error during xmlvalidation traveller Java 0 01-08-2008 07:00 AM
cant compile on linux system.cant compile on cant compile onlinux system. Nagaraj C++ 1 03-01-2007 11:18 AM
Error during Compile NickyNick Java 1 07-07-2006 06:49 PM
"Out of Memory" error during Borland C++ 5.02 compile schears@hotpop.com C Programming 10 03-10-2005 02:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57