MacPorts Install Error: "The following dependencies failed to build"
Vik Rubenfeld
vikr at mindspring.com
Sat Aug 11 13:48:07 PDT 2007
Hi,
I have a newbie question. I am installing MacPorts, and I got error
messages saying "The following dependencies failed to build".
How can I correct this? I'm attaching the full output from MacPorts.
Thanks very much in advance.
Best,
-Vik
> [Viks-G4:/opt/local/bin] viksg4% sudo ./port install php5 +mysql
> ---> Staging libiconv into destroot
> Error: Target org.macports.destroot returned: shell command " cd "/
opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/libiconv-1.11" && make install DESTDIR=/opt/local/var/
macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot " returned error 2
> Command output: /usr/bin/install -c -m 644 .libs/libiconv.a /opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot/opt/local/lib/libiconv.a
> chmod 644 /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot/opt/local/lib/libiconv.a
> ranlib /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot/opt/local/lib/libiconv.a
> libtool: install: warning: remember to run `libtool --finish /opt/
local/lib'
> if test -n ""; then /usr/bin/install -c -m 644 /opt/local/var/
macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot/opt/local/lib/.new && mv /opt/local/var/
macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot/opt/local/lib/.new /opt/local/var/macports/
build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot/opt/local/lib/ ; fi
> cd srclib && make install prefix='/opt/local' exec_prefix='/opt/
local' libdir='/opt/local/lib'
> make install-am
> 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='/opt/local' exec_prefix='/opt/
local' libdir='/opt/local/lib'
> test `ls -ld . | sed -e 's/^d\(.........\).*/\1/'` = rwxrwxrwx ||
chmod 777 .
> if [ ! -d /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot/opt/local ] ; then /bin/sh ../build-aux/
mkinstalldirs /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot/opt/local ; fi
> if [ ! -d /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot/opt/local ] ; then /bin/sh ../build-aux/
mkinstalldirs /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot/opt/local ; fi
> if [ ! -d /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot/opt/local/bin ] ; then /bin/sh ../build-aux/
mkinstalldirs /opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot/opt/local/bin ; fi
> case "darwin8.10.0" in \
> hpux*) gcc -L/opt/local/lib `if test -n ''; then /opt/local/
bin; fi` iconv.o ../srclib/libicrt.a -L/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot/opt/local/lib -liconv -lintl -liconv -Wl,-
framework -Wl,CoreFoundation `if test -n '/opt/local/var/macports/
build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot'; then echo " -Wl,+b -Wl,/opt/local/lib";
fi` -o iconv;; \
> *) /bin/sh ../libtool --mode=link gcc -L/opt/local/lib `if test -
n ''; then /opt/local/bin; fi` iconv.o ../srclib/libicrt.a /opt/
local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro
c_libiconv/work/destroot/opt/local/lib/libiconv.la -L/opt/local/lib -
lintl -L/opt/local/lib -liconv -R/opt/local/lib -Wl,-framework -
Wl,CoreFoundation -o iconv;; \
> esac
> gcc iconv.o -Wl,-framework -Wl,CoreFoundation -o iconv -L/opt/
local/lib ../srclib/libicrt.a /opt/local/lib/libintl.dylib /opt/local/
lib/libiconv.dylib
> /usr/bin/ld: warning prebinding disabled because dependent
library: /opt/local/lib/libintl.1.dylib is not prebound
> /usr/bin/ld: warning multiple definitions of symbol _locale_charset
> /opt/local/lib/libiconv.dylib(localcharset.lo) definition of
_locale_charset
> /opt/local/lib/libintl.dylib(localcharset.lo) definition of
_locale_charset
> /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: Undefined symbols:
> _iconv_canonicalize
> symbol _locale_charset used from dynamic library /opt/local/lib/
libiconv.dylib(localcharset.lo) not from earlier dynamic library /opt/
local/lib/libintl.1.dylib(localcharset.lo)
> collect2: ld returned 1 exit status
> make[1]: *** [install] Error 1
> make: *** [install] Error 2
>
> Error: The following dependencies failed to build: gettext
libiconv jpeg libmcrypt libpng libxml2 libxslt mhash openssl pcre tiff
> Error: Status 1 encountered during processing.
More information about the macports-users
mailing list