打印
[技术问题解答]

ubuntu 14.04装ltib Failed building lkc

[复制链接]
1108|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
chenxr1990|  楼主 | 2016-4-19 20:01 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
不是虚拟机,主机14.04ubuntu *64 库文件安装没有问题 执行./ltib失败问题描述如下

Processing platform: Host support packages
============================================
using /home/jute/my_imx28/L2.6.35_1.1.0_130130_source/source/ltib/config/platform/host/ltib.preconfig

Processing: fake-provides
===========================

Processing: mkspooflinks
==========================

Processing: distcc
====================

Processing: ccache
====================

Processing: bison
===================

Processing: flex
==================

Processing: texinfo
=====================

Processing: autoconf
======================

Processing: libtool
=====================

Processing: lkc
=================
Build path taken because: no prebuilt rpm,

rpmbuild --dbpath ///opt/freescale/ltib/var/lib/rpm --target x86_64 --define '_unpackaged_files_terminate_build 0' --define '_target_cpu x86_64' --define '__strip strip' --define '_topdir /opt/freescale/ltib/usr/src/rpm' --define '_prefix /opt/freescale/ltib/usr' --define '_tmppath /home/jute/my_imx28/L2.6.35_1.1.0_130130_source/source/ltib/tmp' --define '_rpmdir /opt/freescale/ltib/usr/src/rpm/RPMS'  --define '_mandir /opt/freescale/ltib/usr/share/man' --define '_sysconfdir /opt/freescale/ltib/etc' --define '_localstatedir /var' -bb --clean --rmsource  /home/jute/my_imx28/L2.6.35_1.1.0_130130_source/source/ltib/dist/lfs-5.1/lkc/lkc.spec
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /home/jute/my_imx28/L2.6.35_1.1.0_130130_source/source/ltib/tmp/rpm-tmp.30877
+ umask 022
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ rm -rf lkc-1.4
+ /bin/gzip -dc /opt/freescale/ltib/usr/src/rpm/SOURCES/lkc-1.4.tar.gz
+ tar -xvvf -
drwxr-sr-x roman/users       0 2003-06-16 01:21 lkc-1.4/
-rw-r--r-- roman/users    5167 2003-06-01 06:13 lkc-1.4/Makefile
-rw-r--r-- roman/users    3805 2003-03-16 01:05 lkc-1.4/Makefile.kernel
-rw-r--r-- roman/users     734 2002-10-21 03:01 lkc-1.4/README
-rw-r--r-- roman/users   10369 2003-06-07 06:00 lkc-1.4/conf.c
-rw-r--r-- roman/users    8878 2003-06-04 08:12 lkc-1.4/confdata.c
drwxr-sr-x roman/users       0 2002-10-21 03:05 lkc-1.4/example/
-rw-r--r-- roman/users     536 2002-10-21 02:45 lkc-1.4/example/miniconf.rb
-rw-r--r-- roman/users     804 2002-10-21 02:45 lkc-1.4/example/query.rb
-rw-r--r-- roman/users   25007 2003-05-13 02:49 lkc-1.4/expr.c
-rw-r--r-- roman/users    4890 2003-05-17 02:05 lkc-1.4/expr.h
-rw-r--r-- roman/users     103 2002-10-20 22:41 lkc-1.4/extconf.rb
-rw-r--r-- roman/users   40325 2003-06-02 04:45 lkc-1.4/gconf.c
-rw-r--r-- roman/users   20978 2003-03-15 22:00 lkc-1.4/gconf.glade
-rw-r--r-- roman/users    6565 2003-03-15 22:00 lkc-1.4/images.c
-rw-r--r-- roman/users    2770 2002-12-09 00:12 lkc-1.4/kconfig.i
-rw-r--r-- roman/users     644 2002-10-28 04:22 lkc-1.4/kconfig_load.c
-rw-r--r-- roman/users    9438 2003-06-01 06:09 lkc-1.4/lkc-language.txt
-rw-r--r-- roman/users    2739 2003-05-25 10:18 lkc-1.4/lkc.h
-rw-r--r-- roman/users    1619 2003-05-26 07:23 lkc-1.4/lkc_proto.h
-rw-r--r-- roman/users   17302 2003-05-29 05:02 lkc-1.4/mconf.c
-rw-r--r-- roman/users   10243 2003-06-05 05:47 lkc-1.4/menu.c
-rw-r--r-- roman/users   30879 2003-06-16 01:21 lkc-1.4/qconf.cc
-rw-r--r-- roman/users    5218 2003-04-21 07:53 lkc-1.4/qconf.h
-rw-r--r-- roman/users   15613 2003-06-07 06:00 lkc-1.4/symbol.c
-rw-r--r-- roman/users    7173 2003-05-27 02:21 lkc-1.4/zconf.l
-rw-r--r-- roman/users   14637 2003-05-27 02:21 lkc-1.4/zconf.y
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd lkc-1.4
+ echo Patch #0 (lkc-1.4-lxdialog.patch):
Patch #0 (lkc-1.4-lxdialog.patch):
+ patch -p1 -s
+ echo Patch #1 (lkc-1.4-1.patch):
Patch #1 (lkc-1.4-1.patch):
+ patch -p1 -s
+ echo Patch #2 (lkc-1.4-ncurses.patch):
Patch #2 (lkc-1.4-ncurses.patch):
+ patch -p1 -s
+ echo Patch #3 (lkc-1.4-help.patch):
Patch #3 (lkc-1.4-help.patch):
+ patch -p1 -s
+ echo Patch #4 (lkc-1.4-defaults-4.patch):
Patch #4 (lkc-1.4-defaults-4.patch):
+ patch -p1 -s
+ echo Patch #5 (lkc-1.4-search-5.patch):
Patch #5 (lkc-1.4-search-5.patch):
+ patch -p1 -s
+ echo Patch #6 (lkc-1.4-datestamp.patch):
Patch #6 (lkc-1.4-datestamp.patch):
+ patch -p1 -s
+ echo Patch #7 (lkc-1.4-dashsource.patch):
Patch #7 (lkc-1.4-dashsource.patch):
+ patch -p1 -s
+ echo Patch #8 (lkc-1.4-config_title-1.patch):
Patch #8 (lkc-1.4-config_title-1.patch):
+ patch -p1 -s
+ echo Patch #9 (lkc-1.4-config_filename-1.patch):
Patch #9 (lkc-1.4-config_filename-1.patch):
+ patch -p1 -s
+ exit 0
Executing(%build): /bin/sh -e /home/jute/my_imx28/L2.6.35_1.1.0_130130_source/source/ltib/tmp/rpm-tmp.30877
+ umask 022
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ cd lkc-1.4
+ make -j1 conf mconf
gcc -O0 -Wall -g -fPIC -c conf.c -o conf.o
conf.c: In function 'conf_string':
conf.c:163:20: warning: variable 'help' set but not used [-Wunused-but-set-variable]
  const char *def, *help;
                    ^
conf.c: In function 'conf_sym':
conf.c:197:6: warning: variable 'type' set but not used [-Wunused-but-set-variable]
  int type;
      ^
conf.c: In function 'conf_choice':
conf.c:272:6: warning: variable 'type' set but not used [-Wunused-but-set-variable]
  int type;
      ^
bison -l -b zconf -p zconf zconf.y
flex -L -Pzconf zconf.l
gcc -O0 -Wall -g -fPIC -c zconf.tab.c -o zconf.tab.o
In file included from zconf.tab.c:2498:0:
lex.zconf.c:3075:16: warning: 'input' defined but not used [-Wunused-function]
     static int input  (void)
                ^
gcc  conf.o zconf.tab.o -o conf
gcc -O0 -Wall -g -fPIC -c mconf.c -o mconf.o
mconf.c: In function 'search_page_dialog':
mconf.c:396:2: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign]
  strncpy(search_page_pattern, dialog_input_result, sizeof(search_page_pattern));
  ^
In file included from mconf.c:22:0:
/usr/include/string.h:132:14: note: expected 'const char * __restrict__' but argument is of type 'unsigned char *'
extern char *strncpy (char *__restrict __dest,
              ^
mconf.c: In function 'search_conf':
mconf.c:421:2: warning: pointer targets in passing argument 1 of 'sym_re_search' differ in signedness [-Wpointer-sign]
  sym_arr = sym_re_search(dialog_input_result);
  ^
In file included from mconf.c:31:0:
lkc_proto.h:23:3: note: expected 'const char *' but argument is of type 'unsigned char *'
P(sym_re_search,struct symbol **,(const char *pattern));
   ^
lkc.h:16:38: note: in definition of macro 'P'
#define P(name,type,arg) extern type name arg
                                      ^
mconf.c: In function 'conf_string':
mconf.c:937:4: warning: pointer targets in passing argument 2 of 'sym_set_string_value' differ in signedness [-Wpointer-sign]
    if (sym_set_string_value(menu->sym, dialog_input_result))
    ^
In file included from mconf.c:31:0:
lkc_proto.h:33:3: note: expected 'const char *' but argument is of type 'unsigned char *'
P(sym_set_string_value,bool,(struct symbol *sym, const char *newval));
   ^
lkc.h:16:38: note: in definition of macro 'P'
#define P(name,type,arg) extern type name arg
                                      ^
mconf.c: In function 'conf_load':
mconf.c:958:4: warning: pointer targets in passing argument 1 of 'conf_read' differ in signedness [-Wpointer-sign]
    if (!conf_read(dialog_input_result))
    ^
In file included from mconf.c:31:0:
lkc_proto.h:4:3: note: expected 'const char *' but argument is of type 'unsigned char *'
P(conf_read,int,(const char *name));
   ^
lkc.h:16:38: note: in definition of macro 'P'
#define P(name,type,arg) extern type name arg
                                      ^
mconf.c: In function 'conf_save':
mconf.c:979:4: warning: pointer targets in passing argument 1 of 'conf_write' differ in signedness [-Wpointer-sign]
    if (!conf_write(dialog_input_result))
    ^
In file included from mconf.c:31:0:
lkc_proto.h:5:3: note: expected 'const char *' but argument is of type 'unsigned char *'
P(conf_write,int,(const char *name));
   ^
lkc.h:16:38: note: in definition of macro 'P'
#define P(name,type,arg) extern type name arg
                                      ^
mconf.c: At top level:
mconf.c:33:13: warning: 'menu_backtitle' defined but not used [-Wunused-variable]
static char menu_backtitle[128];
             ^
cd lxdialog && make
make[1]: Entering directory `/opt/freescale/ltib/usr/src/rpm/BUILD/lkc-1.4/lxdialog'
gcc  -DCURSES_LOC="<ncurses.h>" -I. -c checklist.c -o checklist.o
gcc  -DCURSES_LOC="<ncurses.h>" -I. -c menubox.c -o menubox.o
gcc  -DCURSES_LOC="<ncurses.h>" -I. -c textbox.c -o textbox.o
gcc  -DCURSES_LOC="<ncurses.h>" -I. -c yesno.c -o yesno.o
gcc  -DCURSES_LOC="<ncurses.h>" -I. -c inputbox.c -o inputbox.o
gcc  -DCURSES_LOC="<ncurses.h>" -I. -c util.c -o util.o
gcc  -DCURSES_LOC="<ncurses.h>" -I. -c msgbox.c -o msgbox.o
ar rc lxdialog.a checklist.o menubox.o textbox.o yesno.o inputbox.o util.o msgbox.o
ranlib lxdialog.a
make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/lkc-1.4/lxdialog'
gcc  -lncurses mconf.o zconf.tab.o lxdialog/lxdialog.a -o mconf
lxdialog/lxdialog.a(checklist.o): In function `print_item':
checklist.c:(.text+0x42): undefined reference to `wmove'
checklist.c:(.text+0x5c): undefined reference to `waddch'
checklist.c:(.text+0x82): undefined reference to `wmove'
checklist.c:(.text+0xdc): undefined reference to `wprintw'
checklist.c:(.text+0x108): undefined reference to `wprintw'
checklist.c:(.text+0x144): undefined reference to `wmove'
checklist.c:(.text+0x163): undefined reference to `waddch'
checklist.c:(.text+0x1a4): undefined reference to `waddnstr'
checklist.c:(.text+0x1c4): undefined reference to `wmove'
checklist.c:(.text+0x1d0): undefined reference to `wrefresh'
lxdialog/lxdialog.a(checklist.o): In function `print_arrows':
checklist.c:(.text+0x203): undefined reference to `wmove'
checklist.c:(.text+0x226): undefined reference to `acs_map'
checklist.c:(.text+0x235): undefined reference to `waddch'
checklist.c:(.text+0x24b): undefined reference to `waddnstr'
checklist.c:(.text+0x26a): undefined reference to `acs_map'
checklist.c:(.text+0x279): undefined reference to `waddch'
checklist.c:(.text+0x280): undefined reference to `acs_map'
checklist.c:(.text+0x28f): undefined reference to `waddch'
checklist.c:(.text+0x296): undefined reference to `acs_map'
checklist.c:(.text+0x2a5): undefined reference to `waddch'
checklist.c:(.text+0x2ac): undefined reference to `acs_map'
checklist.c:(.text+0x2bb): undefined reference to `waddch'
checklist.c:(.text+0x2dd): undefined reference to `wmove'
checklist.c:(.text+0x314): undefined reference to `acs_map'
checklist.c:(.text+0x323): undefined reference to `waddch'
checklist.c:(.text+0x339): undefined reference to `waddnstr'
checklist.c:(.text+0x358): undefined reference to `acs_map'

util.c:(.text+0xa33): undefined reference to `has_colors'
util.c:(.text+0xa6d): undefined reference to `wmove'
util.c:(.text+0xa82): undefined reference to `winch'
util.c:(.text+0xa94): undefined reference to `waddch'
util.c:(.text+0xac4): undefined reference to `wmove'
util.c:(.text+0xad0): undefined reference to `winch'
util.c:(.text+0xae2): undefined reference to `waddch'
util.c:(.text+0xaee): undefined reference to `winch'
util.c:(.text+0xb00): undefined reference to `waddch'
util.c:(.text+0xb20): undefined reference to `wnoutrefresh'
collect2: error: ld returned 1 exit status
make: *** [mconf] Error 1
error: Bad exit status from /home/jute/my_imx28/L2.6.35_1.1.0_130130_source/source/ltib/tmp/rpm-tmp.30877 (%build)


RPM build errors:
    Bad exit status from /home/jute/my_imx28/L2.6.35_1.1.0_130130_source/source/ltib/tmp/rpm-tmp.30877 (%build)
Build time for lkc: 1 seconds

Failed building lkc
Died at ./ltib line 1392.
traceback:
main::build_host_rpms:1392
  main::host_checks:1447
   main:554


Started: Tue Apr 19 19:43:24 2016
Ended:   Tue Apr 19 19:43:31 2016
Elapsed: 7 seconds

These packages failed to build:
lkc

Build Failed

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

4

帖子

0

粉丝