develooper Front page | perl.perl5.porters | Postings from July 2000

[ID 20000726.002] perl 5.6.0 build failure

Thread Next
From:
m bomers
Date:
July 31, 2000 11:11
Subject:
[ID 20000726.002] perl 5.6.0 build failure
Message ID:
200007270506.PAA108231@mugcb.its.monash.edu.au
This is a bug report for perl from root@mugc.cc.monash.edu.au,
generated with the help of perlbug 1.26 running under perl 5.00404.

Perl 5.6.0 fails during `make` phase when building "malloc" as per messages below.
System details:
	Digital (Compaq) Alpha 2100 5/250 running Tru64 Unix v5.0A

Currently have perl 5.004 but that was built with v4.0D from memory
System/Perl Administrator: Marchelm.Bomers@its.monash.edu.au
	
I am guessing that this is a System OS specific problem, but without programming qualifications I have no way of identifying/fixing the error.
Tanx in advance for any assistance that you can give.

+++ ERROR WHEN CONFIGURED WITH PERL'S MALLOC:


`sh  cflags libperl.so miniperlmain.o`  miniperlmain.c
          CCCMD =  cc -DPERL_CORE -c -std -fprm d -ieee -D_INTRINSICS -I/usr/loc
al/include -DLANGUAGE_C -O4
cc: Error: perl.h, line 532: In this declaration, the type of "malloc" is not co
mpatible with the type of a previous declaration of "malloc" at line number 158
in file /usr/include/stdlib.h. (notcompat)
Malloc_t Perl_malloc (MEM_SIZE nbytes);
---------^
cc: Error: perl.h, line 533: In this declaration, the type of "calloc" is not co
mpatible with the type of a previous declaration of "calloc" at line number 156
in file /usr/include/stdlib.h. (notcompat)
Malloc_t Perl_calloc (MEM_SIZE elements, MEM_SIZE size);
---------^
cc: Error: perl.h, line 534: In this declaration, the type of "realloc" is not c
ompatible with the type of a previous declaration of "realloc" at line number 15
9 in file /usr/include/stdlib.h. (notcompat)
Malloc_t Perl_realloc (Malloc_t where, MEM_SIZE nbytes);
---------^
cc: Error: perl.h, line 537: In this declaration, the type of "free" is not comp
atible with the type of a previous declaration of "free" at line number 157 in f
ile /usr/include/stdlib.h. (notcompat)
Free_t   Perl_mfree (Malloc_t where);
---------^
cc: Error: proto.h, line 28: In this declaration, the type of "malloc" is not co
mpatible with the type of a previous declaration of "malloc" at line number 158
in file /usr/include/stdlib.h. (notcompat)
PERL_CALLCONV Malloc_t  Perl_malloc(MEM_SIZE nbytes);
------------------------^
cc: Error: proto.h, line 29: In this declaration, the type of "calloc" is not co
mpatible with the type of a previous declaration of "calloc" at line number 156
in file /usr/include/stdlib.h. (notcompat)
PERL_CALLCONV Malloc_t  Perl_calloc(MEM_SIZE elements, MEM_SIZE size);
------------------------^
cc: Error: proto.h, line 30: In this declaration, the type of "realloc" is not c
ompatible with the type of a previous declaration of "realloc" at line number 15
9 in file /usr/include/stdlib.h. (notcompat)
PERL_CALLCONV Malloc_t  Perl_realloc(Malloc_t where, MEM_SIZE nbytes);
------------------------^
cc: Error: proto.h, line 31: In this declaration, the type of "free" is not comp
atible with the type of a previous declaration of "free" at line number 157 in f
ile /usr/include/stdlib.h. (notcompat)
PERL_CALLCONV Free_t    Perl_mfree(Malloc_t where);
------------------------^
*** Exit 1
Stop.


** ERROR WHEN CONFIGURED WITH -Dusemymalloc:

        Making SDBM_File (dynamic)
Writing Makefile for sdbm
Writing Makefile for SDBM_File
make[1]: Entering directory `/users/marchelm/ftp/perl/perl-5.6.0/ext/SDBM_File'
mkdir ../../lib/auto/SDBM_File
make[1]: Leaving directory `/users/marchelm/ftp/perl/perl-5.6.0/ext/SDBM_File'
make[1]: Entering directory `/users/marchelm/ftp/perl/perl-5.6.0/ext/SDBM_File'
cp SDBM_File.pm ../../lib/SDBM_File.pm
cd sdbm && /usr/local/bin/make all
make[2]: Entering directory
`/users/marchelm/ftp/perl/perl-5.6.0/ext/SDBM_File/sdbm'
cc -c -I../../.. -std -fprm d -ieee -D_INTRINSICS -I/usr/local/include
-DLANGUAGE_C -O4     -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\"  -I../../.. -DSDBM
-DDUFF sdbm.c
cc: Error: sdbm.c, line 40: In this declaration, the type of "malloc" is not
compatible with the type of a previous declaration of "malloc" at line number
158 in file /usr/include/stdlib.h. (notcompat)
extern Malloc_t malloc proto((MEM_SIZE));
----------------^
cc: Error: sdbm.c, line 41: In this declaration, the type of "free" is not
compatible with the type of a previous declaration of "free" at line number 157
in file /usr/include/stdlib.h. (notcompat)
extern Free_t free proto((Malloc_t));
--------------^
make[2]: *** [sdbm.o] Error 1
make[2]: Leaving directory
`/users/marchelm/ftp/perl/perl-5.6.0/ext/SDBM_File/sdbm'
make[1]: *** [sdbm/libsdbm.a] Error 2
make[1]: Leaving directory `/users/marchelm/ftp/perl/perl-5.6.0/ext/SDBM_File'
make: *** [lib/auto/SDBM_File/SDBM_File.so] Error 2


NB: THE RELEVANT (I think) STATEMENTS IN stdlib.h ARE:

extern void     free __((void *));
extern void     *malloc __((size_t ));


---
This perlbug was built using Perl 5.00503 - Wed Jun  9 11:51:17 EST 1999
It is being executed now by  Perl 5.00404 - Mon Jun 29 14:45:34 EST 1998.

Site configuration information for perl 5.00404:

Configured by marchelm at Mon Jun 29 14:45:34 EST 1998.

Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration:
  Platform:
    osname=dec_osf, osvers=4.0, archname=alpha-dec_osf
    uname='osf1 mugca.cc.monash.edu.au v4.0 878 alpha '
    hint=recommended, useposix=true, d_sigaction=define
    bincompat3=y useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O4', gccversion=
    cppflags='-std -D_INTRINSICS -I/usr/local/include -D__LANGUAGE_C__'
    ccflags ='-std -D_INTRINSICS -I/usr/local/include -D__LANGUAGE_C__'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    voidflags=15, castflags=0, d_casti32=define, d_castneg=define
    intsize=4, alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/shlib /shlib /lib /usr/lib /usr/ccs/lib
    libs=-lgdbm -ldbm -ldb -lm
    libc=/usr/shlib/libc.so, so=so
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-shared -expect_unresolved "*" -O4 -msym -s -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl 5.00404:
    /usr/local/lib/perl5/alpha-dec_osf/5.00404
    /usr/local/lib/perl5
    /usr/local/lib/perl5/site_perl/alpha-dec_osf
    /usr/local/lib/perl5/site_perl
    /usr/local/lib/perl5/alpha-dec_osf
    .

---
Environment for perl 5.00404:
    HOME=/users/marchelm
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/etc:/bin:/sbin:/usr/sbin:/usr/bin:/usr/lib:/usr/local/bin:/users/marchelm/bin:/usr/tcb/bin:/usr/sbin/acct:/usr/local/samba/bin:.
    PERL_BADLANG (unset)
    SHELL=/bin/tcsh


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About