[ncl-install] ictrans error

Mary Haley haley at ucar.edu
Wed Jun 18 09:34:41 MDT 2008


On Wed, 18 Jun 2008, daniel wrote:

> Hi all,
> I have been trying to install ncl and i encountered the error shown
> below. I also have attached the complete make-out in case it could help.
> May be necessary further information please ask me.
> Thank you very much for your help.
>
> Making ./ncarview/src/bin/ictrans
> make[5]: se ingresa al directorio
> `/usr/local/ncl_ncarg-5.0.0/ncarview/src/bin/ictrans'
> gcc -ansi -fPIC  -O  -I../../../.././include -I/usr/include    -DSYSV
> -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto  -DNDEBUG
> -Df2cFortran  -c -o main.o main.c
> main.c: En la función ‘main’:
> main.c:42: aviso: declaración implícita incompatible de la función
> interna ‘exit’
> main.c:45: aviso: declaración implícita incompatible de la función
> interna ‘exit’
> gcc -ansi -fPIC  -O    -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/usr/local/ncarg/lib -L/usr/lib -lX11 -lXext   -lmfhdf -ldf -ljpeg -lz -lg2c -lgcc -lm
> ../../../.././ncarview/src/lib/libcgm/libcgm.a(meta_edit.o): In function
> `CGM_initMetaEdit':
> meta_edit.c:(.text+0x14ac): warning: the use of `mktemp' is dangerous,
> better use `mkstemp'
> ../../../.././ncarview/src/lib/libictrans/libictrans.o: In function
> `giargs_':
> (.text+0x69e3): undefined reference to `s_copy'

Hi Daniel,

We've seen this error before, and it is solved by adding -lg2c on
the compile line for ictrans.  However, you already have this
on the compile line.

If you do an nm on this library, does it have this symbol?:

    cd /wherever/libg2c.a/is/libg2c.a | grep s_copy

For example, when I type:

   % nm /usr/lib/libg2c.a | grep s_copy

I get the following output:

   s_copy.o:
   0000000000000000 T s_copy
                    U s_copy
                    U s_copy
                    ...

The "T s_copy" means it's defined in the library.

Do you possibly have a mix of compilers on your system, or was
this library not installed in the usual fashion by any chance?

--Mary

> ../../../.././ncarview/src/lib/libictrans/libictrans.o: In function
> `giargs_':
> (.text+0x6a05): undefined reference to `s_copy'
> collect2: ld devolvió el estado de salida 1
> make[5]: *** [ictrans] Error 1
>


More information about the ncl-install mailing list