如何调试autoconf失败在Ubuntu 12.04上构建alsa-utils 1.1.2?

时间:2016-11-23 11:09:28

标签: ubuntu-12.04 autoconf alsa

我的客户仍然使用Ubuntu 12.04 x86_64作为软件开发环境,即使Ubuntu 16.04 x86_64在此发布时可用。

配置alsa-utils 1.1.2软件包时会发生以下错误:

checking panel.h usability... yes
checking panel.h presence... yes
checking for panel.h... yes
checking menu.h usability... yes
checking menu.h presence... yes
checking for menu.h... yes
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

在Ubuntu 16.04 x86_64上成功完成相同的配置。

调试此错误的最佳方法是什么?

configure命令为:

configure \
    --target=x86_64-buildroot-linux-gnu \
    --host=x86_64-buildroot-linux-gnu \
    --build=x86_64-pc-linux-gnu \
    --prefix=/usr \
    --exec-prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --program-prefix="" \
    --disable-dependency-tracking \
    --disable-xmlto \
    --with-curses=ncurses \
    --disable-alsaloop \
    --disable-bat

2 个答案:

答案 0 :(得分:2)

检查生成的config.log文件,它将显示尝试使测试程序与libpanel链接的构建命令失败。

答案 1 :(得分:0)

配置Alsautils不输出完全日志错误, 也许您在构建ncurses中缺少libtinfo.so。使用选项--with-libtic --with-libterm重建 ncurses ,并检查状态/usr/lib/libtinfo.so,然后再次尝试使用选项--disable-nls构建alsautils,以使libpanelw.so不会出现相同的错误( w_char面板)或使用支持宽字符(--enable-widec)的ncurses。

另请参阅LFS http://linuxfromscratch.org/lfs/view/stable/chapter06/ncurses.html中的build ncurses