Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #16119 (closed defect: fixed)

Opened 4 months ago

Last modified 4 months ago

gd2 2.0.35 configuring failure: macro `AM_ICONV' not found in library

Reported by: webmaster@… Owned by: ryandesign@…
Priority: Normal Milestone: Port Bugs
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

Changed 4 months ago by ryandesign@…

  • cc ryandesign@… removed
  • owner changed from macports-tickets@… to ryandesign@…
  • status changed from new to assigned

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 try port install gd2).

Changed 4 months ago by ryandesign@…

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.

Changed 4 months ago by ryandesign@…

  • status changed from assigned to closed
  • resolution set to fixed

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.

Changed 4 months ago by webmaster@…

Should be that because now it works !

Thank you for your fast support.

Cheers

Changed 4 months ago by ryandesign@…

Has duplicates #16130 and #16142.

Changed 4 months ago by ryandesign@…

Depending on autoconf turns out not to be enough. Turns out automake and libtool were needed too. See #16148.

Changed 4 months ago by ryandesign@…

  • summary changed from gd2 2.0.35 configuring failure to gd2 2.0.35 configuring failure: macro `AM_ICONV' not found in library
Note: See TracTickets for help on using tickets.