Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.85k stars 523 forks source link

Installation problem #1275

Closed p5pRT closed 20 years ago

p5pRT commented 24 years ago

Migrated from rt.perl.org#2271 (status was 'resolved')

Searchable as RT2271$

p5pRT commented 24 years ago

From wilyum@erols.com

I am trying to install perl5.005_03 on an Amdahl platform running the Amdahl UTS Version 4.3.3 operating system.

I have been running the Sh Configure manually down to the place where I can enter "uts" and then take the default options thereafter. During the Configure phase I get a warning when the try.c is run and I get another warning msg that LFT_MAX has been redefined\, neither of which seems like it should cause me any problems. In what follows my OCR conversion has some errors but I think you will be able to see the kinds of errors I am getting.

When I run the "make"\, I get the following results​:

Script started on Mon Mar 6 20​:26​:34 2000 make sh cflags libperl.so.503 miniperlmain.o' -KPIC miniperlmain.c CCCMD = cc -DPERL-CORE -c -DCRIPPLED-CC -0

"sv.h"\, line 35​: warning​: Structure/union redeclaration 35 struct sv {

A

"sv.h"\, line 35​: warning​: Redefinition of symbol​: sv miniperlmain.c ... 2 Warnings. Ash cflags libperl.so.503 perl.ol -KPIC perl.c CCCMD = cc -DPERL-CORE -c -DCRIPPLED-CC -0

"sv.hll\, line 35​: warning​: Structure/union redeclaration 35 struct sv {

A

"sv.hll\, line 35​: warning​: Redefinition of symbol​: sv "Perl.cll\, line 151​: (in macro) Invalid structure member​: sv-flags 151 if (!SvREADONLY(&PL-sv-undef)) A(in macro) "perl.c"\, line 155​: (in macro) Invalid structure member​: sv-flags   155 SVREADONLY - on(&PL-sv-undef);   A (in macro)   "perl.cll\, line 155​: (in macro) Illegal left hand side of assignment​: SVF-READONLY   "perl.c"\, line 156​: (in macro) Invalid structure member​: sv refcnt

156 SvREFCNT(&PL-sv-undef) = (-(U32)0)/2; ^(in macro) "perl.c"\, line 156​: Illegal left hand side of assignment​: U32 "perl.c"\, line 160​: (in macro) Invalid structure member​: sv-flags 160 SVREADONLY - on(&PL-sv-no); ^(in macro) "perl.cll\, line 160​: (in macro) Illegal left hand side of assignment​: SVF-READONLY "perl.cll\, line 161​: (in macro) Invalid structure member​: sv-refcnt 161 SVREFCNT(&PL sv no) = (-(U32)0)/2; A (in macro) "perl.c"\, line 161​: Illegal left hand side of assignment​: U32 Ilp!erl.c"\, line 165​: (in macro) Invalid structure member​: sv-flags 165 SVREADONLY - on(&PL-sv_yes); A(in macro) "perl.c"\, line 165​: (in macro) Illegal left hand side of assignment​: SVF-READONLY "perl.c"\, line 166​: (in macro) Invalid structure member​: sv-refcnt 166 SvREFCNT(&PL-sv-yes) = (-(U32)0)/2;   A (in macro) Maximum number of fatal errors (12) exceeded. *** Error code 2 (bu2l)

make​: fatal error. # exit script done on Mon Mar 6 20​:26​:45 2000

I was able to narrow that down to the include statement for netinet/in.h in the perl.h file. When I comment out that INET include statement and run the "make" again\, I get the following error​:

'sh cflags libperl.so.503 perl.o' -KPIC perl.c CCCMD = cc -DPERL CORE -c -DCRIPPLED-CC -0 Regions​: perl@​arse divided into 3 regions. 'sh cflags libperl.so.503 malloc.o' -KPIC malloc.c CCCMD = cc -DPERL CORE -c -DCRIPPLED CC -0 sh cflags libperl.so.503 gv.o' -KPIC gv.c CCCMD = cc -DPERL CORE -c -DCRIPPLED CC -0 Regions​: Perl gv fetehpv divided into 2 regions. Regions​: Perl-amagic_call divided into 2 regions. 'sh cflags libperl.so.503 toke.o' -KPIC toke.c CCCMD = cc -DPERL - CORE -c -DCRIPPLED-CC -0 as​: /tmp/ptmlO944.ph​: 17788​: Invalid constant in expression context *** Error code 9 (bu2l)

make​: fatal error. # exit script done on Mon Mar 6 20​:35​:12 2000

Thus it appears that the redeclaration is coming from the in.h file. When I run myconfig\, I get the following​:

Script started on Mon Mar 6 21​:04​:16 2000 # ./myconfig Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration​: Platform​: osname=svr4\, osvers=\, archname=Millennium-svr4 uname='hostname hostname svr4 4.3.3 700 millennium hint=recommended\, useposix=true\, d sigaction=define usethreads=undef useperlio=undef d-sfio=undef Compiler​: cc='cc'\, optimize='-O'\, gccversion= cppflags='-DCRIPPLED CC' ccflags ='-DCRIPPLED CC' stdchar='unsigned char'\, d stdstdio=define\, usevfork=false intsize=4\, longsize=4\, ptrsize=4\, doublesize=8 d_longlong=define\, longlongsize=8\, d - longdbl=define\, longdblsize=16 alignbytes=8\, usemymalloc=y\, prototype=define Linker and Libraries​: ld='cc'\, ldflags =' -L/usr/ccs/lib -L/usr/ucblib' libpth=/shlib /lib /usr/lib /usr/ccs/lib /U3r/ucblib libs=-lsocket -lnsl -ldbm -ldl -lld -lm -lc -lcrypt -lucb -lPW -lx libc=/shlib/libc.so.1\, so=so\, useshrplib=true\, libperl=libperl.so.503 Dynamic Linking​: dlsrc=dl - dlopen.xs\, dlext=so\, d dlsymun=undef\, ccdlflags=' cccdlflags='-KPIC'\, lddlflags='@​G -L/usr/ccs/lib -L/usr/ucblib'

exit

script done on Mon Mar 6 21​:04​:39 2000

I suspect that perhaps Amdahl has not updated some of the include files to current definitions which is leading to my errors but I do not know what I should try to modify.

I would appreciate any explanation you can provide for the errors I am getting and any suggestions you can make on what to try.

Thanks for your help.

Bill Marsland

p5pRT commented 24 years ago

From [Unknown Contact. See original ticket]

I was able to track down the other definition of struct sv in the file

/usr/include/sys/ksynch.h

In the file I found the following​:

typedef struct sv {   sleep_t sv_slpg; /* the event sleep queue */ #if define(DEBUG)   uint_t sv_magic; /* magic number identifying this structure */ #endif /* defined(DEBUG) */ #if defined (_MPSTATS) || defined(_LOCKTEST) || defined(_MPLOG)   lkinfo_t *sv_lkinfop; /* user supplied lock info structure */ #if defined (_MPSTATS)   svstat_t *sv_lkstatp; #endif /*defined (_MPSTATS) */ #endif /* defined(_MPSTATS || defined(_LOCKTEST || defined(_MPLOG) */ } sv_t;

When I changed the name of the above to struct sv99 and ran the "make" again\, the redeclaration msg disappeared (but of course there were other errors because of that change).

Is Amdahl out of step with the rest of the world in their ksynch.h file??

Bill Marsland

p5pRT commented 24 years ago

From [Unknown Contact. See original ticket]

Hi​:

It has been nearly 3 weeks since I sent you a msg about an installation problem\, ID as in subject line.

I would appreciate it if you would give me a status\, e.g.\, someone is looking at it\, or you are waiting for a response from Amdahl\, or whatever.

Thanks.

Bill Marsland