Re: building ictrans on SGI Itanium2 running Redhat 9 Kernal 2.4.2

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue, 20 Jun 2006 08:39:50 -0600 (MDT)

On Tue, 20 Jun 2006, Mr. Darwin G. (D G) Adams wrote:

> I have built NCAR graphics on an HP Opteron Linux machine (not a desktop),
> but seem to have problems building NCAR graphics on an SGI Linux Itanium2
> machine (not a desktop).
>
> The only thing that does not seem to build properly from source is the
> ictrans binary. But idt and ctrans don't work right either, a gui pops up
> but will not display the selected xxx.ncgm file.
>
> The section from my make-output with the error is:
>
>
>
> Making install in ./ncarview/src/bin/ictrans
> make[5]: Entering directory
> `/hafs7/ncar/Distribution/temp/ncarg-4.4.1/ncarview/src/bin/ictrans'
> icc -ansi -O2 -o ictrans main.o
> ../../../.././ncarview/src/lib/libictrans/libictrans.o
> ../../../.././ncarview/src/lib/libctrans/libctrans.o
> -L../../../.././ncarview/src/lib/libcgm -lcgm
> -L../../../.././ncarview/src/lib/libncarg_ras -lncarg_ras
> -L../../../.././common/src/libncarg_c -lncarg_c
> -L/app/ncar/platform/ncar4.4.1/1/1.altix/ncarg/lib -L/usr/X11R6/lib
> -L/opt/intel_fc_80/lib -L/usr/lib -L/usr/include -lX11 -lXext -lm -lifcore
> ../../../.././ncarview/src/lib/libcgm/libcgm.a(meta_edit.o)(.text+0x35d2):
>
> In function `CGM_initMetaEdit':
> : the use of `mktemp' is dangerous, better use `mkstemp'
> /opt/intel_fc_80/lib/libifcore.so.6: undefined reference to `__cxa_end_catch'
> /opt/intel_fc_80/lib/libifcore.so.6: undefined reference to
> `std::terminate()'
> /opt/intel_fc_80/lib/libifcore.so.6: undefined reference to
> `__intel_personality_routine'
> /opt/intel_fc_80/lib/libifcore.so.6: undefined reference to
> `__cxa_begin_catch'
> make[5]: *** [ictrans] Error 1
>
>
> I don't often have to build my apps like this, so if there is some obvious
> newbie thing I am overlooking let me know.
>
> Thanks
> DG

DG,

It looks like you may be missing a system compiler library. The
undefined symbols "__cxa_begin_catch" are not coming from NCAR
Graphics, but rather your "libifcore" library. I googled this symbol,
and it seems like it might be in the libstdc++ library. Try to find
this library on your system, and then do an "nm" on it to see if the
symbol is defined:

    nm libstdc++.so | grep __cxa_end_catch

If it is, then edit the config file you are using in $NCARG/config,
add "-lstdc++" after "-lifcore", and rerun "make Everything".

If this symbol is not in libstdc++, then you will need to poke
around your other compiler libraries and see if you can find
the symbol.

Good luck,

--Mary
_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Tue Jun 20 2006 - 08:39:50 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 20 2006 - 08:46:57 MDT