Mailing List Archive

perl5 inst on an ultrix box prob
From: QBV2::NEWSMGR 1-NOV-1995 16:22:28.90
To: MX%"lwall@netlabs.com"
CC: NEWSMGR
Subj: perl5.001 installation on an ultrix box probs

Trying to install Perl 5.001 on an Ultrix 4.2a machine and had some
problems with c as below. Perhaps u have met them before and could give
me some pointers. Have included the config.sh file along with the errors.
Best regards
Colin
make

%%`sh cflags libperl.a miniperlmain.o` miniperlmain.c
CCCMD = cc -c -DCRIPPLED_CC -Olimit 2900 -g
ccom: Error: ./mg.h, line 12: redeclaration of formal parameter, sv
int (*svt_set) (SV *sv, MAGIC* mg);
------------------------------------------^
ccom: Error: ./mg.h, line 12: redeclaration of formal parameter, mg
int (*svt_set) (SV *sv, MAGIC* mg);
-----------------------------------------------------^
ccom: Error: ./mg.h, line 13: redeclaration of formal parameter, sv
U32 (*svt_len) (SV *sv, MAGIC* mg);
------------------------------------------^
ccom: Error: ./mg.h, line 13: redeclaration of formal parameter, mg
U32 (*svt_len) (SV *sv, MAGIC* mg);
-----------------------------------------------------^
ccom: Error: ./mg.h, line 14: redeclaration of formal parameter, sv
int (*svt_clear) (SV *sv, MAGIC* mg);
------------------------------------------^
ccom: Error: ./mg.h, line 14: redeclaration of formal parameter, mg
int (*svt_clear) (SV *sv, MAGIC* mg);
-----------------------------------------------------^
ccom: Error: ./mg.h, line 15: redeclaration of formal parameter, sv
int (*svt_free) (SV *sv, MAGIC* mg);
------------------------------------------^
ccom: Error: ./mg.h, line 15: redeclaration of formal parameter, mg
int (*svt_free) (SV *sv, MAGIC* mg);
-----------------------------------------------------^
ccom: Error: ./mg.h, line 16: unknown size
};
^
ccom: Error: ./mg.h, line 16: unknown size
};
^
ccom: Error: ./mg.h, line 16: unknown size
};
^
ccom: Error: ./mg.h, line 16: unknown size
};
^
ccom: Error: ./mg.h, line 16: unknown size
};
^
ccom: Error: ./mg.h, line 16: unknown size
};
^
ccom: Error: ./mg.h, line 16: unknown size
};
^
ccom: Error: ./mg.h, line 16: unknown size
};
^
ccom: Error: ./mg.h, line 16: unknown size
};
^
ccom: Error: ./mg.h, line 16: unknown size
};

here is mg.h
/* mg.h
*
* Copyright (c) 1991-1994, Larry Wall
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
*/

struct mgvtbl {
int (*svt_get) _((SV *sv, MAGIC* mg));
int (*svt_set) _((SV *sv, MAGIC* mg));
U32 (*svt_len) _((SV *sv, MAGIC* mg));
int (*svt_clear) _((SV *sv, MAGIC* mg));
int (*svt_free) _((SV *sv, MAGIC* mg));
};

struct magic {
MAGIC* mg_moremagic;
MGVTBL* mg_virtual; /* pointer to magic functions */
U16 mg_private;
char mg_type;
U8 mg_flags;
SV* mg_obj;
char* mg_ptr;
I32 mg_len;
};

#define MGf_TAINTEDDIR 1
#define MGf_REFCOUNTED 2
#define MGf_GSKIP 4

#define MGf_MINMATCH 1

#define MgTAINTEDDIR(mg) (mg->mg_flags & MGf_TAINTEDDIR)
#define MgTAINTEDDIR_on(mg) (mg->mg_flags |= MGf_TAINTEDDIR)


Other errors:

^
ccom: Error: ./perl.h, line 734: syntax error
I32 (*uf_val) (IV, SV*);
------------------------^
ccom: Error: ./perl.h, line 737: zero sized structure
};


There is also a lot of the errors below in math.h

^
ccom: Error: /usr/include/math.h, line 74: illegal storage class, only register
permitted
extern int errno, signgam;
-----^
ccom: Error: /usr/include/math.h, line 133: illegal storage class, only
register



here is the config.sh file

#!/bin/sh
#
# This file was produced by running the Configure script. It holds all the
# definitions figured out by Configure. Should you modify one of these values,
# do not forget to propagate your changes by running "Configure -der". You may
# instead choose to run each of the .SH files by yourself, or "Configure -S".
#

# Configuration time: Wed Nov 1 15:04:31 WET 1995
# Configured by: root
# Target system: ultrix icpu 4.2 0 risc

Author=''
Date='$Date'
Header=''
Id='$Id'
Locker=''
Log='$Log'
Mcc='Mcc'
RCSfile='$RCSfile'
Revision='$Revision'
Source=''
State=''
afs='false'
alignbytes='8'
aphostname=''
archlib='/usr/lib/perl5'
archlibexp='/usr/lib/perl5'
archname='RISC-ultrix'
awk='/bin/awk'
baserev='5.0'
bash=''
bin='/usr/bin'
binexp='/usr/bin'
bison=''
byacc='byacc'
byteorder='1234'
c=''
castflags='0'
cat='/bin/cat'
cc='cc'
cccdlflags=''
ccdlflags=''
ccflags='-DCRIPPLED_CC -Olimit 2900'
cf_by='root'
cf_by='root'
cf_time='Wed Nov 1 15:04:31 WET 1995'
chgrp=''
chmod=''
chown=''
clocktype='clock_t'
comm='/usr/bin/comm'
compress=''
contains='grep'
cp='/bin/cp'
cpio=''
cpp='/usr/lib/cpp'
cpp_stuff='1'
cppflags='-DLANGUAGE_C'
cpplast=''
cppminus=''
cpprun='/usr/lib/cpp'
cppstdin='/usr/news/perl/perl5.001/cppstdin'
cryptlib=''
csh='/bin/csh'
d_Gconvert='gcvt((x),(n),(b))'
d_access='define'
d_alarm='define'
d_archlib='undef'
d_attribut='undef'
d_bcmp='define'
d_bcopy='define'
d_bsd='define'
d_bsdpgrp='define'
d_byacc='undef'
d_bzero='define'
d_casti32='define'
d_castneg='define'
d_charvspr='undef'
d_chown='define'
d_chroot='define'
d_chsize='undef'
d_closedir='define'
d_const='undef'
d_crypt='define'
d_csh='define'
d_cuserid='define'
d_dbl_dig='define'
d_difftime='define'
d_dirnamlen='undef'
d_dirnamlen='undef'
d_dlerror='undef'
d_dlopen='undef'
d_dlsymun='undef'
d_dosuid='undef'
d_drem='define'
d_dup2='define'
d_eunice='undef'
d_fchmod='define'
d_fchown='define'
d_fcntl='define'
d_fd_macros='define'
d_fd_set='define'
d_fds_bits='define'
d_fgetpos='define'
d_flexfnam='define'
d_flock='define'
d_fmod='define'
d_fork='define'
d_fpathconf='define'
d_fsetpos='define'
d_getgrps='define'
d_gethent='define'
d_gethname='undef'
d_getlogin='define'
d_getpgrp2='undef'
d_getpgrp='define'
d_getppid='define'
d_getprior='define'
d_htonl='define'
d_index='undef'
d_isascii='define'
d_killpg='define'
d_link='define'
d_linuxstd='undef'
d_locconv='define'
d_lockf='define'
d_lstat='define'
d_mblen='define'
d_mbstowcs='define'
d_mbtowc='define'
d_memcmp='define'
d_memcpy='define'
d_memmove='define'
d_memset='define'
d_dirnamlen='undef'
d_dlerror='undef'
d_dlopen='undef'
d_dlsymun='undef'
d_dosuid='undef'
d_drem='define'
d_dup2='define'
d_eunice='undef'
d_fchmod='define'
d_fchown='define'
d_fcntl='define'
d_fd_macros='define'
d_fd_set='define'
d_fds_bits='define'
d_fgetpos='define'
d_flexfnam='define'
d_flock='define'
d_fmod='define'
d_fork='define'
d_fpathconf='define'
d_fsetpos='define'
d_getgrps='define'
d_gethent='define'
d_gethname='undef'
d_getlogin='define'
d_getpgrp2='undef'
d_getpgrp='define'
d_getppid='define'
d_getprior='define'
d_htonl='define'
d_index='undef'
d_isascii='define'
d_killpg='define'
d_link='define'
d_linuxstd='undef'
d_locconv='define'
d_lockf='define'
d_lstat='define'
d_mblen='define'
d_mbstowcs='define'
d_mbtowc='define'
d_memcmp='define'
d_memcpy='define'
d_memmove='define'
d_memset='define'
d_setprior='define'
d_setregid='define'
d_setresgid='undef'
d_setresuid='undef'
d_setreuid='define'
d_setrgid='define'
d_setruid='define'
d_setsid='define'
d_shm='define'
d_shmat='define'
d_shmatprototype='define'
d_shmctl='define'
d_shmdt='define'
d_shmget='define'
d_shrplib='undef'
d_socket='define'
d_sockpair='define'
d_statblks='define'
d_stdstdio='define'
d_strchr='define'
d_strcoll='define'
d_strctcpy='define'
d_strerrm='strerror(e)'
d_strerror='define'
d_strxfrm='define'
d_suidsafe='undef'
d_symlink='define'
d_syscall='define'
d_sysconf='define'
d_sysernlst=''
d_syserrlst='define'
d_system='define'
d_tcgetpgrp='define'
d_tcsetpgrp='define'
d_telldir='define'
d_time='define'
d_times='define'
d_truncate='define'
d_tzname='define'
d_umask='define'
d_uname='define'
d_vfork='undef'
d_void_closedir='undef'
d_voidsig='define'
d_voidtty=''
-d_voidtty=''
d_volatile='undef'
d_vprintf='define'
d_wait4='undef'
d_waitpid='define'
d_wcstombs='define'
d_wctomb='define'
d_xenix='undef'
date='/bin/date'
db_hashtype='int'
db_prefixtype='int'
defvoidused='15'
direntrytype='struct dirent'
dlext='none'
dlsrc='dl_none.xs'
dynamic_ext=''
echo='/bin/echo'
egrep='/usr/bin/egrep'
emacs=''
eunicefix=':'
expr='/bin/expr'
extensions='Fcntl NDBM_File ODBM_File POSIX SDBM_File Socket'
find='/usr/bin/find'
flex=''
fpostype='fpos_t'
freetype='void'
full_csh='/bin/csh'
full_sed='/bin/sed'
gcc=''
gccversion=''
gidtype='gid_t'
glibpth='/usr/shlib /lib/pa1.1 /usr/lib/large /lib /usr/lib /usr/lib/386
/lib/3
86 /lib/large /usr/lib/small /lib/small /usr/ccs/lib /usr/ucblib /usr/local/lib
'
grep='/usr/ucb/grep'
groupcat=''
groupstype='int'
h_fcntl='false'
h_sysfile='true'
hint='previous'
hostcat='cat /etc/hosts'
huge=''
i_bsdioctl=''
i_db='undef'
i_dbm='define'
i_dbm='define'
i_dirent='define'
i_dld='undef'
i_dlfcn='undef'
i_fcntl='undef'
i_float='define'
i_gdbm='undef'
i_grp='define'
i_limits='define'
i_malloc='define'
i_math='define'
i_memory='undef'
i_ndbm='define'
i_neterrno='undef'
i_niin='define'
i_pwd='define'
i_sgtty='undef'
i_stdarg='define'
i_stddef='define'
i_stdlib='define'
i_string='define'
i_sysdir='define'
i_sysfile='define'
i_sysfilio='undef'
i_sysin='undef'
i_sysioctl='define'
i_sysndir='undef'
i_sysparam='define'
i_sysselct='undef'
i_syssockio=''
i_sysstat='define'
i_systime='define'
i_systimek='undef'
i_systimes='define'
i_systypes='define'
i_termio='undef'
i_termios='define'
i_time='undef'
i_unistd='define'
i_utime='define'
i_varargs='undef'
i_varhdr='stdarg.h'
i_vfork='undef'
incpath=''
inews=''
installarchlib='/usr/lib/perl5'
installbin='/usr/bin'
installmansrc='/usr/man/man1'
installprivlib='/usr/lib/perl5'
installscript='/usr/bin'
intsize='4'
known_extensions='DB_File Fcntl GDBM_File NDBM_File ODBM_File POSIX SDBM_File
So
cket'
ksh=''
large=''
lddlflags=''
ldflags=''
less=''
libc=''
libpth='/lib /usr/lib'
libs='-ldbm -lm -lc'
libswanted='net socket inet nsl nm ndbm gdbm dbm db dl dld ld sun m c cposix
pos
ix ndir dir crypt ucb bsd BSD PW x'
line='/bin/line'
lint=''
lkflags=''
ln='/bin/ln'
lns='/bin/ln -s'
lp=''
lpr=''
ls='/bin/ls'
lseektype='off_t'
mail=''
mailx=''
make=''
mallocobj='malloc.o'
mallocsrc='malloc.c'
malloctype='void *'
manext='1'
mansrc='/usr/man/man1'
mansrcexp='/usr/man/man1'
medium=''
mips=''
mips_type=''
mkdir='/bin/mkdir'
models='none'
modetype='mode_t'
more=''
mv=''
myarchname='RISC-ultrix'
mydomain=''
myhostname='icpu'
myuname='ultrix icpu 4.2 0 risc '
n='-n'
nm_opt=''
nroff='/usr/bin/nroff'
optimize='-g'
orderlib='false'
osname='ultrix'
osvers='4.2'
package='perl5'
passcat=''
patchlevel='1'
perl='perl'
pg=''
phostname='hostname'
plibpth=''
pmake=''
pr=''
prefix='/usr'
prefixexp='/usr'
privlib='/usr/lib/perl5'
privlibexp='/usr/lib/perl5'
prototype='define'
randbits='31'
ranlib='ar ts'
rm='/bin/rm'
rmail=''
runnm='false'
scriptdir='/usr/bin'
scriptdirexp='/usr/bin'
sed='/bin/sed'
selecttype='fd_set *'
sendmail=''
sh=''
shar=''
sharpbang='#!'
shmattype='char *'
shrpdir='none'
shsharp='true'
sig_name='ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM
TER
M URG STOP TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH LOST USR1
USR
2'
signal_t='void'
sizetype='size_t'
sleep=''
smail=''
small=''
so='so'
sockethdr=''
socketlib=''
sort='/usr/bin/sort'
spackage='Perl5'
spitshell='cat'
split=''
ssizetype='int'
startsh='#!/bin/sh'
static_ext='Fcntl NDBM_File ODBM_File POSIX SDBM_File Socket'
stdchar='char'
strings='/usr/include/string.h'
submit=''
sysman='/usr/man/man1'
tail=''
tar=''
tbl=''
test='/bin/test'
timeincl='/usr/include/sys/time.h '
timetype='time_t'
touch='/usr/bin/touch'
tr='/usr/bin/tr'
troff=''
uidtype='uid_t'
uname='/bin/uname'
uniq='/usr/bin/uniq'
usedl='undef'
usemymalloc='y'
usenm='false'
useposix='true'
usevfork='false'
usrinc='/usr/include'
uuname=''
vi=''
voidflags='15'
xlibpth='/usr/lib/386 /lib/386'
zcat=''
PATCHLEVEL=1
CONFIG=true
Re: perl5 inst on an ultrix box prob [ In reply to ]
On Wed, 1 Nov 1995 Newsmgr@Queens-Belfast.AC.UK wrote:

> Trying to install Perl 5.001 on an Ultrix 4.2a machine and had some

> %%`sh cflags libperl.a miniperlmain.o` miniperlmain.c
> CCCMD = cc -c -DCRIPPLED_CC -Olimit 2900 -g
> ccom: Error: ./mg.h, line 12: redeclaration of formal parameter, sv
> int (*svt_set) (SV *sv, MAGIC* mg);
> ------------------------------------------^

This is a failure of prototypes on Ultrix. Set
prototype=undef
in config.sh and then
sh Configure -S
make depend
make

This is already fixed in patch.1n, and should appear in 5.002.

Andy Dougherty doughera@lafcol.lafayette.edu