Hi,
It is highly possible [indeed likely] that i'm doing something silly, but i'm having trouble building Grass on a Solaris 9 Sparc box. I have installed the required packages having built them with GCC3.2.2. Everything is in /usr/local/....
The problem i have is with the configure script. It all looks good until the following happens.....
checking whether to use JPEG... yes
checking for location of JPEG includes...
checking for jpeglib.h... yes
checking for location of JPEG library...
checking for jpeg_start_compress in -ljpeg... yes
checking if we should build directly against GDAL... no
checking whether to use TIFF... yes
checking for location of TIFF includes...
checking for tiffio.h... yes
checking for location of JPEG library...
checking for TIFFOpen in -ltiff... no
checking for TIFFOpen in -ltiff... yes
checking whether to use PNG... yes
checking for location of PNG includes...
checking for png.h... yes
checking for location of PNG library...
checking for png_read_image in -lpng... yes
checking whether to use GD... yes
checking for location of GD includes...
checking for gd.h... yes
checking for location of GD library...
checking for gdImagePng in -lgd... no
checking for gdImageGif in -lgd... no
configure: error: *** Unable to locate GD library.
#
I have successfully built and installed the latest version of libpng and the lib files are in /usr/local/lib and the headers are in /usr/local/include. Can anybody help with this output from the configure script?
Thanks in advance
Ade
--
___________________________________________________
Adrian [Ade] Fewings MEng
Distributed & High Performance Computing, Informatics, UWB
Dean Street, Bangor, Gwynedd. LL57 1UT. UK.
ade@informatics.bangor.ac.uk www.informatics.bangor.ac.uk/~ade
Tel: +44 (0)1248 382736 Fax: +44 (0)1248 361429
'The ideal engineer is a composite ... He is not a scientist, he
is not a mathematician, he is not a sociologist or a writer; but
he may use the knowledge and techniques of any or all of these
disciplines in solving engineering problems.'
N. W. Dougherty, 1955
___________________________________________________
Ade Fewings wrote:
It is highly possible [indeed likely] that i'm doing something silly,
but i'm having trouble building Grass on a Solaris 9 Sparc box. I have
installed the required packages having built them with GCC3.2.2.
Everything is in /usr/local/....
The problem i have is with the configure script. It all looks good
until the following happens.....
configure: error: *** Unable to locate GD library.
#
I have successfully built and installed the latest version of libpng and
the lib files are in /usr/local/lib and the headers are in
/usr/local/include. Can anybody help with this output from the
configure script?
Do you have the GD library? If not, either get it from:
http://www.boutell.com/gd/
or use the --without-gd configure switch (this will inhibit building
the PNG driver).
--
Glynn Clements <glynn.clements@virgin.net>
Ade Fewings wrote:
checking for gdImagePng in -lgd... no
checking for gdImageGif in -lgd... no
configure: error: *** Unable to locate GD library.
#
I have successfully built and installed the latest version of libpng and
the lib files are in /usr/local/lib and the headers are in
/usr/local/include. Can anybody help with this output from the
configure script?
The most obvious question is: Have you installed the GD library? If you
have, did you install it from the the Auxillary Software that came with
Solaris9? I've found that a lot of the "linux" software included by Sun
on the Installation DVDs goes into odd places -- places you'd never
think to look on a Intel/Linux setup....I'm new to Solaris so I'm using
the "find" command a lot!
I'm at home at the moment and not near a Solaris9 w/s so can't give you
more details from memory...
....bill sneed, prospect, maine.....
Bill Sneed wrote:
> checking for gdImagePng in -lgd... no
> checking for gdImageGif in -lgd... no
> configure: error: *** Unable to locate GD library.
> #
>
> I have successfully built and installed the latest version of libpng and
> the lib files are in /usr/local/lib and the headers are in
> /usr/local/include. Can anybody help with this output from the
> configure script?
The most obvious question is: Have you installed the GD library? If you
have, did you install it from the the Auxillary Software that came with
Solaris9? I've found that a lot of the "linux" software included by Sun
on the Installation DVDs goes into odd places -- places you'd never
think to look on a Intel/Linux setup....I'm new to Solaris so I'm using
the "find" command a lot!
In private email, he confirmed that he did have GD, and subsequently
provided the errors from config.log:
configure:6465: gcc -o conftest -g -O2 conftest.c -lgd 1>&5
Undefined first referenced
symbol in file
libiconv /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/../../../libgd.so
libiconv_open /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/../../../libgd.so
libiconv_close /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2.2/../../../libgd.so
This indicates that his GD library has unexpected[1] dependencies.
[1] The way that configure determines dependencies is by iterating
through a list of plausible candidates. The library which presumably
provides these functions isn't among those which are tried when
checking for GD (the exact list is all 32 possible combinations of
Xpm, FreeType, JPEG, PNG and libm).
Unfortunately I don't know which library provides these functions.
libiconv is a possibility, but on most systems which have a separate
libiconv, it provides iconv() itself, whereas Ade's config.log
indicates that iconv() was detected without the need for any
additional libraries (i.e. it's in libc, as is the case for Linux).
--
Glynn Clements <glynn.clements@virgin.net>