compile asterisk against uclibc

fengyun_52 fengyun_52 at 163.com
Fri Nov 2 03:07:05 PDT 2007


I used hlfs to custom a os and expect it to be like astlinux.

I can compile other tools like bash,busybox etc aganst uclibc, and they
work fine. 

The asterisk compile smoothly, but it look like work not perfect.

run 'asterisk' but it can't create asterisk.ctl in /var/run

Then I run 'asterisk -c' , it show that have some errors like:
WARNING[6003]: loader.c:360 load_dynamic_module:Error loading module
'cha_sip.so'
In the /var/log/asterisk/messages file,that record some 'Bad handle'
errors.

But even so, two sip extensions all registered on the same asterisk can
call to each other.


Some more important messages may be is, when I run ldd:
sh-3.2# ldd /bin/bash
		libintl.so.8 => /lib/libintl.so.8 (0xb7f03000)
                libdl.so.0 => /lib/libdl.so.0 (0xb7f00000)
                libssp.so.0 => /lib/libssp.so.0 (0xb7efc000)
                libc.so.0 => /lib/libc.so.0 (0xb7e69000)
                ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb7f11000)
sh-3.2# ldd /usr/lib/asterisk/modules/chan_sip.so
checking sub-depends for '/lib/libssp.so.0'
checking sub-depends for '/lib/libpthread.so.0'
checking sub-depends for '/lib/libintl.so.8'
checking sub-depends for '/lib/libc.so.0'
  	        libssp.so.0 => /lib/libssp.so.0 (0x00000000)
         	libpthread.so.0 => /lib/libpthread.so.0 (0x00000000)
         	libintl.so.8 => /lib/libintl.so.8 (0x00000000)
          	libc.so.0 => /lib/libc.so.0 (0x00000000)
          	/lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)


Please take care the address of the /lib/libssp.so.0 and others in ldd
chan_sip.so.0








More information about the hlfs-dev mailing list