Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'make' problem in perl-5.005.03 #1018

Closed
p5pRT opened this issue Jan 10, 2000 · 3 comments
Closed

'make' problem in perl-5.005.03 #1018

p5pRT opened this issue Jan 10, 2000 · 3 comments

Comments

@p5pRT
Copy link

p5pRT commented Jan 10, 2000

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

Searchable as RT1969$

@p5pRT
Copy link
Author

p5pRT commented Jan 10, 2000

From raj@sandi.stph.net

I've tried to download and install perl-5.005.03 software
available at http​://www.gnu.org.
I am able to run the Configure script without any problems,
but when I execute the make command, I get parse errors all
over the place like :

`sh cflags libperl.a miniperlmain.o` miniperlmain.c
  CCCMD = gcc -DPERL_CORE -c -O
In file included from perl.h​:367,
  from miniperlmain.c​:11​:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.2/include/sys/param.h​:187​:
warning​: `NBBY' redefined
/usr/include/sys/select.h​:56​: warning​: this is the location of the
previous definition
In file included from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.2/include/time.h​:90,
  from /usr/include/sys/time.h​:405,
  from /usr/include/sys/select.h​:17,
  from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.2/include/sys/types.h​:281,
  from perl.h​:307,
  from miniperlmain.c​:11​:
/usr/include/sys/siginfo.h​:74​: parse error before `pthread_attr_t'
/usr/include/sys/siginfo.h​:74​: warning​: no semicolon at end of struct or
union
/usr/include/sys/siginfo.h​:76​: parse error before `}'
In file included from /usr/include/sys/stream.h​:22,
  from /usr/include/netinet/in.h​:38,
  from perl.h​:523,
  from miniperlmain.c​:11​:
/usr/include/sys/vnode.h​:163​: parse error before `u_offset_t'
/usr/include/sys/vnode.h​:163​: warning​: no semicolon at end of struct or
union
/usr/include/sys/vnode.h​:171​: parse error before `}'

The output of ./myconfig script is as follows​:

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration​:
  Platform​:
  osname=solaris, osvers=2.7, archname=sun4-solaris
  uname='sunos maruti 5.7 generic sun4m sparc sunw,sparcstation-4 '
  hint=recommended, useposix=true, d_sigaction=undef
  usethreads=undef useperlio=undef d_sfio=undef
  Compiler​:
  cc='gcc', optimize='-O', gccversion=2.7.2.2
  cppflags=''
  ccflags =''
  stdchar='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='ld', ldflags =' -L/usr/local/lib'
  libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
  libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
  libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
  cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Thanks in advance for your help regarding this.
-Raj

--

Rajeshwar Naik Ph # : (91)40-7721642 (w)
Senior Design Engineer Fax# : (91)40-7720884 (w)
Sand Microelectronics (India) Pvt. Ltd. Email : raj@​sandi.stph.net

@p5pRT
Copy link
Author

p5pRT commented Jan 10, 2000

From [Unknown Contact. See original ticket]

Rajeshwar Naik <raj@​sandi.stph.net> writes​:

Hi,

I've tried to download and install perl-5.005.03 software
available at http​://www.gnu.org.
I am able to run the Configure script without any problems,
but when I execute the make command, I get parse errors all
over the place like :

`sh cflags libperl.a miniperlmain.o` miniperlmain.c
CCCMD = gcc -DPERL_CORE -c -O
In file included from perl.h​:367,
from miniperlmain.c​:11​:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.2/include/sys/param.h​:187​:
warning​: `NBBY' redefined
/usr/include/sys/select.h​:56​: warning​: this is the location of the
previous definition
In file included from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.2/include/time.h​:90,
from /usr/include/sys/time.h​:405,
from /usr/include/sys/select.h​:17,
from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.2/include/sys/types.h​:281,
from perl.h​:307,
from miniperlmain.c​:11​:

This usually indicates you are using a gcc built for a different OS
release than the one you are running.

Prior to gcc-2.8.* gcc took copies of nearly all the system include
files - in your case for solaris-2.5.1.

You are now running solaris 2.7 and the "saved" files conflict
with the new system include files.

You need to re-run gcc's fixincludes, or upgrade your gcc, or find
a solaris-2.5.1 machine to do the perl build.

(I happen to "know" that gcc-2.8.1 built for Solaris-2.5.1 _will_
build perl on Solaris2.7 - 'cos that is what I am using - but I would
still recomend using a gcc built for the actual OS.)

The output of ./myconfig script is as follows​:

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration​:
Platform​:
osname=solaris, osvers=2.7, archname=sun4-solaris

--
Nick Ing-Simmons <nik@​tiuk.ti.com>
Via, but not speaking for​: Texas Instruments Ltd.

@p5pRT
Copy link
Author

p5pRT commented Dec 13, 2000

From The RT System itself

This is not a perl bug.
It is a mismatch of solaris and gcc
versions, as the 2nd message
makes clear. 5.7.0 Configure
contains a check for this. See change
number 6479.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant