<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello!
<br>
<br>
I'm trying to setup GrADS for creating custom meteograms from GFS.
Unfortunately, I have building problems which cannot solve. I tried
everything I could for now, without success. Let me explain in more
details, hoping someone will help me!
<br>
<br>
My system on which I try to build it is Gentoo Linux (stable branch),
kernel 2.6.18, glibc 2.4, on x86 machine, everything compiled from
source with sane optimization flags like this:
<br>
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
<br>
CHOST="i686-pc-linux-gnu"
<br>
using gcc 4.1.1 compiler.
<br>
<br>
OK, so now I wish build GrADS on it, from source. I think I satisfied
all dependencies it needs, except one because I don't know what it is,
so that is my first question. In this document: <a
class="moz-txt-link-freetext"
href="http://aur.archlinux.org/packages/grads/grads/PKGBUILD">http://aur.archlinux.org/packages/grads/grads/PKGBUILD</a>
I found these deps listed:
<br>
depends=(libnc-dap imagemagick gd netcdf shapelib libxaw udunits)
<br>
makedepends=(hdf4 libnc-dap udunits netcdf imagemagick shapelib gd
libjpeg)
<br>
<br>
I have all of them except hdf4 which I can't find what it is. But I
doubt it is related to my build errors...
<br>
<br>
So, next question is about building.. first, I had problems with
building libnc-dap and libdap with gcc-4.1.1 so I build them with
gcc-3.3.6 and installed (./configure && make && make
install). They are not in Portage that's why I had to install by hand.
So, keep in mind they are compiled with gcc-3.3.6 and rest of system
with gcc-4.1.1, I don't know is that going to be a problem...
<br>
<br>
Next, I can build GrADS only with ./configure --without-dods and it
seems to work like it should! But problem is because I need to build
binary gradsdods to make meteograms from GFS, and only that binary
fails to build! If I configure with dods support, get something like
this....
<br>
<br>
<br>
*****************************************************************
<br>
<br>
/usr/include/g++-3/stl_alloc.h:(.text+0x251): undefined reference to
`__rethrow'
<br>
/usr/include/g++-3/stl_alloc.h:(.text+0x2c7): undefined reference to
`__rethrow'
<br>
/usr/include/g++-3/stl_alloc.h:(.text+0x2cd): undefined reference to
`terminate(void)'
<br>
/usr/local/supplibs/lib/libdap++.a(DataDDS.o): In function
`DataDDS::DataDDS(basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> > const &,
basic_string<char, string_char_traits<char>,
__default_alloc_template<true, 0> > const &)':
<br>
/usr/include/g++-3/std/bastring.h:195: undefined reference to
`__rethrow'
<br>
/usr/include/g++-3/std/bastring.h:195: undefined reference to
`__rethrow'
<br>
/usr/include/g++-3/std/bastring.h:195: undefined reference to
`terminate(void)'
<br>
/usr/local/supplibs/lib/libdap++.a(DataDDS.o): In function
`DataDDS::~DataDDS(void)':
<br>
DataDDS.cc:77: undefined reference to `__builtin_delete'
<br>
/usr/local/supplibs/lib/libdap++.a(DataDDS.o): In function `DataDDS
type_info function':
<br>
/usr/include/g++-3/stl_alloc.h:(.gnu.linkonce.t.__tf7DataDDS+0x26):
undefined reference to `__rtti_si'
<br>
/usr/local/supplibs/lib/libdap++.a(Error.tab.o): In function
`Errorerror(char *)':
<br>
Error.y:136: undefined reference to `__eh_alloc'
<br>
Error.y:136: undefined reference to `__cp_push_exception'
<br>
Error.y:136: undefined reference to `__throw'
<br>
Error.y:136: undefined reference to `terminate(void)'
<br>
Error.y:136: undefined reference to `__rethrow'
<br>
/usr/local/supplibs/lib/libdap++.a(Error.tab.o): In function
`Errorerror(char *)':
<br>
/usr/include/g++-3/std/bastring.h:195: undefined reference to
`__rethrow'
<br>
/usr/include/g++-3/std/bastring.h:195: undefined reference to
`terminate(void)'
<br>
collect2: ld returned 1 exit status
<br>
make[2]: *** [gradsdods] Error 1
<br>
make[2]: Leaving directory `/usr/local/src/grads-1.9b3/src'
<br>
make[1]: *** [all] Error 2
<br>
make[1]: Leaving directory `/usr/local/src/grads-1.9b3/src'
<br>
make: *** [all-recursive] Error 1
<br>
ivan grads-1.9b3 #Â Â Â Â Â Â Â Â Â Â <br>
********************************************************************
<br>
<br>
Up in stack there are HUGE number of lines that tell about "undefined
reference to <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>something<span
class="moz-txt-tag">/</span></i>". That HUGE I mean is about thousand
or even more lines! As you can see I try to build 1.9b3, just for
attempt, but with last, 1.9b4 version errors are exactly same.
Switching compiler to gcc-3.3.6 does not change anything.
<br>
<br>
So now, I don't know how to proceed in troubleshooting. Please can you
give me an advice? Every help is greatly appreciated. If you need more
info please tell me.
<br>
<br>
Thanks in advance,<br>
Ivan Toman from CROMETEO team, Croatia
<br>
</body>
</html>