Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#19130 closed defect (fixed)

p5-macosx-file 0.71_1 fails to build on Tiger

Reported by: dbevans (David B. Evans) Owned by: ghosthound
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: tiger Cc:
Port: p5-macosx-file

Description

10.4.11 ppc, XCode 2.5

Upgrading from p5-macosx-file 0.71_0 to p5-macosx-file 0.71_1 fails as follows

--->  Building p5-macosx-file
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_macports_trunk_dports_perl_p5-macosx-file/work/MacOSX-File-0.71" && make all " returned error 2
Command output: chmod 755 ../blib/arch/auto/MacOSX/File/Catalog/Catalog.bundle
cp Catalog.bs ../blib/arch/auto/MacOSX/File/Catalog/Catalog.bs
chmod 644 ../blib/arch/auto/MacOSX/File/Catalog/Catalog.bs
Manifying ../blib/man3/MacOSX::File::Catalog.3pm
cp Copy.pm ../blib/lib/MacOSX/File/Copy.pm
/opt/local/bin/perl /Volumes/wdc-320/opt/local/lib/perl5/vendor_perl/5.8.8/ExtUtils/xsubpp  -typemap /opt/local/lib/perl5/5.8.9/ExtUtils/typemap  Copy.xs > Copy.xsc && mv Copy.xsc Copy.c
/usr/bin/gcc-4.0 -c  -I../ -I/Developer/Headers/FlatCarbon -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3   -DVERSION=\"0.70\" -DXS_VERSION=\"0.70\"  "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE"   Copy.c
In file included from Copy.xs:12:
../common/util.c: In function 'dirname':
../common/util.c:57: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness
../common/util.c:60: warning: pointer targets in return differ in signedness
../common/util.c: In function 'basename':
../common/util.c:73: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness
../common/util.c:75: warning: pointer targets in return differ in signedness
../common/util.c: In function 'str2pstr':
../common/util.c:80: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
../common/util.c:81: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness
../common/util.c:81: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness
In file included from Copy.xs:13:
filecopy.c: In function 'newfile':
filecopy.c:63: warning: pointer targets in passing argument 1 of 'FSPathMakeRef' differ in signedness
filecopy.c:66: warning: pointer targets in passing argument 1 of 'Utf8toUni' differ in signedness
filecopy.c:77: warning: pointer targets in passing argument 1 of 'FSPathMakeRef' differ in signedness
filecopy.c: In function 'filecopy':
filecopy.c:184: error: 'kPOSIXErrorBase' undeclared (first use in this function)
filecopy.c:184: error: (Each undeclared identifier is reported only once
filecopy.c:184: error: for each function it appears in.)
filecopy.c:193: error: 'kPOSIXErrorERANGE' undeclared (first use in this function)
make[1]: *** [Copy.o] Error 1
make: *** [subdirs] Error 2

kPOSIXErrorBase, kPOSIXErrorERANGE are symbols that were first introduced in 10.5, not available in 10.4, 10.3.

p5-macosx-file 0.71_0 builds correctly on 10.4.

See 10.5 Symbol Changes

Attachments (1)

patch-Copy-filecopy.c.diff (2.9 KB) - added by ghosthound 15 years ago.
test patch for p5-macosx-file for Tiger

Download all attachments as: .zip

Change History (6)

comment:1 Changed 15 years ago by ghosthound

Status: newassigned

Changed 15 years ago by ghosthound

Attachment: patch-Copy-filecopy.c.diff added

test patch for p5-macosx-file for Tiger

comment:2 Changed 15 years ago by ghosthound

Can you please test with the attached patch-Copy-filecopy.c.diff (replace the file of the same name in your ports tree) - it works on Leopard, I don't have immediate access to a Tiger system to test.

comment:3 Changed 15 years ago by dbevans (David B. Evans)

this builds without error on Tiger.

comment:4 Changed 15 years ago by ghosthound

Resolution: fixed
Status: assignedclosed

Excellent, thanks for testing. Fix committed in r49288.

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.