Subject: | Cannot build on MacOS X |
On MacOS X Snow Leopard, get the 1.03 package and do
Show quoted text
> perl Makefile.PL
> make
result in error:
In file included from ExtAttr.xs:2:
/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/perl.h:308:1:
warning: this is the location of the previous definition
In file included from extattr_os.h:27,
from portable.h:5,
from ExtAttr.xs:7:
extattr_bsd.h:5:25: error: sys/extattr.h: No such file or directory
In file included from ExtAttr.xs:7:
Tried to get rid of the extattr_bsd.h is not going to work either as the
error would become
portable.h: In function ‘portable_lenxattr’:
portable.h:87: error: ‘EXTATTR_NAMESPACE_USER’ undeclared (first use in
this function)
portable.h:87: error: (Each undeclared identifier is reported only once
portable.h:87: error: for each function it appears in.)
Looks like sys/extattr.h is only available on FreeBSD and not MacOSX.
How to compile on OS X.