[MacPorts] #32348: Lion's libcups expects _iconv in libiconv.

MacPorts noreply at macports.org
Thu Mar 22 13:11:23 PDT 2012


#32348: Lion's libcups expects _iconv in libiconv.
------------------------------------------------------------+---------------
 Reporter:  k.polezhaiev@…                                  |       Owner:  macports-tickets@…                   
     Type:  request                                         |      Status:  new                                  
 Priority:  Normal                                          |   Milestone:                                       
Component:  ports                                           |     Version:  2.0.3                                
 Keywords:  libcups, CUPS, _iconv, Lion, DYLD_LIBRARY_PATH  |        Port:  libiconv                             
------------------------------------------------------------+---------------

Comment(by schmitt@…):

 I'm running into a simliar problem:  I installed some ports on my build
 machine.  I then build my application and `otool -L myApp.binary` shows
 dependencies on libraries installed at /opt/local/lib.  myApp.binary runs
 fine on the build machine.  In order to deploy my application to other
 machines, I copy the corresponding libraries to "myApplication/darwin-
 libs", write a wrapper script at "myApplication/launchMyApp.sh" which
 looks something like this:
 [[BR]]
 {{{
 #!/bin/env sh
 export DYLD_LIBRARY_PATH=/path/to/myApplication/darwin-libs
 /path/to/myApplication/myApp.binary.
 }}}
 [[BR]]
 Now when I run launchMyApp.sh on either the build or the user machine, I
 get an error:
 {{{
 dyld: Symbol not found: _iconv
   Referenced from: /usr/lib/libcups.2.dylib
   Expected in: /path/to/myApplication/darwin-libs/libiconv.2.dylib
  in /usr/lib/libcups.2.dylib
 }}}
 The confusing thing is that libcups.2.dylib isn't used anywhere in my
 application:  `otool -L` on myApp.binary and all the libraries in
 /opt/local/lib/* does not resolve any reference to
 /usr/lib/libcups.2.dylib.  Furthermore, I can "fix" the problem by either
 `cp /usr/lib/libcups.2.dylib  /path/to/myApplication/darwin-libs` or
 appending DYLD_LIBRARY_PATH+=/usr/lib.  Finally, I only have this problem
 when running the launchMyApp.sh on OSX 10.7 (Lion) machines.  The whole
 procedure seems to work fine on Leopard and Snow Leopard machines.
 [[BR]]
 Any idea of what's going on here?

-- 
Ticket URL: <https://trac.macports.org/ticket/32348#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list