Subject: | Won't compile on Mac OS X 10.6 |
perl Makefile.PL generates this:
Writing Makefile for Data::UUID::LibUUID
trying gcc-4.2 -c -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common
-DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -o /dev/null
hdr_check.h
lipo: can't figure out the architecture type of:
/var/folders/bx/bx4Vk2InGxWG27mQmdvei++++TI/-Tmp-//ccrOrQn4.out
*** ERROR: <uuid/uuid.h> seems to be missing ***
please install libuuid from e2fsprogs (available as uuid-dev on debian)
---
Changing it/adding hdr_check.c passes the above check.
However, compiling with tests has it failing some tests, including
duplicate UUID generation tests:
cp lib/Data/UUID/LibUUID.pm blib/lib/Data/UUID/LibUUID.pm
cp lib/Data/UUID/LibUUID/DataUUIDCompat.pm
blib/lib/Data/UUID/LibUUID/DataUUIDCompat.pm
/usr/bin/perl /Users/rob/perl5/lib/perl5/ExtUtils/xsubpp -typemap
/System/Library/Perl/5.10.0/ExtUtils/typemap LibUUID.xs > LibUUID.xsc
&& mv LibUUID.xsc LibUUID.c
gcc-4.2 -c -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common
-DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os
-DVERSION=\"0.05\" -DXS_VERSION=\"0.05\"
"-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE" LibUUID.c
LibUUID.xs: In function ‘hex_to_uuid’:
LibUUID.xs:85: warning: format not a string literal and no format arguments
LibUUID.xs: In function ‘hex_to_uuid’:
LibUUID.xs:85: warning: format not a string literal and no format arguments
LibUUID.xs: In function ‘hex_to_uuid’:
LibUUID.xs:85: warning: format not a string literal and no format arguments
Running Mkbootstrap for Data::UUID::LibUUID ()
chmod 644 LibUUID.bs
rm -f blib/arch/auto/Data/UUID/LibUUID/LibUUID.bundle
gcc-4.2 -mmacosx-version-min=10.6.3 -arch x86_64 -arch i386 -arch ppc
-bundle -undefined dynamic_lookup -L/usr/local/lib LibUUID.o -o
blib/arch/auto/Data/UUID/LibUUID/LibUUID.bundle \
-luuid \
ld: warning: in /usr/local/lib/libuuid.a, file was built for unsupported
file format which is not the architecture being linked (i386)
ld: warning: in /usr/local/lib/libuuid.a, file was built for unsupported
file format which is not the architecture being linked (ppc)
chmod 755 blib/arch/auto/Data/UUID/LibUUID/LibUUID.bundle
cp LibUUID.bs blib/arch/auto/Data/UUID/LibUUID/LibUUID.bs
chmod 644 blib/arch/auto/Data/UUID/LibUUID/LibUUID.bs
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
BA48F8C4-D745-11DF-A7EC-C8BCC88C0FC2 at t/basic.t line 33.
BA48FFFE-D745-11DF-A7EC-C8BCC88C0FC2 at t/basic.t line 34.
# Failed test 'compare two diff UUIDs'
# at t/basic.t line 37.
# got: '0'
# expected: anything else
# Failed test 'uuid_eq false'
# at t/basic.t line 41.
# got: '1'
# expected: ''
# Failed test 'uuid_eq on strings'
# at t/basic.t line 43.
# Failed test 'uuid_eq on string and bin'
# at t/basic.t line 44.
# Failed test 'uuid_eq on stringifying object'
# at t/basic.t line 64.
# Looks like you failed 5 tests of 47.
t/basic.t ...
Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/47 subtests
t/compat.t .. ok
t/fork.t .... ok
Test Summary Report
-------------------
t/basic.t (Wstat: 1280 Tests: 47 Failed: 5)
Failed tests: 13, 16, 18-19, 23
Non-zero exit status: 5
Files=3, Tests=106, 0 wallclock secs ( 0.04 usr 0.01 sys + 0.14 cusr
0.05 csys = 0.24 CPU)
Result: FAIL
Failed 1/3 test programs. 5/106 subtests failed.
make: *** [test_dynamic] Error 255
---
Any thoughts? Thanks