#16119 closed defect (fixed)
gd2 2.0.35 configuring failure: macro `AM_ICONV' not found in library
Reported by: | webmaster@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | gd2 2.0.35 configure failure aclocal AM_ICONV | Cc: | |
Port: |
Description
I tried to install gd2 but it failed with the following errors :
---> 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: aclocal: configure.ac: 64: macro `AM_ICONV' not found in library
autoreconf: aclocal failed with exit status: 1
Error: The following dependencies failed to build: gd2 libmcrypt libxml2 libtool automake libxslt mhash openssl pcre tiff
Error: Status 1 encountered during processing.
To be very precise :
- The machine is a Xserv Intel 10.4.11 (Xcode 2.4.1 and Apple X11 1.1.3)
- Macports is uptodate : 1.6.0 (the first version installed was 1.4)
- Local ports list is uptodate (port -d sync)
- The problem occured when I was installing Php 5.2.6 (gd2 is one of Php depedencies)
- All other Php dependencies have been installed without errors (I installed manually dependencies which came after gd2 in Php installation)
- Just before installing Php 5.2.6 I removed all ports already installed on the machine (Php 5.2.3 and dependancies) with the following commands (working with root so no "sudo") :
port deactivate active
port uninstall -f installed
port clean --all -f all
- Last week I have installed Php 5.2.6 and gd2 2.0.35 on another identical Xserv without these errors.
- I tried one time to uninstall all ports and re install Php but gd2 failed configuring.
So what is the problem (lib_iconv ?) and what can I do ?
The problem occurred on a production server so a rapid answer would be very appreciated.
Thank you
Bertrand
Change History (8)
comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… removed |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
Status: | new → assigned |
comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Nevermind all that: I think I found the solution here: you need to install the gettext port. If I deactivate gettext, then I can reproduce the problem on my system. I'll add gettext as a dependency to the gd2 port. Never woulda guessed a graphics library would require internationalization support, but there you have it.
comment:3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
gd2 doesn't seem to link with gettext as a library; it's just autoreconf that throws a fit if gettext isn't there. So it's a build dependency, not a library dependency. Added in r38666. Please re-open this ticket if that doesn't fix it. And thanks for reporting the problem.
comment:4 Changed 16 years ago by webmaster@…
Should be that because now it works !
Thank you for your fast support.
Cheers
comment:5 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
comment:6 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Depending on autoconf turns out not to be enough. Turns out automake and libtool were needed too. See #16148.
comment:7 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | gd2 2.0.35 configuring failure → gd2 2.0.35 configuring failure: macro `AM_ICONV' not found in library |
---|
What version of automake and libiconv are installed? Use
port installed automake libiconv
to find out.Last week, I had not yet committed r38552 to the gd2 port to explicitly run autoreconf. I do not believe it should be causing a problem since the configure script was running autoconf itself otherwise, but it's the only difference in the gd2 port in months (aside from r38594 to enable the parallel build which should be totally immaterial since you're failing in the configure phase which is never parallel). You could grab the Portfile from before r38552 and see if installing that works (replace the file at
port file gd2
with the earlier Portfile linked above and then tryport install gd2
).