[pcre-dev] [Bug 690] New: readline does not provide termcap …

Top Page
Delete this message
Author: Poor Yorick
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 690] New: readline does not provide termcap functions
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=690
           Summary: readline does not provide termcap functions
           Product: PCRE
           Version: N/A
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: org.exim@???
                CC: pcre-dev@???



From readline/5.2/INSTALL:

        Readline uses the termcap functions, but does not link with the termcap
        or curses library itself, allowing applications which link with
        readline the to choose an appropriate library.



if --enable-pcretest-libreadline is used, pcre-7.6 checks for readline, but
does not link to any termcap-like library. configure.ac should do something
like the following example (from R-2.6.2):

    AC_CHECK_LIB(ncurses, main, [],
                 AC_CHECK_LIB(termcap, main, [],
                              AC_CHECK_LIB(termlib, main)))
    AC_CHECK_LIB(readline, rl_callback_read_char)



SYMPTOM

        gcc -m32 -O2 -Wl,-rpath
        -Wl,/grid/gro/vol/gbl_statcomp_test/x86-32-linux/lib -Wl,-rpath
        -Wl,/grid/gro/vol/gbl_statcomp_test/x86-32-linux/lib64
        -Wl,--enable-new-dtags -o .libs/pcretest pcretest.o
        -L/grid/gro/vol/gbl_statcomp_test/x86-32-linux/lib
        -L/grid/gro/vol/gbl_statcomp_test/x86-32-linux/lib64
        ./.libs/libpcreposix.so


/grid/gro/vol/gbl_statcomp_test/x86-32-linux/src/pcre-7.6/pcre-7.6/.libs/libpcre.so
        -lz -lbz2 -lreadline  -Wl,--rpath
        -Wl,/grid/gro/vol/gbl_statcomp_test/x86-32-linux/pcre-7.6/lib
        /grid/gro/vol/gbl_statcomp_test/x86-32-linux/lib/libreadline.so:
        undefined reference to `PC'
        /grid/gro/vol/gbl_statcomp_test/x86-32-linux/lib/libreadline.so:
        undefined reference to `tgetflag'
        /grid/gro/vol/gbl_statcomp_test/x86-32-linux/lib/libreadline.so:
        undefined reference to `tgetent'
        /grid/gro/vol/gbl_statcomp_test/x86-32-linux/lib/libreadline.so:
        undefined reference to `UP'
        /grid/gro/vol/gbl_statcomp_test/x86-32-linux/lib/libreadline.so:
        undefined reference to `tputs'
        /grid/gro/vol/gbl_statcomp_test/x86-32-linux/lib/libreadline.so:
        undefined reference to `tgoto'
        /grid/gro/vol/gbl_statcomp_test/x86-32-linux/lib/libreadline.so:
        undefined reference to `tgetnum'
        /grid/gro/vol/gbl_statcomp_test/x86-32-linux/lib/libreadline.so:
        undefined reference to `BC'
        /grid/gro/vol/gbl_statcomp_test/x86-32-linux/lib/libreadline.so:
        undefined reference to `tgetstr' collect2: ld returned 1 exit status
        make[1]: *** [pcretest] Error 1 make[1]: Leaving directory
        `/grid/gro/vol/gbl_statcomp_test/x86-32-linux/src/pcre-7.6/pcre-7.6'



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email