Re: libiconv build failure
"Mark Duling" <[email protected]> Fri, 01 Sep 2006 14:20:11 -0700
| Newsgroups | gmane.os.opendarwin.darwinports |
|---|---|
| Message-ID | <[email protected]> |
I can't say what the problem is but in case it helps remove doubt about the portfile, I just built a clean install of MacPorts and a bunch of ports including libiconv with no problems. You should always download th= e latest version on XCode Tools (now at 2.4) from Apple's developer site if you have an older one. Older versions can cause a few ports to fail to build. Mark Nicholas Riley <[email protected]> writes: >I'm trying to upgrade my installation (Mac OS X 10.4.7, MacPorts 1.320) >and libiconv is experiencing link errors: > >---> Staging libiconv into destroot >Error: Target com.apple.destroot returned: shell command "cd >"/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.r= sync.darwinports.org_dpupdate_dports_textproc_libiconv/work/libiconv-1.10= " >&& make install >DESTDIR=3D/opt/local/var/db/dports/build/_opt_local_var_db_dports_source= s_rsync.rsync.darwinports.org_dpupdate_dports_textproc_libiconv/work/dest= root" >returned error 2 >Command output: libtool: install: warning: remember to run `libtool >--finish /opt/local/lib' >if test -n ""; then /usr/bin/install -c -m 644=20 >/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs= ync.darwinports.org_dpupdate_dports_textproc_libiconv/work/destroot/opt/l= ocal/lib/.new >&& mv >/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs= ync.darwinports.org_dpupdate_dports_textproc_libiconv/work/destroot/opt/l= ocal/lib/.new >/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs= ync.darwinports.org_dpupdate_dports_textproc_libiconv/work/destroot/opt/l= ocal/lib/ >; fi >cd srclib && make install prefix=3D'/opt/local' exec_prefix=3D'/opt/loca= l' >libdir=3D'/opt/local/lib' >make[2]: Nothing to be done for `am--refresh'. >make install-am >make[3]: Nothing to be done for `am--refresh'. >make[4]: Nothing to be done for `am--refresh'. >make[3]: Nothing to be done for `install-exec-am'. >make[3]: Nothing to be done for `install-data-am'. >cd src && make install prefix=3D'/opt/local' exec_prefix=3D'/opt/local' >libdir=3D'/opt/local/lib' >test `ls -ld . | sed -e 's/^d\(.........\).*/\1/'` =3D rwxrwxrwx || chmo= d >777 . >if [ ! -d >/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs= ync.darwinports.org_dpupdate_dports_textproc_libiconv/work/destroot/opt/l= ocal >] ; then /bin/sh ../build-aux/mkinstalldirs >/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs= ync.darwinports.org_dpupdate_dports_textproc_libiconv/work/destroot/opt/l= ocal >; fi >if [ ! -d >/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs= ync.darwinports.org_dpupdate_dports_textproc_libiconv/work/destroot/opt/l= ocal >] ; then /bin/sh ../build-aux/mkinstalldirs >/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs= ync.darwinports.org_dpupdate_dports_textproc_libiconv/work/destroot/opt/l= ocal >; fi >if [ ! -d >/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs= ync.darwinports.org_dpupdate_dports_textproc_libiconv/work/destroot/opt/l= ocal/bin >] ; then /bin/sh ../build-aux/mkinstalldirs >/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs= ync.darwinports.org_dpupdate_dports_textproc_libiconv/work/destroot/opt/l= ocal/bin >; fi >case "darwin8.7.0" in \ > hpux*) gcc `if test -n ''; then /opt/local/bin; fi` iconv.o >../srclib/libicrt.a >-L/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.= rsync.darwinports.org_dpupdate_dports_textproc_libiconv/work/destroot/opt= /local/lib >-liconv -L/opt/local/lib -lintl -liconv -lc `if test -n >'/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.r= sync.darwinports.org_dpupdate_dports_textproc_libiconv/work/destroot'; >then echo " -Wl,+b -Wl,/opt/local/lib"; fi` -o iconv;; \ > *) /bin/sh ../libtool --mode=3Dlink gcc `if test -n ''; then=20 >/opt/local/bin; fi` iconv.o ../srclib/libicrt.a >/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rs= ync.darwinports.org_dpupdate_dports_textproc_libiconv/work/destroot/opt/l= ocal/lib/libiconv.la >-L/opt/local/lib -lintl -L/opt/local/lib -liconv -lc -R/opt/local/lib -o >iconv;; \ >esac >gcc iconv.o -o iconv ../srclib/libicrt.a -L/opt/local/lib >/opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib -lc >/usr/bin/ld: warning multiple definitions of symbol _locale_charset >/opt/local/lib/libiconv.dylib(localcharset.o) definition of >_locale_charset >/opt/local/lib/libintl.dylib(localcharset.o) definition of _locale_chars= et >/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding may >result in errors or different symbols being used >/usr/bin/ld: warning prebinding disabled because of undefined symbols >/usr/bin/ld: Undefined symbols: >_iconv_canonicalize >symbol _locale_charset used from dynamic library >/opt/local/lib/libiconv.dylib(localcharset.o) not from earlier dynamic >library /opt/local/lib/libintl.3.dylib(localcharset.o) >collect2: ld returned 1 exit status >make[1]: *** [install] Error 1 >make: *** [install] Error 2 > >Error: The following dependencies failed to build: gettext libiconv >libungif libuninameslist >Error: Status 1 encountered during processing. > >Any idea how I can fix this problem, or at least get past this build >failure (the installed version of libiconv is 1.10, which I don't mind >continuing to use)?