[MacPorts] #36667: HandBrake: Undefined symbols _libiconv_close _libiconv _libiconv_open

MacPorts noreply at macports.org
Sun Dec 30 13:05:47 PST 2012


#36667: HandBrake: Undefined symbols _libiconv_close _libiconv _libiconv_open
-------------------------+--------------------------------
  Reporter:  aruminat@…  |      Owner:  macports-tickets@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.1.2
Resolution:              |   Keywords:
      Port:  HandBrake   |
-------------------------+--------------------------------

Comment (by chantivlad@…):

 Replying to [comment:12 ryandesign@…]:
 > And you updated the command line tools and now have a newer version of
 clang? And you cleaned the HandBrake port before trying again?

 I did clean the HandBrake port before trying again but had not updated the
 command line tools.

 So after installing the XCode command line tools (OS X Lion) for XCode -
 November 2012 (xcode452cltools10_76938212a.dmg):

 {{{
 $ clang --version
 Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM
 3.1svn)
 Target: x86_64-apple-darwin11.4.2
 Thread model: posix
 $ sudo port clean handbrake
 $ sudo port -d install handbrake
 [...]
 make[5]: Nothing to be done for `all-am'.
 Making all in example
 /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2
 -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -I./include    -arch
 x86_64 -mmacosx-version-min=10.7 -arch x86_64  -arch x86_64 -mmacosx-
 version-min=10.7 -arch x86_64 -pedantic -W -Wformat -Wunused -Wimplicit
 -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts
 -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align
 -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-
 prototypes -Wnested-externs -Winline -Wredundant-decls -c gjobread.c
 cc1: warning: -Wuninitialized is not supported without -O
 /bin/sh ../libtool --tag=CC   --mode=link
 /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc-4.2  -arch
 x86_64 -mmacosx-version-min=10.7 -arch x86_64 -pedantic -W -Wformat
 -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat
 -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith
 -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes
 -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls  -arch
 x86_64 -mmacosx-version-min=10.7 -arch x86_64 -o gjobread gjobread.o
 ../libxml2.la  -lz -liconv -lm
 libtool: link: /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-
 gcc-4.2 -arch x86_64 -mmacosx-version-min=10.7 -arch x86_64 -pedantic -W
 -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs
 -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow
 -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-
 prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-
 decls -arch x86_64 -mmacosx-version-min=10.7 -arch x86_64 -o gjobread
 gjobread.o  ../.libs/libxml2.a -lz -liconv -lm
 Making all in xstc
 make[4]: Nothing to be done for `all'.
 touch contrib/libxml2/.stamp.build
 Showing first 200 notices only


 ** BUILD FAILED **


 The following build commands failed:
         ExternalBuildToolExecution external
 (1 failure)
 make: *** [macosx.build] Error 65
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.8/build'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_HandBrake/HandBrake/work/HandBrake-0.9.8/build"
 && /usr/bin/make -j4 -w
 Exit code: 2
 Error: org.macports.build for port HandBrake returned: command execution
 failed
 DEBUG: Error code: CHILDSTATUS 40368 2
 DEBUG: Backtrace: command execution failed
     while executing
 "system -nice 0 $fullcmdstring"
     ("eval" body line 1)
     invoked from within
 "eval system $notty $nice \$fullcmdstring"
     invoked from within
 "command_exec build"
 "command_exec build"
     (procedure "portbuild::build_main" line 8)
     invoked from within
 "$procedure $targetname"
 Warning: targets not executed for HandBrake: org.macports.activate
 org.macports.build org.macports.destroot org.macports.install
 Please see the log file for port HandBrake for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_HandBrake/HandBrake/main.log
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 Error: Processing of port handbrake failed
 }}}

 So it seems the linking error with libiconv has disapeeared indeed. I'll
 have to investigate why it is still failing. Thanks for the help.

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


More information about the macports-tickets mailing list