[asterisk-bugs] [JIRA] (ASTERISK-20687) make menuselect fails on asterisk 1.8 due to unreferenced linker lib -ltinfo

Joshua Colp (JIRA) noreply at issues.asterisk.org
Tue Dec 19 05:21:08 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-20687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Colp updated ASTERISK-20687:
-----------------------------------

    Affects Version/s: 13.18.4

> make menuselect fails on asterisk 1.8 due to unreferenced linker lib -ltinfo
> ----------------------------------------------------------------------------
>
>                 Key: ASTERISK-20687
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20687
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/BuildSystem
>    Affects Versions: 1.8.18.0, 13.18.4
>            Reporter: Richard Hamnett
>         Attachments: config.log
>
>
> {noformat}
> # make menuselect
> CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
> make[1]: Entering directory `/root/asterisk-1.8.18.0/menuselect'
> make[1]: `makeopts' is up to date.
> make[1]: Leaving directory `/root/asterisk-1.8.18.0/menuselect'
> CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" cmenuselect
> make[1]: Entering directory `/root/asterisk-1.8.18.0/menuselect'
> gcc  -o cmenuselect menuselect.o strcompat.o menuselect_curses.o mxml/libmxml.a -lncurses 
> /usr/bin/ld: menuselect_curses.o: undefined reference to symbol 'keypad'
> /usr/bin/ld: note: 'keypad' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line
> /lib64/libtinfo.so.5: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
> make[1]: *** [cmenuselect] Error 1
> make[1]: Leaving directory `/root/asterisk-1.8.18.0/menuselect'
> make: *** [menuselect/cmenuselect] Error 2
> {noformat}
> To fix, I edited menuselect/Makefile and changed the line from
>   C_LIBS +=$(NCURSES_LIB)
> to 
>   C_LIBS +=$(NCURSES_LIB) -ltinfo
> I am on Amazon Linux AMI release 2012.09
> Seems that the configure does not correctly include the -ltinfo into the NCURSES_LIB variable.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list