Mailing List Archive

Problem compiling perl 5
Hi:

I was trying to compile perl 5 on my Sun Sparc 10 running
SunOS 4.1.3 and I got the following:

pitstop:/usr/local/src/perl5.001m> make
`sh cflags libperl.a miniperlmain.o` miniperlmain.c
CCCMD = gcc -c -DDEBUGGING -O
`sh cflags libperl.a perl.o` perl.c
CCCMD = gcc -c -DDEBUGGING -O
`sh cflags libperl.a malloc.o` malloc.c
CCCMD = gcc -c -DDEBUGGING -O
malloc.c: In function `malloc':
malloc.c:107: argument `nbytes' doesn't match prototype
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.7.0/include/stdlib.h:35: prototype declaration
malloc.c: In function `realloc':
malloc.c:316: argument `nbytes' doesn't match prototype
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.7.0/include/stdlib.h:38: prototype declaration
make: *** [malloc.o] Error 1
pitstop:/usr/local/src/perl5.001m>

I've answered y to the configuration question that asks whether
I want to use perl's malloc.

Please advise on how I can get it compiled.

Thanks,
Mona Wong
UCSD