RE: [GD-DEVEL] problem building GD 2.0.34 [SEC=UNCLASSIFIED]

[email protected] Thu, 25 Jun 2009 09:07:17 +1000
Newsgroups php.gd.devel
Message-ID <[email protected]>
Thanks for the link, it put me on the right path and I now have a successful Solaris build!

The first problem was I had multiple aclocal's installed on my system, and configure was finding the wrong one. The problem here is that while 'which aclocal' showed me one under /usr/local/bin, GD is looking for aclocal-1.9, which in my case meant one under /opt/csw/bin, and which did not know about packages like libtool. The solution here was to remove all traces of /opt/csw from my PATH.

The second problem was the creation of libgd.a, and was solved by adding -R/usr/ucblib to LDFLAGS when running configure.

The third problem was with conflicting versions of libiconv being found (maybe). Anyway the --with-libiconv-prefix solved this.

Here is my full configure command that resulting in a working build:
./configure LDFLAGS='-R/usr/ucblib' --with-libiconv-prefix=/usr/local

-----Original Message-----
From: Takeshi Abe [mailto:[email protected]]
Sent: Wednesday, 24 June 2009 8:28 PM
To: Potter Michael
Cc: [email protected]
Subject: Re: [GD-DEVEL] problem building GD 2.0.34 [SEC=UNCLASSIFIED]

Hi,

it seems the same as:
http://bugs.libgd.org/?do=details&task_id=124

Cheers,
-- Takeshi Abe

On Wed, 24 Jun 2009 16:51:05 +1000, <[email protected]> wrote:
> Hi
>
> I am trying to build GD for Solaris 10/Sparc. I am running into trouble with the setup of automake/autoconf/libtool or something. Below is the output of the ./configure summary and what happens when I type make. I also showed evidence of the GNU build tools I have installed.
>
> Thanks for any assistance!
>
> -------------------------------------------------------------------------------------------------------------------------
>
> ** Configuration summary for gd 2.0.34:
>
>    Support for PNG library:          yes
>    Support for JPEG library:         yes
>    Support for Freetype 2.x library: yes
>    Support for Fontconfig library:   yes
>    Support for Xpm library:          yes
>    Support for pthreads:             yes
>
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating config/Makefile
> config.status: creating config/gdlib-config
> config.status: creating test/Makefile
> config.status: creating config.h
> config.status: executing depfiles commands
>
> $ make
> cd . && /bin/bash /export/home/mpotter/dev/incoming/gd-2.0.35/config/missing --run aclocal-1.9 -I config
> aclocal:configure.ac:64: warning: macro `AM_ICONV' not found in library
> cd . && /bin/bash /export/home/mpotter/dev/incoming/gd-2.0.35/config/missing --run autoheader
> rm -f stamp-h1
> touch config.hin
> cd . && /bin/bash /export/home/mpotter/dev/incoming/gd-2.0.35/config/missing --run autoconf
> configure.ac:46: error: possibly undefined macro: AC_PROG_LIBTOOL
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
> configure.ac:64: error: possibly undefined macro: AM_ICONV
> *** Error code 1
> make: Fatal error: Command failed for target `configure'
>
> $ which libtool
> /usr/local/bin/libtool
>
> $ libtool --version
> ltmain.sh (GNU libtool) 1.5.24 (1.1220.2.455 2007/06/24 02:13:29)
>
> $ which autoconf
> /usr/local/bin/autoconf
>
> $ autoconf --version
> autoconf (GNU Autoconf) 2.63
>
> $ which automake
> /usr/local/bin/automake
>
> $ automake --version
> automake (GNU automake) 1.11
>
> $ which aclocal
> /usr/local/bin/aclocal
>
> $ aclocal --version
> aclocal (GNU automake) 1.11