Perl / perl5

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

Problem compiling Perl #4897

Closed p5pRT closed 16 years ago

p5pRT commented 22 years ago

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

Searchable as RT8316$

p5pRT commented 22 years ago

From roddy.cameron@bnpparibas.com

Hi

I hope you can help me. I have downloaded the stable source for unix from perl.com and am trying to install it on a Dec Tru64 platform. However I get the following error in the compilation. Can you suggest what the problem is. I have enclosed myconfig and I pretty much accepted most of the defaults other than specifying to look in /usr/include as it orginally could not find stdlib.h. As the rror is referring to malloc I tried using the local malloc\, not the one that comes with perl but it still failed.

Any assistance would be much appreciated.

Cheers Roddy

/bin/sh Makefile.SH Extracting Makefile (with variable substitutions) sh ./makedepend.SH Extracting makedepend (with variable substitutions) make depend MAKEDEPEND= sh ./makedepend MAKE=make sh writemain lib/auto/DynaLoader/DynaLoader.a > writemain.tmp sh mv-if-diff writemain.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 perl.c perly.c pp.c pp_hot.c pp_ctl.c pp_sys.c regcomp.c regexec.c utf8.c gv. c sv.c taint.c toke.c util.c deb.c run.c universal.c xsutils.c globals.c perlio.c perlapi.c miniperlmain.c perlmain.c | tr ' ' '\n' >.clist Finding dependencies for malloc.o. Finding dependencies for av.o. Finding dependencies for scope.o. Finding dependencies for op.o. Finding dependencies for doop.o. Finding dependencies for doio.o. Finding dependencies for dump.o. Finding dependencies for hv.o. Finding dependencies for mg.o. Finding dependencies for perl.o. Finding dependencies for perly.o. Finding dependencies for pp.o. Finding dependencies for pp_hot.o. Finding dependencies for pp_ctl.o. Finding dependencies for pp_sys.o. Finding dependencies for regcomp.o. Finding dependencies for regexec.o. Finding dependencies for utf8.o. Finding dependencies for gv.o. Finding dependencies for sv.o. Finding dependencies for taint.o. Finding dependencies for toke.o. Finding dependencies for util.o. Finding dependencies for deb.o. Finding dependencies for run.o. Finding dependencies for universal.o. Finding dependencies for xsutils.o. Finding dependencies for globals.o. Finding dependencies for perlio.o. Finding dependencies for perlapi.o. Finding dependencies for miniperlmain.o. Finding dependencies for perlmain.o. echo Makefile.SH cflags.SH config_h.SH makeaperl.SH makedepend.SH makedir.SH myconfig.SH writemain.SH pod/Makefile.SH | tr ' ' '\n' >.shlis t Updating makefile... test -s perlmain.c && touch perlmain.c cd x2p; make depend sh ../makedepend MAKE=make echo hash.c str.c util.c walk.c | tr ' ' '\n' >.clist Finding dependencies for hash.o. Finding dependencies for str.o. Finding dependencies for util.o. Finding dependencies for walk.o. echo Makefile.SH cflags.SH | tr ' ' '\n' >.shlist Updating makefile... /bin/sh config_h.SH Extracting config.h (with variable substitutions) `sh cflags libperl.so miniperlmain.o` miniperlmain.c   CCCMD = cc -DPERL_CORE -c -DDEBUGGING -O4 `sh cflags libperl.so perl.o` perl.c   CCCMD = cc -DPERL_CORE -c -DDEBUGGING -O4 `sh cflags libperl.so gv.o` gv.c   CCCMD = cc -DPERL_CORE -c -DDEBUGGING -O4 `sh cflags libperl.so toke.o` toke.c   CCCMD = cc -DPERL_CORE -c -DDEBUGGING -O4 `sh cflags libperl.so perly.o` perly.c   CCCMD = cc -DPERL_CORE -c -DDEBUGGING -O4 `sh cflags libperl.so op.o` op.c   CCCMD = cc -DPERL_CORE -c -DDEBUGGING -O4 `sh cflags libperl.so regcomp.o` regcomp.c   CCCMD = cc -DPERL_CORE -c -DDEBUGGING -O4 `sh cflags libperl.so dump.o` dump.c   CCCMD = cc -DPERL_CORE -c -DDEBUGGING -O4 `sh cflags libperl.so util.o` util.c   CCCMD = cc -DPERL_CORE -c -DDEBUGGING -O4 cc​: Warning​: util.c\, line 108​: Too few actual parameters in macro call. (toofewactuals)   Malloc_t PerlMem_realloc(); -----------------------------^ cc​: Error​: util.c\, line 108​: Error parsing parameter list. Found "(" when expecting one of​: \<type-specifier>\, \\, "..."\, ")". (not expecting)   Malloc_t PerlMem_realloc(); -------------^ cc​: Warning​: util.c\, line 3692​: In this statement\, & before array "PL_ppaddr" is ignored. (addrarray) return &PL_ppaddr; --------^ cc​: Warning​: util.c\, line 3692​: In this statement\, the referenced type of the pointer value "&PL_ppaddr" is "pointer to function () returnin g pointer to struct op"\, which is not compatible with "array [0] of pointer to function () returning pointer to struct op". (ptrmismatch) return &PL_ppaddr; --------^ *** Exit 1 Stop.

myconfig

#!/bin/sh

# This script is designed to provide a handy summary of the configuration # information being used to build perl. This is especially useful if you # are requesting help from comp.lang.perl.misc on usenet or via mail.

# Note that the text lines /^Summary of/ .. /^\s*$/ are copied into Config.pm. cat \<\<'!NO!SUBS!' Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration​:   Platform​:   osname=dec_osf\, osvers=4.0\, archname=alpha-dec_osf   uname='osf1 loncmas1413 v4.0 1229 alpha '   config_args=''   hint=recommended\, useposix=true\, d_sigaction=define   usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef   useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef   use64bitint=define use64bitall=define uselongdouble=undef   Compiler​:   cc='cc'\, ccflags ='-DDEBUGGING'\,   optimize='-O4'\,   cppflags='-DDEBUGGING'   ccversion='V5.9-011'\, gccversion=''\, gccosandvers=''   intsize=4\, longsize=8\, ptrsize=8\, doublesize=8\, byteorder=12345678   d_longlong=define\, longlongsize=8\, d_longdbl=define\, longdblsize=8   ivtype='long'\, ivsize=8\, nvtype='double'\, nvsize=8\, Off_t='off_t'\, lseeksize=8   alignbytes=8\, usemymalloc=n\, prototype=define   Linker and Libraries​:   ld='ld'\, ldflags =''   libpth=/usr/include /lib   libs=-ldbm -ldb -lm -lutil   perllibs=-lm -lutil   libc=\, so=so\, useshrplib=true\, libperl=libperl.so   Dynamic Linking​:   dlsrc=dl_dlopen.xs\, dlext=so\, d_dlsymun=undef\, ccdlflags=' -Wl\,-rpath\,/usr/usr2/perl/lib/5.6.1/alpha-dec_osf/CORE'   cccdlflags=' '\, lddlflags='-shared -expect_unresolved "*" -O4 -msym -std -s'

!NO!SUBS!

This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error\, please delete it and immediately notify the sender. Any use not in accord with its purpose\, any dissemination or disclosure\, either whole or partial\, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified.

  ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur\, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination\, toute diffusion ou toute publication\, totale ou partielle\, est interdite\, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message\, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message\, dans l'hypothese ou il aurait ete modifie.

p5pRT commented 16 years ago

p5p@spam.wizbit.be - Status changed from 'open' to 'resolved'