[gradsusr] Instalation problem
Jennifer Adams
jma at cola.iges.org
Wed Nov 30 11:05:16 EST 2011
On Nov 29, 2011, at 2:27 PM, Huber Paúl Gilt López wrote:
> Hello,
>
> I was compiling the grads-2.0.1 in Ubuntu 10.10 but I found this error when linking all objects files.
>
> Please help me,
>
> Huber
>
> g++ -g -O2 -rdynamic -o grads grads.o gxsubs.o gxmeta.o gxchpl.o gxcntr.o gxstrm.o gxwmap.o gxshad.o gxshad2.o gaexpr.o gafunc.o gautil.o gagx.o gscrpt.o gamach.o bufrstn.o gabufr.o gabufrtbl.o gxX.o gxdxwd.o galloc.o dodstn.o gaddes.o gaio.o gacfg.o gauser.o gasdf.o gatxt.o -L/home/clima/grads/lib -lX11 /home/clima/grads/lib/libreadline.a /home/clima/grads/lib/libncurses.a /home/clima/grads/lib/libgd.a /home/clima/grads/lib/libpng12.a /home/clima/grads/lib/libz.a /home/clima/grads/lib/libjpeg.a /home/clima/grads/lib/libgrib2c.a /home/clima/grads/lib/libjasper.a /home/clima/grads/lib/libpng12.a /home/clima/grads/lib/libz.a /home/clima/grads/lib/libmfhdf.a /home/clima/grads/lib/libdf.a /home/clima/grads/lib/libudunits.a /home/clima/grads/lib/libsz.a /home/clima/grads/lib/libjpeg.a /home/clima/grads/lib/libz.a /home/clima/grads/lib/libhdf5.a /home/clima/grads/lib/libsz.a /home/clima/grads/lib/libz.a /home/clima/grads/lib/libudunits.a /home/clima/grads/lib/libnetcdf.a /home/clima/grads/lib/libhdf5_hl.a /home/clima/grads/lib/libhdf5.a /home/clima/grads/lib/libz.a /home/clima/grads/lib/libsz.a /home/clima/grads/lib/libcurl.a /home/clima/grads/lib/libshp.a /home/clima/grads/lib/libgadap.a /home/clima/grads/lib/libdapclient.a /home/clima/grads/lib/libdap.a /home/clima/grads/lib/libcurl.a /home/clima/grads/lib/libxml2.a /home/clima/grads/lib/libz.a -lpthread -lm -ldl -lrt -lm -lmfhdf -ldf
Try removing the "-lm -lmfhdf -ldf" from the end of your link statement. You are already statically linking with /home/clima/grads/lib/libmfhdf.a and /home/clima/grads/lib/libdf.a and you don't need "-lm" a second time. See if that makes a difference…
--Jennifer
> gaio.o: In function `gaclosehdf':
> /home/clima/grads/grads-2.0.1/src/gaio.c:5102: undefined reference to `SDend'
> gaio.o: In function `gaophdf':
> /home/clima/grads/grads-2.0.1/src/gaio.c:5022: undefined reference to `SDstart'
> gaio.o: In function `hdfpattrs':
> /home/clima/grads/grads-2.0.1/src/gaio.c:4350: undefined reference to `SDfileinfo'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4379: undefined reference to `SDattrinfo'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4354: undefined reference to `SDnametoindex'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4357: undefined reference to `SDselect'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4358: undefined reference to `SDgetinfo'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4514: undefined reference to `SDreadattr'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4495: undefined reference to `SDreadattr'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4476: undefined reference to `SDreadattr'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4457: undefined reference to `SDreadattr'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4438: undefined reference to `SDreadattr'
> gaio.o:/home/clima/grads/grads-2.0.1/src/gaio.c:4419: more undefined references to `SDreadattr' follow
> gaio.o: In function `hdfattr':
> /home/clima/grads/grads-2.0.1/src/gaio.c:3994: undefined reference to `SDfindattr'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4002: undefined reference to `SDattrinfo'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4084: undefined reference to `SDreadattr'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4097: undefined reference to `SDreadattr'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4110: undefined reference to `SDreadattr'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4019: undefined reference to `SDreadattr'
> /home/clima/grads/grads-2.0.1/src/gaio.c:4032: undefined reference to `SDreadattr'
> gaio.o:/home/clima/grads/grads-2.0.1/src/gaio.c:4058: more undefined references to `SDreadattr' follow
> gaio.o: In function `gahrow':
> /home/clima/grads/grads-2.0.1/src/gaio.c:3130: undefined reference to `SDselect'
> /home/clima/grads/grads-2.0.1/src/gaio.c:3043: undefined reference to `SDnametoindex'
> /home/clima/grads/grads-2.0.1/src/gaio.c:3062: undefined reference to `SDselect'
> /home/clima/grads/grads-2.0.1/src/gaio.c:3184: undefined reference to `SDgetinfo'
> /home/clima/grads/grads-2.0.1/src/gaio.c:3187: undefined reference to `SDgetinfo'
> /home/clima/grads/grads-2.0.1/src/gaio.c:3040: undefined reference to `SDnametoindex'
> /home/clima/grads/grads-2.0.1/src/gaio.c:3291: undefined reference to `SDreaddata'
> /home/clima/grads/grads-2.0.1/src/gaio.c:3273: undefined reference to `SDreaddata'
> /home/clima/grads/grads-2.0.1/src/gaio.c:3322: undefined reference to `SDreaddata'
> /home/clima/grads/grads-2.0.1/src/gaio.c:3309: undefined reference to `SDreaddata'
> /home/clima/grads/grads-2.0.1/src/gaio.c:3255: undefined reference to `SDreaddata'
> gaio.o:/home/clima/grads/grads-2.0.1/src/gaio.c:3238: more undefined references to `SDreaddata' follow
> gaio.o: In function `gahrow':
> /home/clima/grads/grads-2.0.1/src/gaio.c:3098: undefined reference to `SDselect'
> gauser.o: In function `gaqury':
> /home/clima/grads/grads-2.0.1/src/gauser.c:4070: undefined reference to `SDstart'
> /home/clima/grads/grads-2.0.1/src/gauser.c:4081: undefined reference to `SDstart'
> /home/clima/grads/grads-2.0.1/src/gauser.c:4202: undefined reference to `SDend'
> gasdf.o: In function `read_one_dimension':
> /home/clima/grads/grads-2.0.1/src/gasdf.c:3060: undefined reference to `SDselect'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:3061: undefined reference to `SDgetinfo'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:3075: undefined reference to `SDreaddata'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:3089: undefined reference to `SDreaddata'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:3082: undefined reference to `SDreaddata'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:3068: undefined reference to `SDreaddata'
> gasdf.o: In function `sdfdeflev':
> /home/clima/grads/grads-2.0.1/src/gasdf.c:1509: undefined reference to `SDselect'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:1510: undefined reference to `SDgetinfo'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:1547: undefined reference to `SDreaddata'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:1522: undefined reference to `SDreaddata'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:1597: undefined reference to `SDreaddata'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:1572: undefined reference to `SDreaddata'
> gasdf.o: In function `read_hdfatts':
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2585: undefined reference to `SDnametoindex'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2587: undefined reference to `SDselect'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2601: undefined reference to `SDattrinfo'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2693: undefined reference to `SDreadattr'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2682: undefined reference to `SDreadattr'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2671: undefined reference to `SDreadattr'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2660: undefined reference to `SDreadattr'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2649: undefined reference to `SDreadattr'
> gasdf.o:/home/clima/grads/grads-2.0.1/src/gasdf.c:2638: more undefined references to `SDreadattr' follow
> gasdf.o: In function `read_metadata':
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2356: undefined reference to `SDselect'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2362: undefined reference to `SDgetinfo'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2368: undefined reference to `SDnametoindex'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2376: undefined reference to `SDgetdimid'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2229: undefined reference to `SDfileinfo'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2238: undefined reference to `SDselect'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2239: undefined reference to `SDgetinfo'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2247: undefined reference to `SDgetdimid'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2248: undefined reference to `SDdiminfo'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2274: undefined reference to `SDselect'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2275: undefined reference to `SDgetinfo'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2277: undefined reference to `SDgetdimid'
> /home/clima/grads/grads-2.0.1/src/gasdf.c:2278: undefined reference to `SDdiminfo'
> collect2: ld returned 1 exit status
> make[2]: *** [grads] Error 1
> make[2]: Leaving directory `/home/clima/grads/grads-2.0.1/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/clima/grads/grads-2.0.1/src'
> make: *** [all-recursive] Error 1
>
>
> Atentamente,
> Huber Paúl Gilt López
> Adjunto de Ingenieria
> Teléfono 3172300 anexo 173
> Instituto Geofísico del Perú
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20111130/fd73d513/attachment-0003.html
More information about the gradsusr
mailing list