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

Michael L. Young (JIRA) noreply at issues.asterisk.org
Mon Nov 19 11:32:45 CST 2012


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

Michael L. Young reassigned ASTERISK-20687:
-------------------------------------------

    Assignee:     (was: Michael L. Young)
    
> 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
>    Affects Versions: 1.8.18.0
>            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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list