#16148 closed defect (fixed)
gd2 2.0.35 Configure error: possibly undefined macro: AM_ICONV
Reported by: | bjorn@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | gd2 libtool automake autoconf configure | Cc: | |
Port: |
Description
host193:aclocal bjorn$ sudo port install php5 +apache2 +fastcgi +imap +mysql5 +sqlite +pear +oracle ---> Configuring gd2 Error: Target org.macports.configure returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_gd2/work/gd-2.0.35 && autoreconf" returned error 1 Command output: Makefile.am:18: Libtool library used but `LIBTOOL' is undefined Makefile.am:18: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' Makefile.am:18: to `configure.ac' and run `aclocal' and `autoconf' again. Makefile.am:18: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure Makefile.am:18: its definition is in aclocal's search path. autoreconf: automake failed with exit status: 1 Error: The following dependencies failed to build: gd2 libmcrypt libxml2 libtool libxslt mhash mysql5 oracle-instantclient tiff Error: Status 1 encountered during processing.
gd2 needs to depend on libtool. Please add this as a dependency so that it will build. gd2 needs automake and autoconf too, so please add those too or the configure process will go wrong:
---> Fetching gd2 ---> Attempting to fetch gd-2.0.35.tar.bz2 from http://www.libgd.org/releases/ ---> Verifying checksum(s) for gd2 ---> Extracting gd2 ---> Applying patches to gd2 ---> Configuring gd2 Error: Target org.macports.configure returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_gd2/work/gd-2.0.35 && autoreconf" returned error 1 Command output: configure.ac:46: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached ../../lib/autoconf/general.m4:1973: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:1993: AC_CACHE_CHECK is expanded from... aclocal.m4:626: AC_LIBTOOL_COMPILER_OPTION is expanded from... aclocal.m4:4814: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from... aclocal.m4:2662: _LT_AC_LANG_C_CONFIG is expanded from... aclocal.m4:2661: AC_LIBTOOL_LANG_C_CONFIG is expanded from... aclocal.m4:91: AC_LIBTOOL_SETUP is expanded from... aclocal.m4:71: _AC_PROG_LIBTOOL is expanded from... aclocal.m4:36: AC_PROG_LIBTOOL is expanded from... configure.ac:46: the top level configure.ac:46: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:671: AC_LIBTOOL_LINKER_OPTION is expanded from... configure.ac:46: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:2739: _LT_AC_LANG_CXX_CONFIG is expanded from... aclocal.m4:2738: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from... aclocal.m4:1798: _LT_AC_TAGCONFIG is expanded from... configure.ac:46: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached configure.ac:46: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:3902: _LT_AC_LANG_F77_CONFIG is expanded from... aclocal.m4:3901: AC_LIBTOOL_LANG_F77_CONFIG is expanded from... configure.ac:46: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached configure.ac:46: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached aclocal.m4:4004: _LT_AC_LANG_GCJ_CONFIG is expanded from... aclocal.m4:4003: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from... configure.ac:46: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached configure.ac:64: error: possibly undefined macro: AM_ICONV If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: /opt/local/bin/autoconf failed with exit status: 1 Error: The following dependencies failed to build: gd2 libmcrypt libxml2 libtool automake libxslt mhash mysql5 oracle-instantclient tiff Error: Status 1 encountered during processing.
If users want a quick fix for this problem: sudo port install autoconf automake libtool
Change History (6)
comment:1 Changed 16 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|
comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Status: | new → assigned |
---|
Confirmed. Will fix by adding dependencies on automake and libtool. (Dependency on autoconf was already added in #16119.)
comment:3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Summary: | gd2 2.0.35 Configure error - build failure → gd2 2.0.35 Configure error: possibly undefined macro: AM_ICONV |
Fixed in r38823. Thanks Bjorn for the report and the tip on how to fix it, and thanks everyone for your patience in getting this resolved.
comment:4 Changed 16 years ago by cbedgar@…
Resolution: | fixed |
---|---|
Status: | closed → reopened |
While trying to build gd2 today, port is still returning gd2 2.0.35, and I am still seeing the error as above. As stated above, "sudo port install autoconf automake libtool" fixes the problem. Except autoconf 2.62_0 has its own dependency problems. To build autoconf, one must first build gettext.
comment:5 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
2.0.35 is the current version of gd2. Please sudo port sync
to get the updated port definition, then sudo port clean --work gd2
and sudo port install gd2
to fix it.
Assigning to maintainer.