Menu

problem with ncurses6.4

2023-03-02
2023-03-04
  • steve williams

    steve williams - 2023-03-02

    installing gnucobol03.20rc2 with ncurses6.4 gives the following make error

    steve@steve-IdeaPad-3-15IAU7:~/Desktop/gnucobol-3.2-rc2$ make > makelog
    /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libncurses.a(lib_tputs.o): warning: relocation against `ospeed' in read-only section `.text'
    /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../../lib/libncurses.a(lib_addch.o): relocation R_X86_64_PC32 against symbol `TABSIZE' can not be used when making a shared object; recompile with -fPIC
    /usr/bin/ld: final link failed: bad value
    collect2: error: ld returned 1 exit status
    make[2]: *** [Makefile:569: libcob.la] Error 1
    make[1]: *** [Makefile:656: all-recursive] Error 1
    make: *** [Makefile:564: all] Error 2
    

    makelog shows no error

     

    Last edit: Simon Sobisch 2023-03-03
    • Simon Sobisch

      Simon Sobisch - 2023-03-02

      It looks like it true to link against a static version of ncurses.

      Is there any difference if you explicit configure with --enable-shared --disable-static? [I don't know, so I'm asking]

      Where did you got that ncurses from?

       
  • Anonymous

    Anonymous - 2023-03-02

    configure with --enable-shared --disable-static > no change

    I think I got it from github.

    I'm going to try an earlier version of ncurses.

     
    • Simon Sobisch

      Simon Sobisch - 2023-03-02

      Before trying that, try to re-configure ncurses using those options.

       
  • steve williams

    steve williams - 2023-03-03

    same error with both ncurses6.4 and ncurses6.3 both with the re-configure
    I got them from invisibleisland

     
    • Simon Sobisch

      Simon Sobisch - 2023-03-03

      So you did re-configure both ncurses and GnuCOBOL?

       
  • Anonymous

    Anonymous - 2023-03-03

    yes. both on gnucobol 3.2-rc2 and on ncurses 6.4 and 6.3 after make distclean

     
  • steve williams

    steve williams - 2023-03-04

    ncurses ./configure --with-shared

    works

     

Anonymous
Anonymous

Add attachments
Cancel