develooper Front page | perl.perl1.porters | Postings from December 2007

1.0.16 won't compile on OS X 10.4.11

Thread Next
From:
Michael G Schwern
Date:
December 17, 2007 20:49
Subject:
1.0.16 won't compile on OS X 10.4.11
Message ID:
4767511C.801@pobox.com
In anticipation of perl's 20th I tried to compile up perl1.  I ran into
problems during make.

$ make
cc -c -pipe -fno-common -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN -no-cpp-precomp
-I/usr/local/include -I/opt/local/include -I/sw/include -O  arg.c
In file included from arg.c:33:
perl.h:67: error: conflicting types for ‘sprintf’
perl.h:67: note: a parameter list with an ellipsis can’t match an empty
parameter name list declaration
arg.c: In function ‘do_open’:
arg.c:319: warning: incompatible implicit declaration of built-in function
‘strlen’
arg.c: In function ‘do_exec’:
arg.c:826: warning: incompatible implicit declaration of built-in function ‘index’
arg.c:827: warning: incompatible implicit declaration of built-in function ‘execl’
arg.c: In function ‘eval’:
arg.c:1770: warning: incompatible implicit declaration of built-in function
‘memcpy’
arg.c:1802: warning: incompatible implicit declaration of built-in function
‘strlen’
arg.c:1873: warning: incompatible implicit declaration of built-in function ‘exit’
make: *** [arg.o] Error 1

After munging in some apparently missing includes (string.h, unistd.h and
stdlib.h) I'm left with:

$ make
cc -c -pipe -fno-common -DINT32_MIN_BROKEN -DINT64_MIN_BROKEN -no-cpp-precomp
-I/usr/local/include -I/opt/local/include -I/sw/include -O  arg.c
In file included from perl.h:32,
                 from arg.c:33:
/usr/include/string.h:119: error: conflicting types for ‘memcpy’
/usr/include/string.h:120: error: parse error before numeric constant
/usr/include/string.h:120: error: conflicting types for ‘memset’
In file included from arg.c:33:
perl.h:70: error: conflicting types for ‘sprintf’
perl.h:70: note: a parameter list with an ellipsis can’t match an empty
parameter name list declaration
make: *** [arg.o] Error 1


config.sh attached.


-- 
I do have a cause though. It's obscenity. I'm for it.
    - Tom Lehrer


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