Hi Junping,
I am trying to build L3.0.35_4.1.0 LTIB to my dev station that has ubuntu 13.10 linux. After downloaded, untared, and installation, I followed an instruction to install all packages needed and did modify sudoers file, and change the mtd-utils.spec to mtd-utils-20060302.spec.
Unfortunately, when I executed ./ltib, it stopped due to errors. Then I cat the host_config.log that shows the error as below. It failed building rpm-fs. I wonder if you can help me to figure out what is missing or something was wrong.
make[2]: Entering directory `/tmp/rpm-byang/BUILD/rpm-4.0.4/tools'
/bin/sh ../libtool --mode=link gcc -g -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -o dump dump.o ../build/librpmbuild.la ../lib/librpm.la ../rpmdb/librpmdb.la ../rpmio/librpmio.la ../popt/libpopt.la
gcc -g -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -o .libs/dump dump.o ../build/.libs/librpmbuild.so ../lib/.libs/librpm.so ../rpmdb/.libs/librpmdb.so ../rpmio/.libs/librpmio.so -lz -lrt -lpthread ../popt/.libs/libpopt.so -Wl,--rpath -Wl,/opt/freescale/ltib/usr/lib
../rpmio/.libs/librpmio.so: undefined reference to `aio_suspend'
../rpmdb/.libs/librpmdb.so: undefined reference to `pthread_condattr_setpshared'
../rpmdb/.libs/librpmdb.so: undefined reference to `pthread_mutexattr_setpshared'
../rpmio/.libs/librpmio.so: undefined reference to `aio_return'
../rpmdb/.libs/librpmdb.so: undefined reference to `pthread_mutex_trylock'
../rpmio/.libs/librpmio.so: undefined reference to `aio_read'
../rpmdb/.libs/librpmdb.so: undefined reference to `pthread_mutexattr_init'
../rpmio/.libs/librpmio.so: undefined reference to `aio_error'
../rpmdb/.libs/librpmdb.so: undefined reference to `pthread_mutexattr_destroy'
../rpmio/.libs/librpmio.so: undefined reference to `aio_cancel'
collect2: error: ld returned 1 exit status
make[2]: *** [dump] Error 1
make[2]: Leaving directory `/tmp/rpm-byang/BUILD/rpm-4.0.4/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/rpm-byang/BUILD/rpm-4.0.4'
make: *** [all-recursive-am] Error 2
error: Bad exit status from /home/byang/mantis/ltib/tmp/rpm-tmp.uhSNNQ (%build)
RPM build errors:
Bad exit status from /home/byang/mantis/ltib/tmp/rpm-tmp.uhSNNQ (%build)
Build time for rpm-fs: 16 seconds:smileysad:
Failed building rpm-fs
could not glob rpm in: /tmp/rpm-byang/RPMS/x86_64/rpm-fs-* at ./ltib line 2427.
traceback:
main::check_rpm_setup:2427
main::host_checks:1435
main:554
Thanks,
Bill Yang