[gradsusr] Problems compiling on Ubuntu 16.04

Jennifer M Adams jadams21 at gmu.edu
Thu Jan 3 15:46:38 EST 2019


Once we figure out what else is missing, I will update my centos supplibs tarball. Here is libreadline: ftp://cola.gmu.edu/pub/jma/supp.lib.readline.tar.gz
which contains (some are symlinks):
./lib/libreadline.a
./lib/libreadline.so
./lib/libreadline.so.5
./lib/libreadline.so.5.0
./lib/libreadline.so.5.0.old



> On Jan 3, 2019, at 2:52 PM, Stephen Woodbridge <stephenwoodbridge37 at gmail.com> wrote:
> 
> Hi Jennifer,
> Making progress but not quite there yet. can't find -lreadline
> 
> libtool: link: gcc -shared  -fPIC -DPIC  .libs/libgradspy_la-grads.o .libs/libgradspy_la-gxsubs.o .libs/libgradspy_la-gxmeta.o .libs/libgradspy_la-gxchpl.o .libs/libgradspy_la-gxcntr.o .libs/libgradspy_la-gxstrm.o .libs/libgradspy_la-gxdb.o .libs/libgradspy_la-gxwmap.o .libs/libgradspy_la-gxshad.o .libs/libgradspy_la-gxshad2.o .libs/libgradspy_la-gaexpr.o .libs/libgradspy_la-gafunc.o .libs/libgradspy_la-gautil.o .libs/libgradspy_la-gagx.o .libs/libgradspy_la-gscrpt.o .libs/libgradspy_la-gamach.o .libs/libgradspy_la-gatxt.o .libs/libgradspy_la-galloc.o .libs/libgradspy_la-gaddes.o .libs/libgradspy_la-gacfg.o .libs/libgradspy_la-gaio.o .libs/libgradspy_la-gauser.o .libs/libgradspy_la-gasdf.o .libs/libgradspy_la-bufrstn.o .libs/libgradspy_la-gabufr.o .libs/libgradspy_la-gabufrtbl.o -Wl,-rpath -Wl,/usr/local/lib/grads/2.2/supplibs/lib -Wl,-rpath -Wl,/usr/local/lib/grads/2.2/supplibs/lib -L/usr/local/lib/grads/2.2/supplibs//lib -lreadline -lncurses -lgrib2c /usr/local/lib/grads/2.2/supplibs/lib/libjasper.a /usr/local/lib/grads/2.2/supplibs/lib/libpng15.so -lmfhdf -ldf -L/usr/local/lib/grads/2.2/supplibs/lib -ludunits /usr/local/lib/grads/2.2/supplibs/lib/libnetcdf.so -lrt /usr/local/lib/grads/2.2/supplibs/lib/libhdf5_hl.so /usr/local/lib/grads/2.2/supplibs/lib/libhdf5.so -ldl /usr/local/lib/grads/2.2/supplibs/lib/libcurl.so -lssl -lcrypto /usr/local/lib/grads/2.2/supplibs/lib/libtiff.so -ljpeg -lz -lc -lgeotiff -lshp -lm  -O2   -Wl,-soname -Wl,libgradspy.so.0 -o .libs/libgradspy.so.0.1.0
> /usr/bin/ld: cannot find -lreadline
> collect2: error: ld returned 1 exit status
> Makefile:696: recipe for target 'libgradspy.la' failed
> make[2]: *** [libgradspy.la] Error 1
> 
> from ./configure output
> 
> readline
> --------
> looking in /usr/local/lib/grads/2.2/supplibs/
> checking readline/readline.h usability... yes
> checking readline/readline.h presence... yes
> checking for readline/readline.h... yes
> checking readline/history.h usability... yes
> checking readline/history.h presence... yes
> checking for readline/history.h... yes
> checking for tgetent in -lreadline... no
> checking for tgetent in -lncurses... yes
> 
> please send the lib/libreadline.* files
> 
> If we can get this to work, I'm happy to write up how.
> 
> Thanks,
>   -Steve
> 
> On 1/3/2019 2:03 PM, Jennifer M Adams wrote:
>> 
>> Hi, Steve —
>> Attached is a tarball that contains this:
>> a ./readline
>> a ./readline/readline.h
>> a ./readline/keymaps.h
>> a ./readline/tilde.h
>> a ./readline/rlconf.h
>> a ./readline/chardefs.h
>> a ./readline/history.h
>> a ./readline/rlstdc.h
>> a ./readline/rltypedefs.h
>> 
>> You should untar it in $SUPPLIBS/include/.
>> —Jennifer
>> 
>>> On Jan 3, 2019, at 1:45 PM, Stephen Woodbridge <stephenwoodbridge37 at gmail.com> wrote:
>>> 
>>> Hi Jennifer,
>>> 
>>> Thank you for your quit response. Also, I have not received the response in email, but found it in the archives.
>>> 
>>> I removed the symlinks that I made to /usr/lib and I edited all the paths in *.la files and that seems to fix the initial problem.
>>> 
>>> cd /usr/local/lib/grads/2.2/supplibs/lib
>>> 
>>> vi *.la
>>> 
>>> and did  :%s at local/grads at local/lib/grads at g  on each file and saved the results.
>>> 
>>> Now I run into this issue of a missing readline/history.h file:
>>> 
>>> /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I. -I/usr/local/lib/grads/2.2/supplibs//include -I/usr/local/lib/grads/2.2/supplibs//include  -DSHRDOBJ -g -O2 -rdynamic -c -o libgradspy_la-grads.lo `test -f 'grads.c' || echo './'`grads.c
>>> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I/usr/local/lib/grads/2.2/supplibs//include -I/usr/local/lib/grads/2.2/supplibs//include -DSHRDOBJ -g -O2 -rdynamic -c grads.c  -fPIC -DPIC -o .libs/libgradspy_la-grads.o
>>> grads.c:44:30: fatal error: readline/history.h: No such file or directory
>>> compilation terminated.
>>> 
>>> I have readline and editline packages installed via apt, but I don't see a readline/history.h in /usr/local and none in /usr/local/lib/grads/2.2/supplibs//include, in fact there is not readline dir there either
>>> 
>>> Can you send me that file and I'll add it to the supplibs/include and see if that fixes things?
>>> 
>>> -Steve
>>> 
>>>> Hi, Stephen —
>>>> The  *.la files in the $SUPPLIBS/lib directory were created by libtool and have the hard-coded paths to my working directories. I don’t really understand exactly how/when they get used when building the shared object files on new systems, but they are ruining the portability of my supplibs.
>>>> 
>>>> 1. Try moving them to a different location (I sometimes create a subdiretory called $SUPPLIBS/lib/hide and move files there if I don’t want the linker/compiler to find them). If that doesn’t work …
>>>> 
>>>> 2. Try editing those files with the path on your local system.
>>>> 
>>>> If neither of those options work, you have to rebuild the libraries. Guidance for doing that is athttp://cola.gmu.edu/grads/gadoc/supplibs2.html.  Please let me know which option works for you, because this question keeps rearing its ugly head and I want to nail down an answer.
>>>> 
>>>> —Jennifer
>>> 
>>> ---
>>> This email has been checked for viruses by Avast antivirus software.
>>> https://secure-web.cisco.com/1D439k-wN_zXpaKiOM9u7Ivd--PeazOPuPYI1dQ_GugoI_m-KGMScdSO5weWPNjUvM_YhdcpfFuFC8Qr3Zlv7_2An0rQUzHROtx0lsnLTDcKwv6JZrVjojhmDE8sVmpUU0e7hXLyt_7Oy3WAVLpotPEs6ZhNz_4GlYNC4ZA1K39Nf6o0HFVxNOGcqPxpRIXcgawyPzz_vJuEKTzVXYOM_fDJkOj5C4MaYwspas2c_bEHJW0IvalrEaEhpNrzBRgeQT_U0RjVuT8JPxa6ELsfFuB9KW0JkrNZUPb225MoOZG-UECfHOPZPtItrzfQU1eJYQNadzNRV8X16C1T1RN8mK_rXj5QnDMNgNA2neE53Ni96nBKPdfyOH8KfQxAndiLyZdCqqJ5RpS2vURpFypK7Vy-aiHHheSw4jCIPy5oEwc9WBk55zf9QregVBXTJo6IVtb8VNlOeGg_ECp2mUPq0_A/https%3A%2F%2Fwww.avast.com%2Fantivirus
>>> 
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://secure-web.cisco.com/1dshV9hnvSOg0_9ymPEquXM97k9qd1cog3HCcsRUeEzxSaQelrLTYXa8g6p2rdI5nBwmWokwUXDM6t_6CEQlD4bisVw1fooXW5O9SdhNMq6wOCqNNm0lhnvpeq22SfHhdQGRecgc5H6CD4mj7hY8TuuTgmJqt7zAuBR1B5PG86IQeESQ13Dl---4vyF8tIbE8DaSNhZ735XmzjGByDuyv_T_icTwPADWhmX6oAFivdV25CnYLFNR2gNqkRehvekJ6HLFN3GJlltpT7htUCehg-gpy8KAoS3r959I7VbHtySVYj0MiFhaCWB920R9vLDYsTu-RoKezAqlvQ6WS6IOpndM1P6dcyRDAERaTzz5fAaPCQGlxyP5kYJqMmB1dy1ULJX1gFCNq2E9ImUSMp7RvCdtfbrKXpRCdD1YH8n8a-ILspy1cSz-kYEJqwVL5VxTE/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr
>> --
>> Jennifer Miletta Adams
>> Center for Ocean-Land-Atmosphere Studies (COLA)
>> George Mason University
>> 
>> 
>> 
> 
> 
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://secure-web.cisco.com/13ntwq1EP-PDB2BCzVVgJ_3XEM_f9bBoIZjOtW7DBrVSXmnOI_dNAO2YsY7chdqowvQG93fSpzoctppQJGP_9gMUfCTcMikr3wE3ov_HF10mDb-cLPuZZRuORcQiLVzCcthWfAZ958sxSumpnzvCBGA_AmRYu9puvfxdDHSaDgw2jTBVfiISWSYFZJwlP6rqc9coAG3sqyr3sdb107GT0m9SkHZUDv1UgtG6jjllP8bYKQ-9T_UMw6c6cWn8LIfurCmpSVm5ECIjNxFZ7A5BM7mDWf1T_hvJbHolJ4wIN0-ZYcO6h76YyJ8skWIW5T7qC0-EOzks10dtjOcN2kHn73pFcvISArG1_37NMjLq47polyGkvgI3alLXIAUgFlCYVuMBkBXY-cHFgzCLwSLkpfxk1CVvzS1LMNFGdDYsRZv9JOBlPZhq8QoyU3voh1Jm_/https%3A%2F%2Fwww.avast.com%2Fantivirus
> 
> 

--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University






More information about the gradsusr mailing list