All,
I ran:
./ltib -m config
All the following build OK:
Processing: rpm-fs
Processing: fake-provide
Processing: mkspooflinks
Processing: distcc
Processing: ccache
Processing: bison
Processing: flex
Processing: texinfo
Processing: autoconf
Processing: libtool
...
LTIB breaks at lkc with this error:
...
Processing: lkc
=================
....
util.c:(.text+0xa58): undefined reference to `winch'
util.c:(.text+0xa6c): undefined reference to `waddch'
util.c:(.text+0xa8b): undefined reference to `wnoutrefresh'
collect2: ld returned 1 exit status
make: *** [mconf] Error 1
error: Bad exit status from /opt/freescale/ltib/tmp/rpm-tmp.33058 (%build)
RPM build errors:
Bad exit status from /opt/freescale/ltib/tmp/rpm-tmp.33058 (%build)
Build time for lkc: 2 seconds
Failed building lkc
Died at ./ltib line 1380.
traceback:
main::build_host_rpms:1380
main::host_checks:1435
main:542
I read somwere that it might be becuase of ncurses.
I installed libncurses5-dev
All,
I ran:
./ltib -m config
All the following build OK:
Processing: rpm-fs
Processing: fake-provide
Processing: mkspooflinks
Processing: distcc
Processing: ccache
Processing: bison
Processing: flex
Processing: texinfo
Processing: autoconf
Processing: libtool
...
LTIB breaks at lkc with this error:
...
Processing: lkc
=================
....
util.c:(.text+0xa58): undefined reference to `winch'
util.c:(.text+0xa6c): undefined reference to `waddch'
util.c:(.text+0xa8b): undefined reference to `wnoutrefresh'
collect2: ld returned 1 exit status
make: *** [mconf] Error 1
error: Bad exit status from /opt/freescale/ltib/tmp/rpm-tmp.33058 (%build)
RPM build errors:
Bad exit status from /opt/freescale/ltib/tmp/rpm-tmp.33058 (%build)
Build time for lkc: 2 seconds
Failed building lkc
Died at ./ltib line 1380.
traceback:
main::build_host_rpms:1380
main::host_checks:1435
main:542
----------------------------------------------------
I read somwere that it might be becuase of ncurses.
I installed "libncursesw5-dev" which was picked instead of "libncurses-dev"
and "ncurses-dev" which I tried.
Any clues what I am missing?
"/opt/freescale/ltib/tmp/rpm-tmp.33058" is attached:
Thanks,
Ad.
------------------------------
Original Attachment has been moved to: 518-optfreescaleltibtmprpmtmp.33058
I have the same problem as well.
I am running on ubuntu 16.04 and I have applied the patches suggested above.
I still see the same issue listed below:
gcc conf.o zconf.tab.o -o conf
143 zconf.tab.o: In function `menu_re_search':
144 /opt/freescale/ltib/usr/src/rpm/BUILD/lkc-1.4/menu.c:416: undefined reference to `next_id'
145 /opt/freescale/ltib/usr/src/rpm/BUILD/lkc-1.4/menu.c:427: undefined reference to `next_id'
146 collect2: error: ld returned 1 exit status
147 Makefile:106: recipe for target 'conf' failed
148 make: *** [conf] Error 1
1
How do use patch file?
Hi Curtis,
Thank you very much, with your patches according to the lkc, sparse and mux_server packages LTIB is running on xubuntu-12.04-64Bit.
@Ad
I'm using elftosb-version 10.12.02, so no modifications were necessary on these package.
Regards
I'd like to thank the person who came up with the oneiric-ltib-patch. Works great.
But then I use Ubuntu 12.04 LTS on VMWARE, and I end up an error complaining about .gvfs and premission denied. Anyone have a workaround? or patch?
I have tried 'chmod 777 /home/user/.gvfs' and './ltib --continue' but can not get past this point.
Evidently fuse has the resource mounted and I will always get a 'permission denied'.
Here is the error I get.
[fluff removed]..
+ umask 022
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ cd mux_sever-1.0
+ rm -rf /home/user/ltib/ltib-mpc5121ads-20090602/tmp/mux_sever
+ exit 0
Executing(--clean): /bin/sh -e /home/user/ltib/ltib-mpc5121ads-20090602/tmp/rpm-tmp.65905
+ umask 022
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ rm -rf mux_sever-1.0
+ exit 0
Build time for mux_server: 2 seconds
sudo /opt/freescale/ltib/usr/bin/rpm --root / --dbpath /opt/freescale/ltib/var/lib/rpm -e --allmatches --nodeps --define '_tmppath /home/user/ltib/ltib-mpc5121ads-20090602/tmp' mux_sever 2>/dev/null
sudo /opt/freescale/ltib/usr/bin/rpm --root / --dbpath /opt/freescale/ltib/var/lib/rpm --prefix / --ignorearch -ivh --replacepkgs --replacefiles --nodeps --excludedocs --define '_tmppath /home/user/ltib/ltib-mpc5121ads-20090602/tmp' /opt/freescale/ltib/usr/src/rpm/RPMS/x86_64/mux_sever-1.0-1.x86_64.rpm
error: failed to stat /home/user/.gvfs: Permission denied
Preparing... ##################################################
mux_sever ##################################################
Further to Curtis's post I found I needed to do the following, after installing his patch, to clear out the old failed build.
sudo rm -rf /opt/freescale/ltib/usr/src/rpm/BUILD/*
(I'm using Ubuntu 12.04)
Hi Duncan,
I have tried the Curtils' path,and sudo rm -rf /opt/freescale/ltib/usr/src/rpm/BUILD/*
but the error is still exist,the content of host_config.log is the same as Adolph's。
I'm using Ubuntu 12.04 too.
How to solve it?
Thank you
I am done with ltib in myy 11.10 host
http://vijay496.blogspot.in/2012/03/ltib-for-ubuntu-1110-error-faced.html
"Precise Pangolin" is the code name for Ubuntu 12.04, scheduled for release on 26 April 2012.
https://wiki.ubuntu.com/PrecisePangolin
Krishna Pavan said:
Hi Ad,
If your idea to downgrade to 10.04 is due to the reason that 10.04 is LTS, then you can try 12.04 [Precise Pangolin] which is also a LTS.
Regards Krishna Pavan
Hi Ad,
If your idea to downgrade to 10.04 is due to the reason that 10.04 is LTS, then you can try 12.04 [Precise Pangolin] which is also a LTS.
Regards Krishna Pavan
Curtis,
Thanks, your solution went a long way in the build.
My build now fails down the line when trying to build elftosb.
I found what the problem is with that.
But that fundamental error makes me lose trust in the source code.
They seem to have hard coded paths in the C code itself !!!
Processing: elftosb
=====================
Build path taken because: no prebuilt rpm,
...
etc.
...
-rw-rw-r-- root/root 33 2011-02-28 21:05 elftosb-11.09.01/test_files/test0.key
drwxrwxr-x root/root 0 2011-02-28 21:05 elftosb-11.09.01/winsupport/
-rw-rw-r-- root/root 0 2011-02-28 21:05 elftosb-11.09.01/winsupport/unistd.h
+ STATUS=0
+ [ 0 -ne 0 ]
+ cd elftosb-11.09.01
+ exit 0
Executing(%build): /bin/sh -e /opt/freescale/ltib/tmp/rpm-tmp.4660
+ umask 022
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ cd elftosb-11.09.01
+ make
make -C bld/linux -f /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/makefile.rules SRC_DIR=/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01 all;
make[1]: Entering directory `/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/bld/linux'
gcc -g -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/elftosb2 -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/keygen -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/sbtool -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/common -DLinux -c /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/common/AESKey.cpp
In file included from /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/common/AESKey.h:10:0,
from /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/common/AESKey.cpp:8:
/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/common/stdafx.h:30:36: fatal error: /usr/include/sys/types.h: No such file or directory
compilation terminated.
make[1]: *** [AESKey.o] Error 1
make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/bld/linux'
make: *** [all] Error 2
error: Bad exit status from /opt/freescale/ltib/tmp/rpm-tmp.4660 (%build)
RPM build errors:
Bad exit status from /opt/freescale/ltib/tmp/rpm-tmp.4660 (%build)
Build time for elftosb: 1 seconds
Failed building elftosb
Died at ./ltib line 1380.
traceback:
main::build_host_rpms:1380
main::host_checks:1435
main:542
Obviously the path in 11.10 has changed from:
"/usr/include/sys/types.h"
to
"/usr/include/i386-linux-gnu/sys/types.h"
Who still hard codes "#includes" using a complete path?
Anyway ... I will fix this release on my time later,
For now I am downgrading to 10.04.
Ad.
-------------------------
Hi Daiane,
I doubt, these installations all go well only with LTS Versions from Ubuntu.
Is it the way, because 10.04 LTS, 12.04 LTS etc., have no problems it seems.... Is it problem with the versions?
I'm using Ubuntu 10.10 (Maverick Meerkat) for LTIB and Android build and it works
ubuntu 9.10 offically. but I once test with 10.10 which works too.
I was able to execute ltib on Ubuntu 11.10 creating a minimum file system. I was working with an i.mx35 release L2.6.31_09.12.01_SDK_source.tar.gz but solution should work with an i.mx5x or i.mx6x.
The issue with lkc was the ordering in the link command for the curses library.
Here is a summary and patches I used to build:
Description : Install patches correcting ltib execution on Ubuntu 11.10.
Host : Oneiric Ubuntu 11.10 64-bit
LTIB version : ./ltib --version
ltib 9.1.1 ($Revision: 1.445.6.1 $)
Copyright (C) 2004-2006 Freescale Semiconductor, Inc.
This is free software; it is licensed under the terms of the
GNU General Public License, see 'COPYING' for the license. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
When ltib fails when trying to build the lkc package:
1) Extract the contents of oneiric-ltib-patch.tgz at the same directory
level as ltib.
$ tar -zxf oneiric-ltib-patch.tgz
$ ls -1
oneiric-ltib-patch
ltib
2) Run the script install-patches.sh found in oneiric-ltib-patch:
$ cd oneiric-ltib-patch
$ ./install-patches.sh
Read the file install-patches.sh and you will see additional comments and
the exact changes that were made. Additional packages were patched and
modified, you just have not gotten to that part yet :)
4) After installing the patches, run ./ltib and this was able to build all.
Can Ubuntu 11.04 work with LTIB? I need to know as well so that I can install the right version. Otherwise, a lot of time will be wasted.
Hake,
Can you please list the latest versions of Ubuntu and/or Fedora
that are guaranteed/known to work with LTIB 9.1.1 on i.MX53 at least?
Thanks,
Ad.
----------------------------
hake huang said:
LTIB doed not support 11.10 build host, that's the current status
Hake,
I am aware of that.
Do you have a list of the latest versions of Ubuntu and Fedora that are supported?
These are generic problems and I intend to make it work :)
I have already gone far enough.
Ad.
--------------------
LTIB doed not support 11.10 build host, that's the current status