Amd64 on Debian

Igor TAmara igor at TAMARAPATINO.ORG
Wed Jul 19 20:50:13 EDT 2006


Hi, really thx for your answer, I found some issues, your instructions
were useful, I hope this message can reach a grads, more details follow

Matthias> -----BEGIN PGP SIGNED MESSAGE-----
Matthias> Hash: SHA1
Matthias> 
Matthias> Hi Igor:
Matthias> 
Matthias> Try "./configure --enable-dyn-supplibs". Note: the resulting execs
Matthias> will depend on runtime libraries.

Sure, it worked, the relevant output configure :

  +=========================================================================+
   GrADS 1.9b4 : Built Wed Jul 19 17:52:00 GMT 2006 for x86_64-unknown-linux-gnu
  +=========================================================================+

  +----------------------------------+
  |                                  |
  | Configuration Summary            |
  |                                  |
  |  + readline enabled              |
  |  + printim enabled               |
  |  - GUI disabled                  |
  |  + LATS enabled                  |
  |  - wi disabled (default)         |
  |                                  |
  | Build Summary                    |
  |                                  |
  |  + gradsc    (classic) enabled   |
  |  - gradsnc   (netCDF)  disabled  |
  |  - gradshdf  (HDF-SDS) disabled  |
  |  - gradsdods (OPeNDAP) disabled  |
  |                                  |
  |  + Dynamic linking enabled       |
  |                                  |
  +----------------------------------+

When I ran make I got the following error :

gcc -DHAVE_CONFIG_H -I. -I. -I. -I../supplibs/include     -g -O -c `test -f 'gxdxwd.c' || echo './'`gxdxwd.c
gxdxwd.c:25: error: conflicting types for 'calloc'

then on gxdxwd.c replaced char *calloc(); by void *calloc();

ran make again and got :

gxdxwd.c:365: warning: incompatible implicit declaration of built-in function 'exit'
gcc  -g -O   -o gradsc  grads.o gxsubs.o gxmeta.o gxchpl.o gxcntr.o gxstrm.o gxwmap.o gxshad.o gaexpr.o gafunc.o gautil.o gagx.o gscrpt.o gamach.o bufrstn.o gabufr.o gabufrtbl.o gxX.o gxdxwd.o gd13gif.o latsnc.o galats.o lats.o latsint.o latsgrib.o latstime.o latsstat.o fgbds.o fgutil.o latsgribmap.o gagmap.o   gaddes-c.o gacfg-c.o gaio-c.o gauser-c.o -L../supplibs/lib  -lgd -lpng -lz   -lreadline -lX11    -ltermcap -lm
gxmeta.o: In function `gdImageFilldPolygon':
/home/igor/download/grads/grads-1.9b4/src/gxhpng.c:458: undefined reference to `gdCompareInt'
/home/igor/download/grads/grads-1.9b4/src/gxhpng.c:458: undefined reference to `gdCompareInt'
collect2: ld returned 1 exit status
make[2]: *** [gradsc] Error 1

went to gxdxwd.c and added :

int gdCompareInt(const void *a, const void *b);

int gdCompareInt(const void *a, const void *b)
{
     return (*(const int *)a) - (*(const int *)b);
}

The idea was taken from [1]

1.https://www.redhat.com/archives/fedora-extras-commits/2005-December/msg01066.html

the function could be added to gxmeta.c, but the devels would know where to put
it better

More info about my sys :
Linux compu 2.6.17-1-amd64-k8
ii  libgd2-xpm          2.0.33-5            GD Graphics Library version 2

Hope it helps someone else in the building I got the following binaries :

-rwxr-xr-x 1 root root   67843 Jul 19 17:53 bufrscan
-rwxr-xr-x 1 root root 1655621 Jul 19 17:53 gradsc
-rwxr-xr-x 1 root root  203522 Jul 19 17:53 gribmap
-rwxr-xr-x 1 root root  126058 Jul 19 17:53 gribscan
-rwxr-xr-x 1 root root   53328 Jul 19 17:53 gxeps
-rwxr-xr-x 1 root root   31158 Jul 19 17:53 gxps
-rwxr-xr-x 1 root root  253951 Jul 19 17:53 gxtran
-rwxr-xr-x 1 root root  177897 Jul 19 17:53 stnmap
-rwxr-xr-x 1 root root  159417 Jul 19 17:53 wgrib


Matthias> If this is unacceptable, try setting CPPFLAGS and LDFLAGS to point to
Matthias> the relevant libraries and headers.
Matthias> Wi isn't supported anymore. Have a look at Wi.gs
Matthias> (http://munnich.bol.ucla.edu/grads/ provides) for a replacement
Matthias> script.  To get netcdf and hdf support, you need to install these
Matthias> libraries.  I don't use DODS and cannot assist here.

Neither I do :P, I'm building the software for a project, but I'm not sure 
if the people that I work with will miss that, if so, surely, we'll be testing
and asking again if needed :)

Again, thx for your kind attention.

Matthias> 
Matthias> ... Matt

-- 
Recomiendo Postgresql, el sistema manejador de bases de datos
http://www.postgresql.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20060719/74a912d3/attachment.bin 


More information about the gradsusr mailing list