IMX Ltib common errors

These are the common errors you may encounter while building Ltib

  • Ltib Zlib not installed error

While building ltib it may report zlib packages are missing

zlib

The reason is zlib path is changed
Edit bin/Ltibutils.pm inside ltib folder in zlib section add one line

zlib => sub { my @f = (glob('/usr/lib/libz.so*'),
glob('/lib/libz.so*'),
glob('/lib/i386-linux-gnu/libz.so*'),
glob('/lib64/libz.so*'),
glob('/usr/lib/i386-linux-gnu/libz.so*'),
glob('/usr/lib32/libz.so*'),
  • Failed building wget” undefined reference to `SSLv2_client_method’

sslerror

To eliminate this error edit ltib/dist/lfs-5.1/wget/wget.spec file and add “–without-ssl” to ./configure section

ssloption

After adding this you need to manually remove the wgest file from BUILD (/opt/freescale/ltib/usr/src/rpm/BUILD) directory then again compile

  • /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-12.09.01/common/stdafx.h:30:36: fatal error: /usr/include/sys/types.h: No such file or directory

elftosb

The error is that there is no types.h usr/include/sys directory its in /usr/incude/i386-linux-gnu/sys

To fix this error

sudo ln -s i386-linux-gnu/sys sys
  • /usr/bin/ld: ElftosbAST.o: undefined reference to symbol ‘powf@@GLIBC_2.0’

powf

To avoid this error you need to edit makefile.rules of elftosb-2.6.35.3-1.1.0.tar.gz

cp /opt/freescale/pkgs/elftosb-2.6.35.3-1.1.0.tar.gz ~/Desktop
tar -zxvf elftosb-2.6.35.3-1.1.0.tar.gz
cd elftosb-2.6.35.3-1.1.0/
vim makefile.rules

Inside that file there is a line that reads

LIBS = -lstdc++

change it to

LIBS = -lstdc++ -lm

to add the standard math library to the build.

make

After editing compress the folder back to tar.gz and place it in pkgs folder

tar -zcvf elftosb-2.6.35.3-1.1.0.tar.gz elftosb-2.6.35.3-1.1.0/
cp  ~/Desktop/elftosb-2.6.35.3-1.1.0.tar.gz /opt/freescale/pkgs/elftosb-2.6.35.3-1.1.0.tar.gz

Now delete the old file from BUILD folder.Else you will get an error saying delete that file.

rm -rf /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-2.6.35.3-1.1.0.tar.gz

Happy Hacking 🙂

How to fix Apache – “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName” Error on Ubuntu

How to fix Apache – “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName” Error on Ubuntu

 

 

 

edit the /etc/apache2/httpd.cong

$sudo vim /etc/apache2/httpd.conf

usually it will be blank…add the following to httpd.conf

ServerName localhost

if httpd.conf contains some data then add at the top like this…

ServerName localhost
<Directory /var/www>
Options Indexes Includes FollowSymLinks MultiViews
#AllowOverride AuthConfig
AllowOverride all
Order allow,deny
Allow from all
</Directory>

Now restart apache the problem is fixed 🙂

$sudo /etc/init.d/apache2 restart

Debian Kernels and Tigon TG3 Firmware

If you are updating the kernel on your Debian 5.0 (Lenny) or Debian 6.0 (Squeeze) installation and have a Tigon Gigabit ethernet controller, such as the one on the Dell Poweredge T110, you may receive the following warning messages:

W: Possible missing firmware /lib/firmware/tigon/tg3_tso5.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3_tso.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3.bin for module tg3

How to fix this problem

1.) Add the “non-free” repository to the sources.lst file.

vim /etc/apt/sources.list
deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.us.debian.org/debian/ squeeze main contrib non-free

2.) Update apt-get and install the “firmware-linux-nonfree” package.

apt-get update
apt-get install firmware-linux-nonfree

How to Reinstall apache2 properly in GNU/Linux

If you have issues with apache2 and you want to reinstall it but you are getting errors,then here it isthe solution for you.

i had an issue with apache, when i tried to start it i got this error message.

 /etc/init.d/apache2   start.: 45: Can't open /etc/apache2/envvars

i need to remove it completely.To do that i will use this command :

 sudo apt-get remove --purge apache2 apache2-utils
This command will completely remove all apache2 configuration files and directories.
– Reinstall again apache using the normal command
sudo apt-get install apache2