Subject: | Components.xs: parse error before "Str255" |
Components.xs does not compile on my set-up. Here is the output from CPAN.pm and perl -V. I have the July 2002 Dev Tools on 10.2.2.
------
CPAN: Storable loaded ok
Going to read /usr/local/src/cpan/Metadata
Database was generated on Thu, 28 Nov 2002 23:23:45 GMT
Running install for module Mac::Carbon
Running make for C/CN/CNANDOR/Mac-Carbon-0.01.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for /usr/local/src/cpan/sources/authors/id/C/CN/CNANDOR/Mac-Carbon-0.01.tar.gz ok
Scanning cache /usr/local/src/cpan/build for sizes
Deleting from cache: /usr/local/src/cpan/build/MIME-tools-5.411 (10.1>10.0 MB)
Mac-Carbon-0.01
Mac-Carbon-0.01/Carbon.h
Mac-Carbon-0.01/Carbon.pm
Mac-Carbon-0.01/Components
Mac-Carbon-0.01/Components/Components.c
Mac-Carbon-0.01/Components/Components.pm
Mac-Carbon-0.01/Components/Components.xs
Mac-Carbon-0.01/Components/eg
Mac-Carbon-0.01/Components/eg/ListComponents.plx
Mac-Carbon-0.01/Components/Makefile.PL
Mac-Carbon-0.01/Components/t
Mac-Carbon-0.01/Components/t/Components.t
Mac-Carbon-0.01/Components/typemap
Mac-Carbon-0.01/Files
Mac-Carbon-0.01/Files/Files.c
Mac-Carbon-0.01/Files/Files.pm
Mac-Carbon-0.01/Files/Files.xs
Mac-Carbon-0.01/Files/Makefile.PL
Mac-Carbon-0.01/Files/t
Mac-Carbon-0.01/Files/t/Files.t
Mac-Carbon-0.01/Files/typemap
Mac-Carbon-0.01/Gestalt
Mac-Carbon-0.01/Gestalt/Gestalt.c
Mac-Carbon-0.01/Gestalt/Gestalt.pm
Mac-Carbon-0.01/Gestalt/Gestalt.xs
Mac-Carbon-0.01/Gestalt/Makefile.PL
Mac-Carbon-0.01/Gestalt/t
Mac-Carbon-0.01/Gestalt/t/Gestalt.t
Mac-Carbon-0.01/MacPerl
Mac-Carbon-0.01/MacPerl/MacPerl.c
Mac-Carbon-0.01/MacPerl/MacPerl.pm
Mac-Carbon-0.01/MacPerl/MacPerl.xs
Mac-Carbon-0.01/MacPerl/Makefile.PL
Mac-Carbon-0.01/MacPerl/OSA.c
Mac-Carbon-0.01/MacPerl/OSA.xs
Mac-Carbon-0.01/MacPerl/t
Mac-Carbon-0.01/MacPerl/t/MacPerl.t
Mac-Carbon-0.01/Makefile.PL
Mac-Carbon-0.01/MANIFEST
Mac-Carbon-0.01/MANIFEST.SKIP
Mac-Carbon-0.01/Memory
Mac-Carbon-0.01/Memory/Makefile.PL
Mac-Carbon-0.01/Memory/Memory.c
Mac-Carbon-0.01/Memory/Memory.pm
Mac-Carbon-0.01/Memory/Memory.xs
Mac-Carbon-0.01/Memory/t
Mac-Carbon-0.01/Memory/t/Memory.t
Mac-Carbon-0.01/MoreFiles
Mac-Carbon-0.01/MoreFiles/eg
Mac-Carbon-0.01/MoreFiles/eg/Application.plx
Mac-Carbon-0.01/MoreFiles/eg/Iterate.plx
Mac-Carbon-0.01/MoreFiles/Makefile.PL
Mac-Carbon-0.01/MoreFiles/MF.c
Mac-Carbon-0.01/MoreFiles/MF.xs
Mac-Carbon-0.01/MoreFiles/MoreFiles.pm
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/DirectoryCopy.c
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/DirectoryCopy.h
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/FileCopy.c
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/FileCopy.h
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/FSpCompat.c
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/FSpCompat.h
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/FullPath.c
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/FullPath.h
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/IterateDirectory.c
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/IterateDirectory.h
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/MoreDesktopMgr.c
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/MoreDesktopMgr.h
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/MoreFiles.c
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/MoreFiles.h
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/MoreFilesExtras.c
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/MoreFilesExtras.h
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/Optimization.h
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/OptimizationEnd.h
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/Search.c
Mac-Carbon-0.01/MoreFiles/MoreFilesSrc/Search.h
Mac-Carbon-0.01/MoreFiles/t
Mac-Carbon-0.01/MoreFiles/t/MoreFiles.t
Mac-Carbon-0.01/Notification
Mac-Carbon-0.01/Notification/Makefile.PL
Mac-Carbon-0.01/Notification/Notification.c
Mac-Carbon-0.01/Notification/Notification.pm
Mac-Carbon-0.01/Notification/Notification.xs
Mac-Carbon-0.01/Notification/t
Mac-Carbon-0.01/Notification/t/Notification.rsrc
Mac-Carbon-0.01/Notification/t/Notification.t
Mac-Carbon-0.01/Notification/typemap
Mac-Carbon-0.01/Processes
Mac-Carbon-0.01/Processes/eg
Mac-Carbon-0.01/Processes/eg/Processes.plx
Mac-Carbon-0.01/Processes/Makefile.PL
Mac-Carbon-0.01/Processes/Processes.c
Mac-Carbon-0.01/Processes/Processes.pm
Mac-Carbon-0.01/Processes/Processes.xs
Mac-Carbon-0.01/Processes/t
Mac-Carbon-0.01/Processes/t/Processes.t
Mac-Carbon-0.01/Processes/typemap
Mac-Carbon-0.01/QuickDraw
Mac-Carbon-0.01/QuickDraw/typemap
Mac-Carbon-0.01/README
Mac-Carbon-0.01/Resources
Mac-Carbon-0.01/Resources/Makefile.PL
Mac-Carbon-0.01/Resources/Resources.c
Mac-Carbon-0.01/Resources/Resources.pm
Mac-Carbon-0.01/Resources/Resources.xs
Mac-Carbon-0.01/Resources/t
Mac-Carbon-0.01/Resources/t/Resources.t
Mac-Carbon-0.01/Sound
Mac-Carbon-0.01/Sound/Makefile.PL
Mac-Carbon-0.01/Sound/Sound.c
Mac-Carbon-0.01/Sound/Sound.pm
Mac-Carbon-0.01/Sound/Sound.xs
Mac-Carbon-0.01/Sound/t
Mac-Carbon-0.01/Sound/t/Scream.rsrc
Mac-Carbon-0.01/Sound/t/Sound.t
Mac-Carbon-0.01/Sound/typemap
Mac-Carbon-0.01/Speech
Mac-Carbon-0.01/Speech/eg
Mac-Carbon-0.01/Speech/eg/Cellist.plx
Mac-Carbon-0.01/Speech/eg/DumpVoices.plx
Mac-Carbon-0.01/Speech/eg/JukeBox.plx
Mac-Carbon-0.01/Speech/eg/Phonemes.plx
Mac-Carbon-0.01/Speech/Makefile.PL
Mac-Carbon-0.01/Speech/Speech.c
Mac-Carbon-0.01/Speech/Speech.pm
Mac-Carbon-0.01/Speech/Speech.xs
Mac-Carbon-0.01/Speech/t
Mac-Carbon-0.01/Speech/t/Speech.t
Mac-Carbon-0.01/Speech/typemap
Mac-Carbon-0.01/t
Mac-Carbon-0.01/t/Carbon.t
Mac-Carbon-0.01/typemap
Mac-Carbon-0.01/Types
Mac-Carbon-0.01/Types/Makefile.PL
Mac-Carbon-0.01/Types/t
Mac-Carbon-0.01/Types/t/Types.t
Mac-Carbon-0.01/Types/Types.c
Mac-Carbon-0.01/Types/Types.pm
Mac-Carbon-0.01/Types/Types.xs
Mac-Carbon-0.01/xsubpps
Mac-Carbon-0.01/xsubpps/xsubpp-5.6.1
Mac-Carbon-0.01/xsubpps/xsubpp-5.8.0
Removing previously used /usr/local/src/cpan/build/Mac-Carbon-0.01
CPAN.pm: Going to build C/CN/CNANDOR/Mac-Carbon-0.01.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Mac::Components
Writing Makefile for Mac::Files
Writing Makefile for Mac::Gestalt
Writing Makefile for MacPerl
Writing Makefile for Mac::Memory
Writing Makefile for Mac::MoreFiles
Writing Makefile for Mac::Notification
Writing Makefile for Mac::Processes
Writing Makefile for Mac::Resources
Writing Makefile for Mac::Sound
Writing Makefile for Mac::Speech
Writing Makefile for Mac::Types
Writing Makefile for Mac::Carbon
cp Carbon.pm blib/lib/Mac/Carbon.pm
cp Components.pm ../blib/lib/Mac/Components.pm
/usr/bin/perl /usr/local/lib/perl5/ExtUtils/xsubpp -noprototypes -typemap /usr/local/lib/perl5/ExtUtils/typemap -typemap typemap Components.xs > Components.xsc && mv Components.xsc Components.c
cc -c -I/Developer/Headers/FlatCarbon/ -pipe -fno-common -no-cpp-precomp -fno-strict-aliasing -O3 -DVERSION=\"1.01\" -DXS_VERSION=\"1.01\" "-I/usr/local/lib/perl5/darwin/CORE" Components.c
Components.xs: In function `XS_Mac__Components_GetComponentInfo':
Components.xs:178: parse error before "Str255"
Components.xs:180: parse error before "Str255"
Components.xs:189: parse error before "Str255"
Components.xs:191: parse error before "Str255"
Components.xs:194: parse error before "Str255"
Components.xs:196: parse error before "Str255"
make[1]: *** [Components.o] Error 1
make: *** [subdirs] 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
--------------
five_brian[523]$ perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=darwin, osvers=6.2, archname=darwin
uname='darwin five.home.staceytappan.com 6.2 darwin kernel version 6.2: tue nov 5 22:00:03 pst 2002; root:xnuxnu-344.12.2.obj~1release_ppc power macintosh powerpc '
config_args='-Dfirstmakefile=GNUmakefile'
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 Nov 26 2002 01:52:27
@INC:
/usr/local/lib/perl5/darwin
/usr/local/lib/perl5
/usr/local/lib/perl5/darwin
/usr/local/lib/perl5
/usr/local/lib/perl5
/usr/local/lib/perl5/darwin
/usr/local/lib/perl5
/usr/local/lib/perl5
.