Shortly after getting SC7 to run on my PPC-based LinkStation (http://forums.slimdevices.com/showthread.php?t=39240), the perl Encode::Detect module was added to the mix (see http://forums.slimdevices.com/showthread.php?t=39524). Since then I haven't been able to build from the tarball because of various build errors.
When I try building Encode::Detect manually it fails. Here's what I'm getting at the tail end of running 'sudo perl -MCPAN -e 'install Encode::Detect' Any ideas? My perl is 5.8.8. Thanks. -cc -Isrc -I/usr/lib/perl/5.8/CORE -fPIC -x c++ -Iinclude -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/LangHebrewModel.o src/LangHebrewModel.cpp cc -Isrc -I/usr/lib/perl/5.8/CORE -fPIC -x c++ -Iinclude -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/LangCyrillicModel.o src/LangCyrillicModel.cpp cc -Isrc -I/usr/lib/perl/5.8/CORE -fPIC -x c++ -Iinclude -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/nsSBCharSetProber.o src/nsSBCharSetProber.cpp cc -Isrc -I/usr/lib/perl/5.8/CORE -fPIC -x c++ -Iinclude -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/LangThaiModel.o src/LangThaiModel.cpp Copying Detect.pm -> blib/lib/Encode/Detect.pm Copying Detector.pm -> blib/lib/Encode/Detect/Detector.pm Copying Detector.xs -> lib/Encode/Detect/Detector.xs lib/Encode/Detect/Detector.xs -> lib/Encode/Detect/Detector.c /mnt/usr/bin/perl -I/usr/lib/perl/5.8 -I/usr/share/perl/5.8 /usr/share/perl/5.8/ExtUtils/xsubpp -noprototypes -typemap /usr/share/perl/5.8/ExtUtils/typemap lib/Encode/Detect/Detector.xs cc -Isrc -I/usr/lib/perl/5.8/CORE -DXS_VERSION="1.00" -DVERSION="1.00" -fPIC -x c++ -Iinclude -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o lib/Encode/Detect/Detector.o lib/Encode/Detect/Detector.c In file included from Detector.xs:40: /usr/lib/perl/5.8/CORE/perl.h:2700: error: parse error before `__attribute__' /usr/lib/perl/5.8/CORE/perl.h:2710: error: parse error before `__attribute__' /usr/lib/perl/5.8/CORE/perl.h:2710: error: syntax error before `)' token In file included from /usr/lib/perl/5.8/CORE/iperlsys.h:51, from /usr/lib/perl/5.8/CORE/perl.h:2733, from Detector.xs:40: /usr/lib/perl/5.8/CORE/perlio.h:117: error: parse error before `__attribute__' /usr/lib/perl/5.8/CORE/perlio.h: In function `void PerlIO_define_layer(...)': /usr/lib/perl/5.8/CORE/perlio.h:118: error: parse error before `__attribute__' /usr/lib/perl/5.8/CORE/perlio.h: In function `PerlIO_funcs* PerlIO_find_layer(...)': /usr/lib/perl/5.8/CORE/perlio.h:121: error: parse error before `__attribute__' /usr/lib/perl/5.8/CORE/perlio.h: In function `PerlIOl** PerlIO_push(...)': /usr/lib/perl/5.8/CORE/perlio.h:123: error: parse error before `__attribute__' /usr/lib/perl/5.8/CORE/perlio.h: In function `void PerlIO_pop(...)': /usr/lib/perl/5.8/CORE/perlio.h:124: error: parse error before `__attribute__' /usr/lib/perl/5.8/CORE/perlio.h: In function `AV* PerlIO_get_layers(...)': /usr/lib/perl/5.8/CORE/perlio.h:125: error: parse error before `__attribute__' /usr/lib/perl/5.8/CORE/perlio.h: In function `void PerlIO_clone(...)': /usr/lib/perl/5.8/CORE/perlio.h:220: error: parse error before `__attribute__' /usr/lib/perl/5.8/CORE/perlio.h: In function `void PerlIO_init(...)': /usr/lib/perl/5.8/CORE/perlio.h:233: error: parse error before `__attribute__' /usr/lib/perl/5.8/CORE/perlio.h: In function `PerlIOl** PerlIO_openn(...)': /usr/lib/perl/5.8/CORE/perlio.h:351: error: parse error before `__attribute__' /usr/lib/perl/5.8/CORE/perlio.h: In function `PerlIOl** PerlIO_fdupopen(...)': /usr/lib/perl/5.8/CORE/perlio.h:360: error: parse error before `__attribute__' /usr/lib/perl/5.8/CORE/perlio.h: In function `int PerlIO_apply_layers(...)': /usr/lib/perl/5.8/CORE/perlio.h:364: error: parse error before `__attribute__' /usr/lib/perl/5.8/CORE/perlio.h: In function `int PerlIO_binmode(...)': /usr/lib/perl/5.8/CORE/perlio.h:371: error: parse error before `__attribute__' /usr/lib/perl/5.8/CORE/perlio.h: In function `void PerlIO_destruct(...)': /usr/lib/perl/5.8/CORE/perlio.h:376: error: parse error before `__attribute__' In file included from /usr/lib/perl/5.8/CORE/perl.h:2746, from Detector.xs:40: /usr/lib/perl/5.8/CORE/regexp.h: In function `void PerlIO_cleanup(...)': /usr/lib/perl/5.8/CORE/regexp.h:31: error: declaration of `struct regexp' in ` void PerlIO_cleanup(...)' which does not enclose `::' /usr/lib/perl/5.8/CORE/regexp.h:31: confused by earlier errors, bailing out error building lib/Encode/Detect/Detector.o from 'lib/Encode/Detect/Detector.c' at /usr/local/share/perl/5.8.8/ExtUtils/CBuilder/Base.pm line 108. make: *** [all] Error 2 /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 - -- aubuti ------------------------------------------------------------------------ aubuti's Profile: http://forums.slimdevices.com/member.php?userid=2074 View this thread: http://forums.slimdevices.com/showthread.php?t=39750 _______________________________________________ beta mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/beta
