Hi,
I am getting the below error when I execute :ltib -m config command from Ubuntu-13.10 machine.
I tried manually downloading the m4 tar file and placed it in /opt/freescale/ltib/usr/src/rpm/SOURCES/m4-1.4.16.tar.gz location. And yes, also created md5sum file for the same.
But, still the error persists.
Can you help me in this regard?
Processing: m4
================
Build path taken because: directory build, no prebuilt rpm,
Testing network connectivity
No network download connection available
Can't get: m4-1.4.16.tar.gz at ./ltib line 802.
Can't connect to bitshrine.org:80 (Connection refused)
LWP::Protocol::http::Socket: connect: Connection refused at /usr/share/perl5/LWP/Protocol/http.pm line 51.
...propagated at ./ltib line 1392.
traceback:
main::build_host_rpms:1392
main::host_checks:1447
main:554
Regards,
Prathamesh
Solved! Go to Solution.
I think the directory to place tarballs and its md5sums is /opt/freescale/pkgs. This path is configurable, check the ltib script ($cp variable)
I think the directory to place tarballs and its md5sums is /opt/freescale/pkgs. This path is configurable, check the ltib script ($cp variable)
Hi Leonardo,
I checked /opt/freescale/pkgs/ folder. And as you said, m4 tarball is already present along with the checksum.
But, the error persists yet..!!
Then as per another post on the community(https://community.freescale.com/thread/299521), I tried deleting /opt/freescale/ltib/usr/src/rpm/BUILD//m4-1.4.16 folder manually.
Now 'm4' compilation has begun and it leaves me with the following error:
gcc -std=gnu99 -I. -g -O2 -MT gl_avltree_oset.o -MD -MP -MF .deps/gl_avltree_oset.Tpo -c -o gl_avltree_oset.o gl_avltree_oset.c
mv -f .deps/gl_avltree_oset.Tpo .deps/gl_avltree_oset.Po
gcc -std=gnu99 -I. -g -O2 -MT c-ctype.o -MD -MP -MF .deps/c-ctype.Tpo -c -o c-ctype.o c-ctype.c
mv -f .deps/c-ctype.Tpo .deps/c-ctype.Po
gcc -std=gnu99 -I. -g -O2 -MT c-stack.o -MD -MP -MF .deps/c-stack.Tpo -c -o c-stack.o c-stack.c
mv -f .deps/c-stack.Tpo .deps/c-stack.Po
gcc -std=gnu99 -I. -g -O2 -MT clean-temp.o -MD -MP -MF .deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c
In file included from clean-temp.h:22:0,
from clean-temp.c:23:
./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
make[3]: *** [clean-temp.o] Error 1
make[3]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/m4-1.4.16/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/m4-1.4.16/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/m4-1.4.16'
make: *** [all] Error 2
error: Bad exit status from /home/patni/ltib/tmp/rpm-tmp.38420 (%build)
RPM build errors:
Bad exit status from /home/patni/ltib/tmp/rpm-tmp.38420 (%build)
Build time for m4: 26 seconds
Failed building m4
Died at ./ltib line 1392.
traceback:
main::build_host_rpms:1392
main::host_checks:1447
main:554
Thanks and regards,
Prathamesh
You need install m4 package for ubuntu host.
sudo apt-get install m4
Grace
It is already installed.
FYR..
dpkg -l|grep m4
ii libxcb-icccm4:i386 0.3.9-2 i386 utility libraries for X C Binding -- icccm
ii libxpm4:i386 1:3.5.10-1 i386 X11 pixmap library
ii m4 1.4.16-5 i386 a macro processing language
And, I guess the error seems to be with the m4 code. Some compilation error..!!!
Have you done what the log indicates?
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
Change the code and recompile.
having the same error with fresh installed Fedora 20 & LTIB 3.0.35_4.1.0_130816
which code in which file needs to be changed? pls help :smileysad:
edit: buildroot-kindle/package/m4/m4-1.4.16-no-gets.patch at master · twobob/buildroot-kindle · GitHub (*)
but how to recompile? "./ltib --force m4" doesnt work
edit2: okay got it :smileyhappy:
for other newbies:
1.) unpack m4-1.4.16.tar.gz in /opt/freescale/pkgs/ somewhere
2.) patch it (*)
3.) compressed it to a new m4-1.4.16.tar.gz
4.) copy it back to /opt/freescale/pkgs/
5.) checked the new md5sum
6.) change the md5sum in m4-1.4.16.tar.gz.md5
7.) resume ...
edit3: its a pity... next error because my automake version is to "up-to-date"? (automake.noarch 1.13.4-5.fc20)
..removed autoconf & automake and installed it from source/gnu.org (autoconf 2.66, automake-1.11.6) but leads to the next error and many others :smileygrin:
...well, using ubuntu 10.04 (32bit) to build LTIB seems to be the best solution