Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / April 2007



Tip: Looking for answers? Try searching our database.

Mac::Carbon issues

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wren Ng Thornton - 23 Mar 2007 11:25 GMT
So I seem to have mucked up my perl. I was cpanning
around updating things and Mac::Carbon failed to
install. But in doing so, it looks like it uninstalled
the previous version that was in there, so now I can't
start cpan up since it requires Mac::Files for
File::HomeDir::Darwin. I then tried getting the
Mac::Carbon tarball to install from, but it spews a
bunch of errors too (see bottom). I remember seeing
these sorts of errors in the past, but I don't recall
how they got fixed.

Thoughts?

Live well,
~wren

OS X: 10.4.9 Intel
GCC:  4.0.1 (Apple Computer, Inc. build 5341)
Perl:  5.8.8 built for darwin-2level

[0] motoko@xenobia:~/Mac-Carbon-0.77 $ perl -V
Summary of my perl5 (revision 5 version 8 subversion
8) configuration:
 Platform:
   osname=darwin, osvers=8.7.1,
archname=darwin-2level
   uname='darwin fuchikoma.local 8.7.1 darwin kernel
version 8.7.1: wed jun 7 16:19:56 pdt 2006;
root:xnu-792.9.72.obj~2release_i386 i386 i386 '
   config_args='-Accflags=-arch i686 -arch ppc
-nostdinc
-B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc    
-B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc
-isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include  

-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks
-Aldflags=-arch i686 -arch ppc
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk
-Acf_email=wren@cpan.org -Aperladmin=wren@cpan.org
-des'
   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 ='-fno-common -DPERL_DARWIN
-no-cpp-precomp -arch i686 -arch ppc -nostdinc
-B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc
-B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc
-isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include
-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks
-fno-strict-aliasing -pipe
-Wdeclaration-after-statement',
   optimize='-O3',
   cppflags='-no-cpp-precomp -fno-common
-DPERL_DARWIN -no-cpp-precomp -arch i686 -nostdinc
-B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc
-B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc
-isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include
-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks
-fno-strict-aliasing -pipe
-Wdeclaration-after-statement'
   ccversion='', gccversion='4.0.1 (Apple Computer,
Inc. build 5341)', gccosandvers=''
   intsize=4, longsize=4, ptrsize=4, doublesize=8,
byteorder=1234
   d_longlong=define, longlongsize=8,
d_longdbl=define, longdblsize=16
   ivtype='long', ivsize=4, nvtype='double',
nvsize=8, Off_t='off_t', lseeksize=8
   alignbytes=8, prototype=define
 Linker and Libraries:
   ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags
=' -arch i686 -arch ppc
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk'
   libpth=/usr/lib
   libs=-ldbm -ldl -lm -lc
   perllibs=-ldl -lm -lc
   libc=/usr/lib/libc.dylib, so=dylib,
useshrplib=false, libperl=libperl.a
   gnulibc_version=''
 Dynamic Linking:
   dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef,
ccdlflags=' '
   cccdlflags=' ', lddlflags=' -bundle -undefined
dynamic_lookup'

Characteristics of this binary (from libperl):
 Compile-time options: PERL_MALLOC_WRAP
USE_LARGE_FILES USE_PERLIO
 Built under darwin
 Compiled at Jul  2 2006 17:33:59
 @INC:
   /usr/local/lib/perl5/5.8.8/darwin-2level
   /usr/local/lib/perl5/5.8.8
   /usr/local/lib/perl5/site_perl/5.8.8/darwin-2level
   /usr/local/lib/perl5/site_perl/5.8.8
   /usr/local/lib/perl5/site_perl
   .
[0] motoko@xenobia:~/Mac-Carbon-0.77 $ make
cc -c  -I/Developer/Headers/FlatCarbon/ -fno-common
-DPERL_DARWIN -no-cpp-precomp -arch i686 -arch ppc
-nostdinc
-B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc
-B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc
-isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include
-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks
-fno-strict-aliasing -pipe
-Wdeclaration-after-statement -fpascal-strings -O3  
-DVERSION=\"1.32\" -DXS_VERSION=\"1.32\"
"-I/usr/local/lib/perl5/5.8.8/darwin-2level/CORE"  
AppleEvents.c
In file included from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:29,
                from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32,
                from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125,
                from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
                from
/Developer/Headers/FlatCarbon/Events.h:1,
                from ../Carbon.h:67,
                from AppleEvents.xs:63:
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin8/4.0.1/include/xmmintrin.h:35:3:
error: #error "SSE instruction set not enabled"
In file included from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32,
                from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125,
                from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20,
                from
/Developer/Headers/FlatCarbon/Events.h:1,
                from ../Carbon.h:67,
                from AppleEvents.xs:63:
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:254:
error: parse error before '__m128'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:254:
warning: no semicolon at end of struct or union
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:255:
warning: data definition has no type or storage class
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:256:
error: parse error before 'sd'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:256:
warning: data definition has no type or storage class
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:258:
error: parse error before '}' token
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:261:
error: array type has incomplete element type
In file included from AppleEvents.xs:63:
../Carbon.h: In function 'ReadHex':
../Carbon.h:116: warning: ISO C90 forbids mixed
declarations and code
In file included from AppleEvents.xs:63:
../Carbon.h: In function 'ReadHex':
../Carbon.h:116: warning: ISO C90 forbids mixed
declarations and code
../Carbon.h: In function 'SecondsMac2Unix':
../Carbon.h:167: warning: 'ConvertLocalTimeToUTC' is
deprecated (declared at
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/UTCUtils.h:82)
../Carbon.h: In function 'SecondsUnix2Mac':
../Carbon.h:179: warning: 'ConvertUTCToLocalTime' is
deprecated (declared at
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/UTCUtils.h:103)
../Carbon.h: In function 'GUSIFSpUp':
../Carbon.h:207: warning: 'FSMakeFSSpec' is deprecated
(declared at
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:8967)
../Carbon.h: In function 'GUSIFSpDown':
../Carbon.h:229: warning: 'PBGetCatInfoSync' is
deprecated (declared at
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:7595)
../Carbon.h:232: warning: pointer targets in passing
argument 1 of 'MacPerl_CopyC2P' differ in signedness
../Carbon.h:233: warning: 'FSMakeFSSpec' is deprecated
(declared at
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:8967)
../Carbon.h: In function 'GUSIFSpDown':
../Carbon.h:232: warning: pointer targets in passing
argument 1 of 'MacPerl_CopyC2P' differ in signedness
../Carbon.h: In function 'GUSIFSp2FullPath':
../Carbon.h:283: warning: pointer targets in passing
argument 2 of 'strncpy' differ in signedness
../Carbon.h:290: warning: pointer targets in
assignment differ in signedness
../Carbon.h:292: warning: pointer targets in passing
argument 1 of 'sprintf' differ in signedness
../Carbon.h: In function 'GUSIFSp2FullPath':
../Carbon.h:283: warning: pointer targets in passing
argument 2 of 'strncpy' differ in signedness
../Carbon.h:290: warning: pointer targets in
assignment differ in signedness
../Carbon.h:292: warning: pointer targets in passing
argument 1 of 'sprintf' differ in signedness
../Carbon.h: In function 'GUSIPath2FSp':
../Carbon.h:324: warning: 'FSMakeFSSpec' is deprecated
(declared at
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:8967)
../Carbon.h:372: warning: pointer targets in passing
argument 2 of 'GUSIFSpDown' differ in signedness
../Carbon.h: In function 'GUSIPath2FSp':
../Carbon.h:372: warning: pointer targets in passing
argument 2 of 'GUSIFSpDown' differ in signedness
../Carbon.h: In function 'GUSIFS2FullPath':
../Carbon.h:409: warning: pointer targets in return
differ in signedness
../Carbon.h: In function 'fsetfileinfo':
../Carbon.h:425: warning: 'FSpGetFInfo' is deprecated
(declared at
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:9078)
../Carbon.h:430: warning: 'FSpSetFInfo' is deprecated
(declared at
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:9096)
../Carbon.h: In function 'GUSIFS2FullPath':
../Carbon.h:409: warning: pointer targets in return
differ in signedness
../Carbon.h: In function 'fgetfileinfo':
../Carbon.h:443: warning: 'FSpGetFInfo' is deprecated
(declared at
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:9078)
lipo: can't open input file: /var/tmp//ccTbKW8U.out
(No such file or directory)
make[1]: *** [AppleEvents.o] Error 1
make: *** [subdirs] Error 2
[0] motoko@xenobia:~/Mac-Carbon-0.77 $


____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
Chris Nandor - 29 Mar 2007 00:57 GMT
> So I seem to have mucked up my perl. I was cpanning
> around updating things and Mac::Carbon failed to
[quoted text clipped - 6 lines]
> these sorts of errors in the past, but I don't recall
> how they got fixed.

What "cpan" requires File::HomeDir::Darwin?  CPAN.pm, or some script ... ?

As to the build problem, I think it is in here:

>   Platform:
>     osname=darwin, osvers=8.7.1,
[quoted text clipped - 3 lines]
> root:xnu-792.9.72.obj~2release_i386 i386 i386 '
>     config_args='-Accflags=-arch i686 -arch ppc

You have -arch i686 -arch ppc, which makes it a universal build, as I
understand it, and when we last ran into this problem, we figured out to add
-msse2.  You wrote:

# In order to fix the makefiles for the local perl I had
# to add -msse2 to CCCDLFLAGS, CCDLFLAGS, and CCFLAGS on
# all the makefiles since I couldn't get my
# modifications of Makefile.PL to stick. After
# modifications the first two of those flags only had
# -msse2, and CCFLAGS was:
#
# -msse2 -fno-common -DPERL_DARWIN -no-cpp-precomp -arch
# i686 -arch ppc -nostdinc
# -B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc
# -B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc
# -isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include
# -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks
# -fno-strict-aliasing -pipe
# -Wdeclaration-after-statement

Signature

Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Technology Group       pudge@ostg.com     http://ostg.com/

Sherm Pendley - 09 Apr 2007 21:12 GMT
> What "cpan" requires File::HomeDir::Darwin?  CPAN.pm, or some  
> script ... ?

The latest CPAN.pm requires File::HomeDir, which in turn requires  
File::HomeDir::Darwin. I'm not certain when that change happened.

> You have -arch i686 -arch ppc, which makes it a universal build, as I
> understand it, and when we last ran into this problem, we figured  
> out to add
> -msse2.

Is that also a requirement for -arch i386?

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Chris Nandor - 09 Apr 2007 21:44 GMT
>> What "cpan" requires File::HomeDir::Darwin?  CPAN.pm, or some
>> script ... ?
>
>The latest CPAN.pm requires File::HomeDir, which in turn requires
>File::HomeDir::Darwin. I'm not certain when that change happened.

Odd.

>> You have -arch i686 -arch ppc, which makes it a universal build, as I
>> understand it, and when we last ran into this problem, we figured
>> out to add
>> -msse2.
>
>Is that also a requirement for -arch i386?

As I recall, it seems to be only an issue for universal builds.

Signature

Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Technology Group       pudge@ostg.com     http://ostg.com/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.