Hello,
Can anyone tell me if it is possible to install Locale::Msgcat on OS X?
When I try to run 'make' (either manually or via cpan) I get failures.
Have been searching for an answer to no avail.
'make' and 'perl -V' output follow.
-Brian
Writing Makefile for Locale::Msgcat
cp Msgcat.pm blib/lib/Locale/Msgcat.pm
/usr/bin/perl /System/Library/Perl/ExtUtils/xsubpp -typemap
/System/Library/Perl/ExtUtils/typemap -typemap typemap Msgcat.xs >
Msgcat.xsc && mv Msgcat.xsc Msgcat.c
Please specify prototyping behavior for Msgcat.xs (see perlxs manual)
cc -c -pipe -fno-common -no-cpp-precomp -fno-strict-aliasing -O3
-DVERSION=\"1.03\" -DXS_VERSION=\"1.03\"
"-I/System/Library/Perl/darwin/CORE" Msgcat.c
Msgcat.xs:5:22: nl_types.h: No such file or directory
Msgcat.xs:8: parse error before '*' token
Msgcat.xs:8: warning: data definition has no type or storage class
Msgcat.c: In function `XS_Locale__Msgcat_new':
Msgcat.c:28: parse error before "RETVAL"
Msgcat.xs:17: `RETVAL' undeclared (first use in this function)
Msgcat.xs:17: (Each undeclared identifier is reported only once
Msgcat.xs:17: for each function it appears in.)
Msgcat.xs:17: `nl_catd' undeclared (first use in this function)
Msgcat.xs:17: parse error before ')' token
Msgcat.c: In function `XS_Locale__Msgcat_DESTROY':
Msgcat.c:53: parse error before "catalog"
Msgcat.c:57: `catalog' undeclared (first use in this function)
Msgcat.c:57: called object is not a function
Msgcat.xs:26: `nl_catd' undeclared (first use in this function)
Msgcat.xs:26: parse error before ')' token
Msgcat.c: In function `XS_Locale__Msgcat_catopen':
Msgcat.c:75: parse error before "catalog"
Msgcat.c:82: `catalog' undeclared (first use in this function)
Msgcat.c:82: called object is not a function
Msgcat.xs:37: `nl_catd' undeclared (first use in this function)
Msgcat.c: In function `XS_Locale__Msgcat_catclose':
Msgcat.c:113: parse error before "catalog"
Msgcat.c:118: `catalog' undeclared (first use in this function)
Msgcat.c:118: called object is not a function
Msgcat.c: In function `XS_Locale__Msgcat_catgets':
Msgcat.c:143: parse error before "catalog"
Msgcat.c:152: `catalog' undeclared (first use in this function)
Msgcat.c:152: called object is not a function
Msgcat.xs:60: warning: assignment makes pointer from integer without a
cast
make: *** [Msgcat.o] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=darwin, osvers=6.0, archname=darwin
uname='darwin cube.iearn.org 6.0 darwin kernel version 6.0: sat jul 27
13:18:52 pdt 2002; root:xnuxnu-344.obj~1release_ppc power macintosh
powerpc '
config_args='-de -Dprefix=/usr [EMAIL PROTECTED]
[EMAIL PROTECTED]'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-pipe -fno-common -no-cpp-precomp
-fno-strict-aliasing',
optimize='-O3',
cppflags='-no-cpp-precomp -pipe -fno-common -no-cpp-precomp
-fno-strict-aliasing'
ccversion='', gccversion='3.1 20020420 (prerelease)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -flat_namespace'
libpth=/usr/lib
libs=-lm -lc
perllibs=-lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true,
libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -flat_namespace -bundle -undefined
suppress'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under darwin
Compiled at Oct 8 2002 03:11:32
%ENV:
PERL5LIB="/sw/lib/perl5:/sw/lib/perl5"
@INC:
/sw/lib/perl5/darwin
/sw/lib/perl5
/sw/lib/perl5/darwin
/sw/lib/perl5
/System/Library/Perl/darwin
/System/Library/Perl
/Library/Perl/darwin
/Library/Perl
/Library/Perl
/Network/Library/Perl/darwin
/Network/Library/Perl
/Network/Library/Perl