<div dir="ltr">Julie,<br><br>Which version of gcc are you using? Try to compile without any optimization and see if that makes any difference. I have had problems on Linux/Ubuntu with gcc 4.2.<br><br> Arlindo<br><br>
<div class="gmail_quote">On Thu, Sep 18, 2008 at 1:23 PM, Julie Chen <span dir="ltr"><<a href="mailto:chenj@ssc.ucla.edu">chenj@ssc.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm trying to compile GrADS for our users on Solaris x86 system. But I<br>
got couple of problem, hope someone here would help out.<br>
<br>
First I tried to build GrADS-2.0.a3. After install some of the lib it<br>
needed, such as gd, jasper, jpeg etc. The GrADS compiled and installed<br>
without any problem. But people reported "segment fault error" during<br>
the script. I'm not a GrADS user, so here is the information user sent<br>
me:<br>
<br>
I just got a "segment fault error", and Grads is killed. If I<br>
reduced the area of interpolation, the command to enter a endless loop<br>
then I had to control-C the script. Maybe it is a memory problem.<br>
I managed to make my script work by changing some settings.<br>
However, we have many many other scripts that won't work.<br>
<br>
Anyone know what might be wrong? Here is the grads build information:<br>
<br>
<br>
+=======================================================================<br>
==+<br>
GrADS 2.0.a3 : Built Wed Sep 17 14:33:54 PDT 2008 for<br>
i386-pc-solaris2.10<br>
<br>
+=======================================================================<br>
==+<br>
<br>
+----------------------------------+<br>
| |<br>
| Configuration Summary |<br>
| |<br>
| + readline enabled |<br>
| + printim enabled |<br>
| + netcdf enabled |<br>
| - hdf4 disabled |<br>
| - grib2 disabled |<br>
| - GUI disabled |<br>
| |<br>
| Build Summary |<br>
| |<br>
| + grads enabled |<br>
| - gradsdap (OPeNDAP) disabled |<br>
| |<br>
| + Dynamic linking enabled |<br>
| |<br>
+----------------------------------+<br>
configure: creating src/VERSION<br>
configure: creating src/buildinfo.h<br>
configure: creating ./config.status<br>
config.status: creating Makefile<br>
config.status: creating src/Makefile<br>
config.status: creating src/config.h<br>
config.status: src/config.h is unchanged<br>
<br>
Run 'make && make install' to build GrADS.<br>
Executables will be installed to bin/ in current dir, unless prefix was<br>
specified.<br>
<br>
<br>
Then user asked me to try build an earlier version of GrADS,<br>
grads-1.9b4. I got following error during make:<br>
<br>
gcc -g -O -o gradsc grads.o gxsubs.o gxmeta.o gxchpl.o gxcntr.o<br>
gxstrm.o gxwmap.o gxshad.o gaexpr.o gafunc.o gautil.o gagx.o gscrpt.o<br>
gamach.o bufrstn.o gabufr.o gabufrtbl.o gxX.o gxdxwd.o gd13gif.o<br>
latsnc.o galats.o lats.o latsint.o latsgrib.o latstime.o latsstat.o<br>
fgbds.o fgutil.o latsgribmap.o gagmap.o gaddes-c.o gacfg-c.o gaio-c.o<br>
gauser-c.o -L.././supplibs/lib -L/usr/openwin/lib -R/usr/openwin/lib<br>
.././supplibs/lib/libgd.a .././supplibs/lib/libpng.a<br>
.././supplibs/lib/libz.a .././supplibs/lib/libreadline.a -lX11<br>
-ltermcap -lm<br>
Undefined first referenced<br>
symbol in file<br>
gdCompareInt gxmeta.o<br>
ld: fatal: Symbol referencing errors. No output written to gradsc<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [gradsc] Error 1<br>
<br>
Hope someone here have experience with GrADS on solaris x86. Or is<br>
there compiled version I can download somewhere?<br>
<br>
Thank you very much for your time.<br>
<br>
Best,<br>
<font color="#888888">Julie Chen<br>
UCLA Social Sciences Computing<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>
</div>