Opened 12 years ago

Closed 12 years ago

#38393 closed defect (fixed)

couchdb fails during start after Xcode 4.6.1

Reported by: public+macports@… Owned by: jeff@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: couchdb

Description (last modified by larryv (Lawrence Velázquez))

After upgrading to Xcode 4.6.1 Couchdb no longer starts. The error was:

dyld: Symbol not found: __cg_png_create_info_struct
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /opt/local/lib/libPng.dylib

As a temporal solution I modified the installed launchctl file removing the DYLD_LIBRARY_PATH section

<key>DYLD_LIBRARY_PATH</key>
<string>/opt/local/lib:$DYLD_LIBRARY_PATH</string>

After removing that line, the ImageIO framework seems to load just find and CouchDB server starts

Attachments (1)

couchdb.38393.1.patch (1.3 KB) - added by jeff@… 12 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 12 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Owner: changed from macports-tickets@… to jeff@…
Port: couchdb added

Thanks for the ticket. In the future, please Cc relevant port maintainers and use WikiFormatting in your ticket descriptions.

comment:2 Changed 12 years ago by neverpanic (Clemens Lang)

One of the many places where using DYLD_LIBRARY_PATH is a bad idea. It should probably just be removed completely.

comment:3 Changed 12 years ago by jeff@…

Regression of #22102, removed in #37632 as included comment suggested it was no longer needed and appeared to build fine without it. Obviously wrong about that. Patch is forthcoming.

Changed 12 years ago by jeff@…

Attachment: couchdb.38393.1.patch added

comment:4 Changed 12 years ago by jeff@…

Patchfile attached.

comment:5 Changed 12 years ago by larryv (Lawrence Velázquez)

Better to do this with patches. I’ve committed a fix in r104103; let me know if it works.

comment:6 Changed 12 years ago by jeff@…

I think this can be closed at this point. Francisco, please add a comment to reopen if you run into this issue again.

comment:7 Changed 12 years ago by larryv (Lawrence Velázquez)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.