[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19960923: netCDF installation under Linux
- Subject: 19960923: netCDF installation under Linux
- Date: Mon, 23 Sep 96 08:49:43 -0600
Graeme,
>Date: Sat, 21 Sep 1996 17:19:47 GMT
>From: address@hidden (Graeme Potter)
>Organization: .
>To: address@hidden
>Subject: netCDF installation under Linux
>Keywords: 199609192103.AA08813
In the above message you wrote:
> Thanks for your suggestions which have helped me overcome my initial
> problem. The required files are part of an optional package which I didn't
> have installed. I have now and things are progressing further.
>
> However I am still having problems and here is another log file :-
>
> ----------------------------------------------------------------------------
>
> making `all' in directory /usr/local/netcdf-2.4.3/src/port
>
> make[1]: Entering directory `/usr/local/netcdf-2.4.3/src/port'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/usr/local/netcdf-2.4.3/src/port'
>
> returning to directory /usr/local/netcdf-2.4.3/src
>
>
> making `all' in directory /usr/local/netcdf-2.4.3/src/xdr
>
> make[1]: Entering directory `/usr/local/netcdf-2.4.3/src/xdr'
> make[1]: Leaving directory `/usr/local/netcdf-2.4.3/src/xdr'
>
> returning to directory /usr/local/netcdf-2.4.3/src
>
>
> making `all' in directory /usr/local/netcdf-2.4.3/src/libsrc
>
> make[1]: Entering directory `/usr/local/netcdf-2.4.3/src/libsrc'
> gcc -c -fpic -O array.c
> gcc -c -fpic -O attr.c
> gcc -c -fpic -O cdf.c
> gcc -c -fpic -O dim.c
> gcc -c -fpic -O file.c
> gcc -c -fpic -O iarray.c
> gcc -c -fpic -O error.c
> gcc -c -fpic -O globdef.c
> gcc -c -fpic -O putget.c
> gcc -c -fpic -O putgetg.c
> gcc -c -fpic -O sharray.c
> case `uname -sv` in \
> 'AIX 3') \
> CFLAGS=`echo -fpic -O | sed 's/-O[23]//g;s/-O//g'`; \
> gcc -c $CFLAGS string.c; \
> ;; \
> *) \
> gcc -c -fpic -O string.c; \
> ;; \
> esac
> gcc -c -fpic -O var.c
> gcc -c -fpic -O xdrposix.c
> ar rcuv libnetcdf.a array.o attr.o cdf.o dim.o file.o iarray.o error.o
> globdef.o putget.o putgetg.o sharray.o string.o var.o xdrposix.o
> c - array.o
> c - attr.o
> c - cdf.o
> c - dim.o
> c - file.o
> c - iarray.o
> c - error.o
> c - globdef.o
> c - putget.o
> c - putgetg.o
> c - sharray.o
> c - string.o
> c - var.o
> c - xdrposix.o
> case "" in \
> '') ;; \
> *) ar rucv libnetcdf.a ;; \
> esac
> ranlib libnetcdf.a
> make[1]: Leaving directory `/usr/local/netcdf-2.4.3/src/libsrc'
>
> returning to directory /usr/local/netcdf-2.4.3/src
>
>
> making `all' in directory /usr/local/netcdf-2.4.3/src/ncdump
>
> make[1]: Entering directory `/usr/local/netcdf-2.4.3/src/ncdump'
> gcc -c -O -I../libsrc ncdump.c
> gcc -c -O -I../libsrc vardata.c
> gcc -c -O -I../libsrc dumplib.c
> gcc -o ncdump -O ncdump.o vardata.o dumplib.o ../libsrc/libnetcdf.a
> file.o(.text+0x2c): undefined reference to `GLOBAL_OFFSET_TABLE_'
> file.o(.text+0x9d): undefined reference to `GLOBAL_OFFSET_TABLE_'
> file.o(.text+0x17e): undefined reference to `GLOBAL_OFFSET_TABLE_'
> file.o(.text+0x27d): undefined reference to `GLOBAL_OFFSET_TABLE_'
> file.o(.text+0x2dd): undefined reference to `GLOBAL_OFFSET_TABLE_'
> file.o(.text+0x370): more undefined references to `GLOBAL_OFFSET_TABLE_'
> follow
> make[1]: *** [ncdump] Error 127
> make[1]: Leaving directory `/usr/local/netcdf-2.4.3/src/ncdump'
> make: *** [ncdump/all] Error 127
I've never seen this problem before (but then I don't use Linux or
gcc(1) all that much either). I suggest checking the gcc(1)
documentation for references to the `global offset table'. It could
also be the case that the `-fpic' option is somethow messing things up.
You might try editing the makefiles to remove this option, `make(1)ing
clean', and `re-make(1)ing all'.
Do you have a gcc(1) guru available? If not, then you might try posting
to the USENET GNU newsgroup.
--------
Steve Emmerson <address@hidden>