Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#13575 closed defect (fixed)

dcraw 8.81_0 won't build universal

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: takanori@…
Port: dcraw

Description

dcraw won't build universal. Even though I have all its dependencies installed universal, I get this:

$ sudo port install dcraw +universal
--->  Fetching dcraw
--->  Verifying checksum(s) for dcraw
--->  Extracting dcraw
--->  Configuring dcraw
--->  Building dcraw with target all
Error: Target org.macports.build returned: shell command "cd /opt/local/var/macports/build/_Users_rschmidt_macports_dports_graphics_dcraw/work/dcraw && cc -o dcraw -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc dcraw.c -ljpeg -llcms -lintl -I/opt/local/include -L/opt/local/lib -DLOCALEDIR=\"/opt/local/share/locale/\"" returned error 1
Command output: /usr/bin/ld: for architecture i386
/usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libiconv.2.dylib referenced from: /opt/local/lib/libintl.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/bin/ld: Undefined symbols:
_libiconv referenced from libintl expected to be defined in /opt/local/lib/libiconv.2.dylib
_libiconv_open referenced from libintl expected to be defined in /opt/local/lib/libiconv.2.dylib
_libiconv_set_relocation_prefix referenced from libintl expected to be defined in /opt/local/lib/libiconv.2.dylib
collect2: ld returned 1 exit status
/usr/bin/ld: for architecture ppc
/usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libiconv.2.dylib referenced from: /opt/local/lib/libintl.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/bin/ld: Undefined symbols:
_libiconv referenced from libintl expected to be defined in /opt/local/lib/libiconv.2.dylib
_libiconv_open referenced from libintl expected to be defined in /opt/local/lib/libiconv.2.dylib
_libiconv_set_relocation_prefix referenced from libintl expected to be defined in /opt/local/lib/libiconv.2.dylib
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cc3O3Lma.out (No such file or directory)

Error: Status 1 encountered during processing.
$

What's curious to me is that changes were made to the dcraw port in r26250 apparently to add universal support. But I don't see how that would have been possible, since dcraw depends on jpeg, and jpeg hasn't been able to build universal until r32007.

Change History (5)

comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Fixed in r39641. The fix was surprisingly simple. I'll have to check if a similar change fixes the several other occurrences of "can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/..." that we've seen.

comment:3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

The same fix did help for recode and wget.

comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Port: dcraw added

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.