[gradsusr] error compiling gd library

Huddleston, John Huddleston at cira.colostate.edu
Fri Jul 9 17:13:40 EDT 2010


Hi Huber,

Did you do a 'make install' in the libcurl directory? It will then install the lib, include, and any other files.

If yes, cat the $HOME/supplibs/src/curl-7.19.6/lib/libcurl.la file and verify that you satisfy all the dependencies.

Since you are copying all libraries and include files into ${SUPPLIBS} you may also add a line
--with-curl=${SUPPLIBS}

John

John Huddleston, PhD
Cooperative Institute for Research in the Atmosphere

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Paúl Gilt López
Sent: Friday, July 09, 2010 2:53 PM
To: 'GrADS Users Forum'
Subject: Re: [gradsusr] error compiling gd library

Hi John,

Yes, I did. I built curl and install it under ${SUPPLIBS}/lib

# ls ${SUPPLIBS}/lib
libcurl.a      libhdf5.a      libmfhdf.a     libreadline.a  libz.a
libdf.a        libhdf5_hl.a   libncurses.a   libsz.a
libgd.a        libjasper.a    libnetcdf.a    libudunits.a
libgrib2c.a    libjpeg.a      libpng12.a     libxml2.a

But after I executed this command I found these messages:

./configure --disable-shared \
--with-xml2=$HOME/supplibs/src/libxml2-2.6.16 \
--with-zlib=$HOME/supplibs/src/zlib-1.2.3 \
--with-curl=$HOME/supplibs/src/curl-7.19.6 \
--prefix=$HOME/supplibs/src/libdap-3.7.8

checking whether wchar_t is signed... no
checking whether wint_t is signed... no
checking for ptrdiff_t integer literal suffix... l
checking for sig_atomic_t integer literal suffix... u
checking for size_t integer literal suffix... ul
checking for wchar_t integer literal suffix... u
checking for wint_t integer literal suffix... u
checking whether <wchar.h> is standalone... yes
checking for pkg-config... no
checking for CURL... checking for libcurl... configure: error: I could not find libcurl

How can I fix or setup the path for the libcurl library?

BTW, I only compiled with cc the libudunits.a, but I will to re-compile this library.

Please help me,
Best regards,
Huber




________________________________
De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John
Enviado el: viernes, 09 de julio de 2010 14:47
Para: GrADS Users Forum
Asunto: Re: [gradsusr] error compiling gd library

Hi Huber

If you built curl and installed it under ${SUPPLIBS}/lib then you do not need to make the configure.ac change.

I'd say remove the directory, untar the libdap and simply do the configure with the options as shown in the documents.

BTW, I noticed you are using gcc now. Under HP/UX systems you cannot combine cc and gcc binaries so make sure all your binaries are consistent one way or the other.

John


John Huddleston, PhD
Cooperative Institute for Research in the Atmosphere

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Paúl Gilt López
Sent: Friday, July 09, 2010 1:36 PM
To: 'GrADS Users Forum'
Subject: Re: [gradsusr] error compiling gd library

Hello John,

I trying to compile libdap-3.7.8 library, according to the grads instructions, I changed the line this 136 in the configure.ac:

136   libdap_pkgconfig_libcurl=yes

By this other:

136   libdap_pkgconfig_libcurl=no

And then run this command:

# autoreconf
configure.ac:73: error: AC_REQUIRE: circular dependency of AC_GNU_SOURCE
gl/m4/extensions.m4:19: AC_USE_SYSTEM_EXTENSIONS is expanded from...
../../lib/autoconf/specific.m4:310: AC_GNU_SOURCE is expanded from...
gl/m4/gnulib-comp.m4:21: gl_EARLY is expanded from...
configure.ac:73: the top level
autom4te: /usr/local/bin/m4 failed with exit status: 1
aclocal: /usr/local/bin/autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1

I think these messages aren't good. How can I fix that?

Please help,
Best regards,

Huber Paul Gilt Lopez


________________________________
De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John
Enviado el: viernes, 09 de julio de 2010 12:10
Para: GrADS Users Forum
Asunto: Re: [gradsusr] error compiling gd library

Hi Huber,

You just found a bug in the libxml2 library. Go to line 2338 of encoding.c, e.g.

vi +2338 encoding

And change the word 'xlattable' to 'unicodetable'

John

John Huddleston, PhD
Cooperative Institute for Research in the Atmosphere

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Paúl Gilt López
Sent: Friday, July 09, 2010 10:26 AM
To: 'GrADS Users Forum'
Subject: Re: [gradsusr] error compiling gd library

Hello John,

I'm trying to compile xml2 library, but after I applied this commands:

#./configure --disable-shared \
--prefix=$HOME/supplibs/src/libxml2-2.6.16
#make

I found these 2 errors. I think this variable or function "xlattable" is not defined.
How can I fix these two errors?


gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c encoding.c -o encoding.o
encoding.c: In function 'UTF16LEToUTF8':
encoding.c:418: warning: cast increases required alignment of target type
encoding.c: In function 'UTF8ToUTF16LE':
encoding.c:500: warning: cast increases required alignment of target type
encoding.c: In function 'UTF16BEToUTF8':
encoding.c:655: warning: cast increases required alignment of target type
encoding.c: In function 'UTF8ToUTF16BE':
encoding.c:741: warning: cast increases required alignment of target type
encoding.c: In function 'ISO8859xToUTF8':
encoding.c:2338: error: 'xlattable' undeclared (first use in this function)
encoding.c:2338: error: (Each undeclared identifier is reported only once
encoding.c:2338: error: for each function it appears in.)
encoding.c: At top level:
encoding.c:2998: warning: string length '688' is greater than the length '509' ISO C90 compilers are required to support
encoding.c:3108: warning: string length '624' is greater than the length '509' ISO C90 compilers are required to support
make[2]: *** [encoding.lo] Error 1
make[2]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16'
make: *** [all] Error 2


Please help me,
Best regards,
Huber
________________________________
De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John
Enviado el: jueves, 08 de julio de 2010 19:21
Para: GrADS Users Forum
Asunto: Re: [gradsusr] error compiling gd library

Huber,

The archive library libunits.a is not empty. It is fine.

Copy it to the ${SUPPLIBS}/lib area and move on.

BTW, if you have the gcc compiler on your system, then 'export CC=gcc' and start over.

e.g. 'gcc --version' send me the results ...

John
________________________________
From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Paúl Gilt López [huber.gilt at igp.gob.pe]
Sent: Thursday, July 08, 2010 3:45 PM
To: 'GrADS Users Forum'
Subject: Re: [gradsusr] error compiling gd library
Hello John,

Do a 'ar tv libudunits.a', you should see something like
rw-r--r-- 1000/1000  16568 Jul 27 10:02 2009 utlib.o
rw-r--r-- 1000/1000   7524 Jul 27 10:02 2009 utparse.o
rw-r--r-- 1000/1000  14272 Jul 27 10:02 2009 utscan.o
rw-r--r-- 1000/1000   1136 Jul 27 10:02 2009 udalloc.o

Yes, I do. And I see:
# ar -tv libudunits.a
rw-r--r--     0/     3  74480 Jul  8 15:47 2010 utlib.o
rw-r--r--     0/     3  18232 Jul  8 15:47 2010 utparse.o
rw-r--r--     0/     3  45144 Jul  8 15:47 2010 utscan.o
rw-r--r--     0/     3   5328 Jul  8 15:47 2010 udalloc.o

If you have all four then you're good to go.

Yes, I have but I think all four is empty.

Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc

I think this is not match.

You are getting an error on creating udunits executable.

I think this is match.

If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand:

cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c

I tried, but I think this is not complete well.

#cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c

(Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored.
udalloc.c:
utlib-1.11.7.nof77intfc.c:
"utlib-1.11.7.nof77intfc.c", line 1488: warning #2177-D: function
          "CopyCtorNode" was declared but never referenced
  CopyCtorNode(node)
  ^

"utlib-1.11.7.nof77intfc.c", line 1520: warning #2177-D: function "AssignNode"
          was declared but never referenced
  AssignNode(to, from)
  ^

utlib.c:
"utlib.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared
          but never referenced
  CopyCtorNode(node)
  ^

"utlib.c", line 1520: warning #2177-D: function "AssignNode" was declared but
          never referenced
  AssignNode(to, from)
  ^

utparse.c:
"utparse.y", line 386: warning #2175-D: subscript out of range
        yypv = &yyv[-1];
                   ^

"utparse.y", line 387: warning #2175-D: subscript out of range
        yyps = &yys[-1];
                   ^

"utparse.y", line 405: warning #2177-D: label "yynewstate" was declared but
          never referenced
        yynewstate:
        ^

utscan.c:

then type 'make' and it should update the libudunits.a file.

I done, but I think libudunits.a library is still too small.

# make
ar rcuv libudunits.a utlib.o utparse.o utscan.o udalloc.o
r - utlib.o
r - utparse.o
r - utscan.o
r - udalloc.o
case "" in \
        '') ;; \
        *)  ar rucv libudunits.a ;; \
        esac
ranlib libudunits.a

# du -sk libudunits.a
144     libudunits.a


Go to the ../udunits directory and edit the Makefile to remove the -R option arguments, exit the editor, and type make, or manually

cc -o udunits -O udunits.o -L../lib -ludunits -lm -L../port/misc -ludport -lm

I did the manually form, then I type these commands but I have the same problem.
# cd ../udunits
# cc -o udunits -O udunits.o -L../lib -ludunits -lm -L../port/misc -ludport -lm

cc -c -O -I../lib -I../port/misc  udunits.c
(Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored.
cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm
(Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored.
(Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation.
(Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation.
ld: Can't find library for -ludunits
Fatal error.
make[1]: *** [udunits] Error 1
make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits'
make: *** [program] Error 2

And also I remove -R option arguments. Then make output were:

make[1]: Entering directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits'
cc -o udunits -O udunits.o -ly -lm
(Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored.
ld: Unsatisfied symbol "utIsTime" in file udunits.o
ld: Unsatisfied symbol "utInit" in file udunits.o
ld: Unsatisfied symbol "utCalendar" in file udunits.o
ld: Unsatisfied symbol "utScan" in file udunits.o
ld: Unsatisfied symbol "utTerm" in file udunits.o
ld: Unsatisfied symbol "utConvert" in file udunits.o
ld: (Warning) Unsatisfied symbol "yyparse" in file /usr/lib/hpux32/liby.so
ld: Unsatisfied symbol "utPrint" in file udunits.o
1 warnings.
7 errors.
make[1]: *** [udunits] Error 1
make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits'
make: *** [program] Error 2

If it possible to have the equivalent commands with gcc compiler, the libudunits.a is still too small
I don't know what is going on with compilation with libudunits library, do you have extra information or tips
about the process of compilation in gcc o cc?


Thanks you, Very much
Huber





________________________________
De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John
Enviado el: jueves, 08 de julio de 2010 14:55
Para: GrADS Users Forum
Asunto: Re: [gradsusr] error compiling gd library

Hi Huber, it is a small file,

Do a 'ar tv libudunits.a', you should see something like
rw-r--r-- 1000/1000  16568 Jul 27 10:02 2009 utlib.o
rw-r--r-- 1000/1000   7524 Jul 27 10:02 2009 utparse.o
rw-r--r-- 1000/1000  14272 Jul 27 10:02 2009 utscan.o
rw-r--r-- 1000/1000   1136 Jul 27 10:02 2009 udalloc.o

If you have all four then you're good to go.

Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc

You are getting an error on creating udunits executable.

If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand:

cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c

then type 'make' and it should update the libudunits.a file.

Go to the ../udunits directory and edit the Makefile to remove the -R option arguments, exit the editor, and type make, or manually

cc -o udunits -O udunits.o -L ../lib -ludunits -lm -L ../port/misc -ludport -lm

John



John Huddleston, PhD
Cooperative Institute for Research in the Atmosphere

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Paúl Gilt López
Sent: Thursday, July 08, 2010 1:19 PM
To: 'GrADS Users Forum'
Subject: Re: [gradsusr] error compiling gd library

Hello John,

Thanks you for your help, I've compiled libgb.a library and also jasper, g2clib, and szip, but I can't compiled udunits library. I get the following error:

cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm
(Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored.
(Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation.
(Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation.
ld: Can't find library for -ludunits
Fatal error.
make[2]: *** [udunits] Error 1
make[2]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits'
make[1]: *** [program] Error 2
make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits'
make: *** [udunits/all] Error 1

But I saw that I have the libunits.a library, but I think it isn't complete because it's so small.
How can I resolve this error?

# ls lib/libudunits.a
lib/libudunits.a

# du -sk lib/libudunits.a
144     lib/libudunits.a

Please help me,
Best regards,
Huber
________________________________
De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John
Enviado el: jueves, 08 de julio de 2010 9:54
Para: GrADS Users Forum
Asunto: Re: [gradsusr] error compiling gd library

Hi Huber,

The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local.

Unless you have sudo privlileges you are going to have to work around that implementation.

This is going to sound funny..but; if you have already built the GD library file that's all you need to continue building.

In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a

In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files
gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h
to your ${SUPPLIBS}/include directory.

Next, go on to build jasper, g2clib, szlib, etc.

John

John Huddleston, PhD
Cooperative Institute for Research in the Atmosphere

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Paúl Gilt López
Sent: Wednesday, July 07, 2010 9:42 AM
To: 'GrADS Users Forum'
Subject: Re: [gradsusr] error compiling gd library

Hi John,

Don't worry about the difficulty that I'm having, I can't figure how you build in or with Cygwin, I suppose it is a heavy work.
Any way, I don't found any reference with libpng14 in the libgb's Makefile , but I found the following lines that
I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I'm attaching the libgb's Makefile)

LIBPNG12_CONFIG =
LIBPNG_CONFIG = /usr/local/bin/libpng-config

Please help me,
Best regards,
Huber

________________________________
De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John
Enviado el: martes, 06 de julio de 2010 14:30
Para: GrADS Users Forum
Asunto: Re: [gradsusr] error compiling gd library

Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build!

Look at your gcc line and you will see the path
/usr/local/lib/hpux32/libpng14.so

Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file.

John

John Huddleston, PhD
Cooperative Institute for Research in the Atmosphere

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Paúl Gilt López
Sent: Tuesday, July 06, 2010 1:13 PM
To: 'GrADS Users Forum'
Subject: Re: [gradsusr] error compiling gd library

Hello John,

I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error:

gcc -g -O2 -o gdparttopng gdparttopng.o  -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm
ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o
ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o]
2 errors.
collect2: ld returned 1 exit status
make[2]: *** [gdparttopng] Error 1
make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34'
make: *** [all] Error 2


Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands:

cd gd-2.0.34
./configure --disable-shared \
--with-png=$HOME/supplibs/src/libpng-1.2.18 \
--with-jpeg=$HOME/supplibs/src/jpeg-6b \
--prefix=$HOME/supplibs/src/gd-2.0.34
make

Please help me,
Best regards,
Huber


________________________________
De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John
Enviado el: viernes, 02 de julio de 2010 12:20
Para: GrADS Users Forum
Asunto: Re: [gradsusr] error compiling gd library

Hi Huber,

Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system?

Ditto for the GD build.

You must follow the order of the build as shown in the PDF file.

John Huddleston, PhD, PE
________________________________
From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Paúl Gilt López [huber.gilt at igp.gob.pe]
Sent: Friday, July 02, 2010 11:06 AM
To: 'GrADS Users Forum'
Subject: Re: [gradsusr] error compiling gd library
Hello John,

I've done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib.
And I have the same problem in libpng-1.2-18 compilation.

What is going on with libpng library if I have the libz.a library in the folder supplibs/lib?
(In the end I list the compiled libraries)

Please help me,
Best regards.

Huber Paul Gilt López


# pwd
/home/huber/grads/supplibs/lib
# ls
libcurl.a      libhdf5_hl.a   libncurses.a   libreadline.a  libxdr.a
libdf.a        libjpeg.a      libnetcdf.a    libsz.a        libz.a
libhdf5.a      libmfhdf.a     libpng12.a     libudunits.a

________________________________
De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John
Enviado el: viernes, 02 de julio de 2010 9:30
Para: GrADS Users Forum
Asunto: Re: [gradsusr] error compiling gd library

Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over,

 libpng doesn't build because you do not have the zlib.

Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz

tar xvfz ./tarfiles/zlib-1.2.3.tar.gz
cd zlib-1.2.3/
./configure --prefix=$HOME/supplibs/src/zlib-1.2.3
make
make install
cp ./lib/libz.a $HOME/supplibs/lib
mkdir $HOME/supplibs/include/zlib
cp ./include/zlib.h $HOME/supplibs/include/zlib

John

________________________________
From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Paúl Gilt López [huber.gilt at igp.gob.pe]
Sent: Friday, July 02, 2010 8:17 AM
To: 'GrADS Users Forum'
Subject: Re: [gradsusr] error compiling gd library
John,

Because I found this error when I configure PNG library 1.2:

#cd /home/huber/grads/supplibs/src/libpng-1.2.18
./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18
...
checking for pow in -lm... yes
checking for zlibVersion in -lz... no
configure: error: zlib not installed

I've exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I've done make, and make install. Provably the libpng12.a library didn't build well, how I can fix the previous error when I tried to configure the libpng12 library?

Please help me,
Best regards,
Huber Paul Gilt Lopez






________________________________
De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John
Enviado el: jueves, 01 de julio de 2010 18:46
Para: GrADS Users Forum
Asunto: Re: [gradsusr] error compiling gd library

Huber

You need the PNG library1.2 not 1.4.  Somehow you've installed a more recent version of PNG into /usr/local

Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local

Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area.

John Huddleston

________________________________
From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Paúl Gilt López [huber.gilt at igp.gob.pe]
Sent: Thursday, July 01, 2010 4:15 PM
To: 'GrADS Users Forum'
Subject: [gradsusr] error compiling gd library
Hello,

I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol?

#cd /home/huber/grads/supplibs/src/gd-2.0.34
#./configure --disable-shared\
 --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\
 --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\
 --prefix=/home/huber/grads/supplibs/src/gd-2.0.34
#make

...
gcc -g -O2 -o gdparttopng gdparttopng.o  -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm
ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o]
1 errors.
collect2: ld returned 1 exit status
make[2]: *** [gdparttopng] Error 1
make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34'
make: *** [all] Error 2

Please help me,
Best regards,
Huber Paul Gilt Lopez
IGP-Peru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100709/11c7e780/attachment-0003.html 


More information about the gradsusr mailing list