Perl / perl5

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

Problems compiling perl 5.005_02 #5012

Closed p5pRT closed 20 years ago

p5pRT commented 22 years ago

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

Searchable as RT8497$

p5pRT commented 22 years ago

From dimmie@lucent.com

I experienced a problem compiling perl 5.005_02 on Solaris 2.6 Box. I'm trying to compile the source code using gcc.

This is the problem I get when I do compile it. Any suggestions?

Greg Dimmie

press return or use a shell escape to edit config.sh​:

Doing variable substitutions on .SH files... Extracting Makefile (with variable substitutions) Extracting Policy.sh (with variable substitutions) Extracting cflags (with variable substitutions) Extracting config.h (with variable substitutions) Extracting makeaperl (with variable substitutions) Extracting makedepend (with variable substitutions) Extracting makedir (with variable substitutions) Extracting perl.exp Extracting writemain (with variable substitutions) Extracting x2p/Makefile (with variable substitutions) Extracting x2p/cflags (with variable substitutions)

Now you need to generate make dependencies by running "make depend". You might prefer to run it in background​: "make depend > makedepend.out &" It can take a while\, so you might not want to run it right now.

Run make depend now? [y] sh ./makedepend MAKE=make make​: Warning​: Both `makefile' and `Makefile' exist Current working directory /var/tmp/perl5.005_02 sh writemain lib/auto/DynaLoader/DynaLoader.a lib/auto/B/B.a lib/auto/Data/Dumper/Dumper.a lib/auto/Fcntl/Fcntl.a lib/auto/IO/IO.a lib/auto/IPC/SysV/SysV.a lib/auto/NDBM_File/NDBM_File.a lib/auto/Opcode/Opcode.a lib/auto/POSIX/POSIX.a lib/auto/SDBM_File/SDBM_File.a lib/auto/attrs/attrs.a lib/auto/re/re.a > tmp sh mv-if-diff tmp perlmain.c File perlmain.c not changed. echo malloc.c av.c scope.c op.c doop.c doio.c dump.c hv.c mg.c byterun.c perl.c perly.c pp.c pp_hot.c pp_ctl.c pp_sys.c regcomp.c regexec.c gv.c sv.c taint.c toke.c util.c deb.c run.c universal.c globals.c perlio.c miniperlmain.c perlmain.c | tr ' ' '\012' >.clist Finding dependencies for malloc.o. Finding dependencies for av.o. In file included from perl.h​:361\,   from av.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from av.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for scope.o. In file included from perl.h​:361\,   from scope.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from scope.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for op.o. In file included from perl.h​:361\,   from op.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from op.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for doop.o. In file included from perl.h​:361\,   from doop.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from doop.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for doio.o. In file included from perl.h​:361\,   from doio.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from doio.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for dump.o. In file included from perl.h​:361\,   from dump.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from dump.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for hv.o. In file included from perl.h​:361\,   from hv.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from hv.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for mg.o. In file included from perl.h​:361\,   from mg.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from mg.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for byterun.o. In file included from perl.h​:361\,   from byterun.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from byterun.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for perl.o. In file included from perl.h​:361\,   from perl.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from perl.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for perly.o. In file included from perl.h​:361\,   from perly.c​:5​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from perly.c​:5​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for pp.o. In file included from perl.h​:361\,   from pp.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from pp.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for pp_hot.o. In file included from perl.h​:361\,   from pp_hot.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from pp_hot.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for pp_ctl.o. In file included from perl.h​:361\,   from pp_ctl.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from pp_ctl.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for pp_sys.o. In file included from perl.h​:361\,   from pp_sys.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from pp_sys.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for regcomp.o. In file included from perl.h​:361\,   from regcomp.c​:17​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from regcomp.c​:17​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for regexec.o. In file included from perl.h​:361\,   from regexec.c​:16​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from regexec.c​:16​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for gv.o. In file included from perl.h​:361\,   from gv.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from gv.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for sv.o. In file included from perl.h​:361\,   from sv.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from sv.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for taint.o. In file included from perl.h​:361\,   from taint.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from taint.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for toke.o. In file included from perl.h​:361\,   from toke.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from toke.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for util.o. In file included from perl.h​:361\,   from util.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from util.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for deb.o. In file included from perl.h​:361\,   from deb.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from deb.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for run.o. In file included from perl.h​:361\,   from run.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from run.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for universal.o. In file included from perl.h​:361\,   from universal.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from universal.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for globals.o. In file included from perl.h​:361\,   from globals.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from globals.c​:2​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for perlio.o. In file included from perl.h​:361\,   from perlio.c​:8​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from perlio.c​:8​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for miniperlmain.o. In file included from perl.h​:361\,   from miniperlmain.c​:5​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from miniperlmain.c​:5​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" Finding dependencies for perlmain.o. In file included from perl.h​:361\,   from perlmain.c​:5​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from perlmain.c​:5​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" make​: Warning​: Both `makefile' and `Makefile' exist Current working directory /var/tmp/perl5.005_02 echo Makefile.SH cflags.SH config_h.SH makeaperl.SH makedepend.SH makedir.SH perl_exp.SH writemain.SH | tr ' ' '\012' >.shlist Updating makefile... test -s perlmain.c && touch perlmain.c cd x2p; make depend sh ../makedepend MAKE=make make​: Warning​: Both `makefile' and `Makefile' exist Current working directory /var/tmp/perl5.005_02/x2p echo hash.c malloc.c str.c util.c walk.c | tr ' ' '\012' >.clist Finding dependencies for hash.o. Finding dependencies for malloc.o. Finding dependencies for str.o. Finding dependencies for util.o. Finding dependencies for walk.o. make​: Warning​: Both `makefile' and `Makefile' exist Current working directory /var/tmp/perl5.005_02/x2p echo Makefile.SH cflags.SH | tr ' ' '\012' >.shlist Updating makefile... Now you must run a make.

If you compile perl5 on a different machine or from a different object directory\, copy the Policy.sh file from this object directory to the new one before you run Configure -- this will help you with most of the policy defaults.

root-Rigel-691> make make​: Warning​: Both `makefile' and `Makefile' exist `sh cflags libperl.a miniperlmain.o` miniperlmain.c   CCCMD = gcc -DPERL_CORE -c -O
In file included from perl.h​:361\,   from miniperlmain.c​:11​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition In file included from /usr/include/sys/stream.h​:26\,   from /usr/include/netinet/in.h​:38\,   from perl.h​:517\,   from miniperlmain.c​:11​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified" *** Error code 1 make​: Fatal error​: Command failed for target `miniperlmain.o' root-Rigel-692>

p5pRT commented 22 years ago

From [Unknown Contact. See original ticket]

Gregory \ Dimmie \dimmie@​lucent\.com writes​:

I experienced a problem compiling perl 5.005_02 on Solaris 2.6 Box.   ^^^^^^^^^^^

I'm trying to compile the source code using gcc.

This is the problem I get when I do compile it. Any suggestions? In file included from perl.h​:361\, from av.c​:2​: /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​:   ^^^^^^^^^^^^^^^^^^^^^^

The GCC you have is for Solaris2.5.1 not Solaris 2.6.

The header files changed - you need to re-install gcc (Yours is quite old anyway) or at least re-run "fixincludes" and sorry I don't remember how to do that on the 2.7.2 gcc...

Later gcc's cleaned up the OS revision dependence a good deal.

warning​: `NBBY' redefined /usr/include/sys/select.h​:45​: warning​: this is the location of the previous definition

That can also (if I recall correctly) be caused by passing -I/usr/include to gcc.

-- Nick Ing-Simmons http​://www.ni-s.u-net.com/

p5pRT commented 22 years ago

From @doughera88

On Mon\, 11 Feb 2002\, Gregory Dimmie wrote​:

I experienced a problem compiling perl 5.005_02 on Solaris 2.6 Box. I'm trying to compile the source code using gcc.

/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified"

The current stable version of perl is 5.6.1. If you wish to stay in the 5.005 range\, try using 5.005_03. In any case\, according to the INSTALL file from 5.6.1\,

=item #error "No DATAMODEL_NATIVE specified"

This is a common error when trying to build perl on Solaris 2.6 with a gcc installation from Solaris 2.5 or 2.5.1. The Solaris header files changed\, so you need to update your gcc installation. You can either rerun the fixincludes script from gcc or take the opportunity to update your gcc installation.

Hope this helps\,

--   Andy Dougherty doughera@​lafayette.edu

p5pRT commented 22 years ago

From @schwern

On Mon\, Feb 11\, 2002 at 03​:14​:28PM -0500\, Dimmie\, Gregory (Gregory) wrote​:

I experienced a problem compiling perl 5.005_02 on Solaris 2.6 Box.   ^^^^^^^^

Unless you have a reason to want an old version\, I'd suggest you use 5.6.1 or at least 5.005_03.

--

Michael G. Schwern \schwern@​pobox\.com http​://www.pobox.com/~schwern/ Perl Quality Assurance \perl\-qa@​perl\.org Kwalitee Is Job One Sometimes you eat the path\, sometimes the path eats you.

p5pRT commented 22 years ago

From @doughera88

On Tue\, 12 Feb 2002\, Dimmie\, Gregory (Gregory) wrote​:

The gcc compiler is definitely a problem. Where can I get some information on the fixincludes command. I can do any perl upgrades until I if gcc. I do have gcc version 2952 loaded but I don't know how to change the header or include part. Any suggestions?

The fixincludes command was included with your gcc 2.7.2 distribution. You'll probably have to unpack the gcc-2.7.2 distribution to find it.

If you have gcc 2.95.2 "loaded"\, you should just be able to use it instead. If installed correctly\, gcc-2.95.2 will look for header files in the correct places automatically. You shouldn't have to do anything special.

Just make sure the 'gcc' in your $PATH is 2.95.2\, not 2.7.2.

--   Andy Dougherty doughera@​lafayette.edu

p5pRT commented 22 years ago

From [Unknown Contact. See original ticket]

The gcc compiler is definitely a problem. Where can I get some information on the fixincludes command. I can do any perl upgrades until I if gcc. I do have gcc version 2952 loaded but I don't know how to change the header or include part. Any suggestions?

Greg D...

-----Original Message----- From​: Andy Dougherty [mailto​:doughera@​lafayette.edu] Sent​: Monday\, February 11\, 2002 3​:55 PM To​: Gregory Dimmie Cc​: perl5-porters@​perl.org Subject​: Re​: [ID 20020211.008] Problems compiling perl 5.005_02

On Mon\, 11 Feb 2002\, Gregory Dimmie wrote​:

I experienced a problem compiling perl 5.005_02 on Solaris 2.6 Box. I'm trying to compile the source code using gcc.

/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/param.h​:187​: /usr/include/sys/model.h​:32​: #error "No DATAMODEL_NATIVE specified"

The current stable version of perl is 5.6.1. If you wish to stay in the 5.005 range\, try using 5.005_03. In any case\, according to the INSTALL file from 5.6.1\,

=item #error "No DATAMODEL_NATIVE specified"

This is a common error when trying to build perl on Solaris 2.6 with a gcc installation from Solaris 2.5 or 2.5.1. The Solaris header files changed\, so you need to update your gcc installation. You can either rerun the fixincludes script from gcc or take the opportunity to update your gcc installation.

Hope this helps\,

--   Andy Dougherty doughera@​lafayette.edu

p5pRT commented 22 years ago

From [Unknown Contact. See original ticket]

The gcc compiler is definitely a problem. Where can I get some information on the fixincludes command. I can do any perl upgrades until I if gcc. I do have gcc version 2952 loaded but I don't know how to change the header or include part. Any suggestions?

Greg D...

-----Original Message----- From​: Michael G Schwern [mailto​:schwern@​pobox.com] Sent​: Monday\, February 11\, 2002 4​:04 PM To​: Dimmie\, Gregory (Gregory) Cc​: perl5-porters@​perl.org Subject​: Re​: [ID 20020211.008] Problems compiling perl 5.005_02

On Mon\, Feb 11\, 2002 at 03​:14​:28PM -0500\, Dimmie\, Gregory (Gregory) wrote​:

I experienced a problem compiling perl 5.005_02 on Solaris 2.6 Box.   ^^^^^^^^

Unless you have a reason to want an old version\, I'd suggest you use 5.6.1 or at least 5.005_03.

--

Michael G. Schwern \schwern@​pobox\.com http​://www.pobox.com/~schwern/ Perl Quality Assurance \perl\-qa@​perl\.org Kwalitee Is Job One Sometimes you eat the path\, sometimes the path eats you.

p5pRT commented 22 years ago

From [Unknown Contact. See original ticket]

Hmmm... It tried the 2952 version and I get the same issue. I guess I'll have to find the 2.7.2 version.

Greg D..

-----Original Message----- From​: Andy Dougherty [mailto​:doughera@​lafayette.edu] Sent​: Tuesday\, February 12\, 2002 10​:56 AM To​: Dimmie\, Gregory (Gregory) Cc​: Perl Porters Subject​: RE​: [ID 20020211.008] Problems compiling perl 5.005_02

On Tue\, 12 Feb 2002\, Dimmie\, Gregory (Gregory) wrote​:

The gcc compiler is definitely a problem. Where can I get some information on the fixincludes command. I can do any perl upgrades until I if gcc. I do have gcc version 2952 loaded but I don't know how to change the header or include part. Any suggestions?

The fixincludes command was included with your gcc 2.7.2 distribution. You'll probably have to unpack the gcc-2.7.2 distribution to find it.

If you have gcc 2.95.2 "loaded"\, you should just be able to use it instead. If installed correctly\, gcc-2.95.2 will look for header files in the correct places automatically. You shouldn't have to do anything special.

Just make sure the 'gcc' in your $PATH is 2.95.2\, not 2.7.2.

--   Andy Dougherty doughera@​lafayette.edu