Subject: | Unable to build on OS X Yosemite |
With Perl 5.20.2:
~/.cpan/build/UUID-0.24-q6KN6b> perl Makefile.PL
#
# ===> Checking for -luuid
# /usr/bin/cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib assertlibuGTNA525.c -o assertlibTHRf03Ix -luuid
#
# ===> Checking for uuid/uuid.h
# /usr/bin/cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib assertlibZIDEw3MN.c -o assertlibKlIpXbPG
# /usr/bin/cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib assertlibSyXj7UWK.c -o assertlib9kMQU8l8 -luuid
# ===> Found!
#
# ===> Checking for uuid.h
# /usr/bin/cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib assertlibYMoMQ5eA.c -o assertlibauNKOKSy
assertlibYMoMQ5eA.c:1:10: fatal error: 'uuid.h' file not found
#include <uuid.h>
^
1 error generated.
# /usr/bin/cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib assertlibIQ2iaKa5.c -o assertlibK98k3lXs -luuid
assertlibIQ2iaKa5.c:1:10: fatal error: 'uuid.h' file not found
#include <uuid.h>
^
1 error generated.
#
# ===> Checking for rpc.h
# /usr/bin/cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib assertlibo9zGRwoa.c -o assertlibHfHAVOUZ
assertlibo9zGRwoa.c:1:10: fatal error: 'rpc.h' file not found
#include <rpc.h>
^
1 error generated.
# /usr/bin/cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib assertlib0wI6l67_.c -o assertlibieupBYSn -luuid
assertlib0wI6l67_.c:1:10: fatal error: 'rpc.h' file not found
#include <rpc.h>
^
1 error generated.
#
# ===> Checking for RPC interface in uuid/uuid.h
# /usr/bin/cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib assertlibwn1EgmBD.c -o assertlib4XgWWJwJ
# /usr/bin/cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib assertliba9xv1yfU.c -o assertlibUbXBu9Oj -luuid
assertliba9xv1yfU.c:5:13: error: unknown type name 'int32_t'; did you mean '__int32_t'?
int32_t r,s;
^~~~~~~
__int32_t
/usr/include/i386/_types.h:44:15: note: '__int32_t' declared here
typedef int __int32_t;
^
assertliba9xv1yfU.c:6:13: warning: implicit declaration of function 'uuid_create' is
invalid in C99 [-Wimplicit-function-declaration]
uuid_create(&u1,&s);
^
assertliba9xv1yfU.c:7:13: warning: implicit declaration of function 'uuid_create_nil' is
invalid in C99 [-Wimplicit-function-declaration]
uuid_create_nil(&u2,&s);
^
assertliba9xv1yfU.c:8:13: warning: implicit declaration of function 'uuid_from_string' is
invalid in C99 [-Wimplicit-function-declaration]
uuid_from_string(str,&u1,&s);
^
assertliba9xv1yfU.c:9:13: warning: implicit declaration of function 'uuid_to_string' is
invalid in C99 [-Wimplicit-function-declaration]
uuid_to_string(&u1,&str,&s);
^
assertliba9xv1yfU.c:10:38: error: too many arguments to function call, expected 2, have 3
r = uuid_compare(&u1,&u2,&s);
~~~~~~~~~~~~ ^~
/usr/include/uuid/uuid.h:55:1: note: 'uuid_compare' declared here
int uuid_compare(const uuid_t uu1, const uuid_t uu2);
^
assertliba9xv1yfU.c:11:17: warning: implicit declaration of function 'uuid_equal' is
invalid in C99 [-Wimplicit-function-declaration]
r = uuid_equal(&u1,&u2,&s);
^
assertliba9xv1yfU.c:12:17: warning: implicit declaration of function 'uuid_is_nil' is
invalid in C99 [-Wimplicit-function-declaration]
r = uuid_is_nil(&u1,&s);
^
6 warnings and 2 errors generated.
# ===> Err(47): "Can't link/include C library 'uuid', aborting.
"
# ===> Checking for e2fs interface in uuid/uuid.h
# /usr/bin/cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib assertlib1fKhrmc6.c -o assertlibSdbVPbjW
# /usr/bin/cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib assertlibTERTFF0z.c -o assertlibrd0FI5nC -luuid
# ===> Err(21): "wrong result: 'uuid'
"
# ===> Checking for Win interface in uuid/uuid.h
# /usr/bin/cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib assertlib6x6n4R0o.c -o assertlibgs9P98CV
# /usr/bin/cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib assertlib7vQhycA1.c -o assertlibtuzDDkLr
assertlib7vQhycA1.c:2:10: fatal error: 'rpcdce.h' file not found
#include <rpcdce.h>
^
1 error generated.
# /usr/bin/cc -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -fstack-protector -L/usr/local/lib assertlibhB0YP4en.c -o assertlibHHqUZlDg -lrpcrt4
assertlibhB0YP4en.c:2:10: fatal error: 'rpcdce.h' file not found
#include <rpcdce.h>
^
1 error generated.
# ===> Err(61): "Can't link/include C library 'rpcdce.h', 'rpcrt4', aborting.
"
No interface found. Can't continue.