Modify

Opened 7 years ago

Last modified 4 years ago

#8715 new defect

compiling fails because libtinfo is not created

Reported by: MacBruins Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Backfire 10.03.1 RC4
Keywords: Cc:

Description

While compiling on 64-bit Fedora 13, failure occurs in alsa-utils:

checking form.h usability... yes
checking form.h presence... yes
checking for form.h... yes
checking for new_panel in -lpanel... no
configure: error: panel library not found

However alsa-utils configuration log shows the real problem is missing libtinfo, not libpanel

build_dir/target-i386_uClibc-0.9.30.1/alsa-utils-1.0.23/config.log:

configure:8709: checking for new_panel in -lpanel
configure:8744: i486-openwrt-linux-uclibc-gcc -o conftest -O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts   -I/project/openwrt/backfire/staging_dir/target-i386_uClibc-0.9.30.1/usr/include -I/project/openwrt/backfire/staging_dir/target-i386_uClibc-0.9.30.1/include -I/project/openwrt/backfire/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/usr/include -I/project/openwrt/backfire/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/include  -L/project/openwrt/backfire/staging_dir/target-i386_uClibc-0.9.30.1/usr/lib -L/project/openwrt/backfire/staging_dir/target-i386_uClibc-0.9.30.1/lib -L/project/openwrt/backfire/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/usr/lib -L/project/openwrt/backfire/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/lib  conftest.c -lpanel  -lncurses -ltinfo -lasound -lm -ldl -lpthread >&5
/project/openwrt/backfire/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.30.1/usr/lib/gcc/i486-openwrt-linux-uclibc/4.1.2/../../../../i486-openwrt-linux-uclibc/bin/ld: cannot find -ltinfo
collect2: ld returned 1 exit status
configure:8750: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
|
(lines removed for brevity)
| main ()
| {
| return new_panel ();
|   ;
|   return 0;
| }
configure:8785: result: no
configure:8790: error: panel library not found

libtinfo is missing because when configuring ncurses, "--with-termlib" is not an argument on the configure command line:

build_dir/target-i386_uClibc-0.9.30.1/ncurses-5.7/config.log 

  $ ./configure --target=i486-openwrt-linux --host=i486-openwrt-linux --build=x86_64-redhat-linux --program-prefix= --program-suffix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --disable-ipv6 --enable-echo --enable-const --enable-overwrite --disable-rpath --without-ada --without-cxx --without-cxx-binding --without-debug --without-profile --without-progs --with-normal --with-shared --with-terminfo-dirs=/usr/share/terminfo --with-default-terminfo-dir=/usr/share/terminfo

To work around this I created symlinks to libncurses from libtinfo. But the root cause is really alsa-utils, not OpenWRT. Config process of alsa-utils should check for presence of libtinfo.

Attachments (1)

alsautils-ncurses5-fix.patch (846 bytes) - added by lauri.vosandi@… 7 years ago.
Quick fix

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by lauri.vosandi@…

Quick fix

comment:1 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.