I upgraded my OpenWRT SVN source to r11222 and now it can compile the iksemal package to produce the binary static/shared libraries. However, it looks like the asterisk-1.4.19.1/2 is having problem to locate the iksemal libraries that are there. See the following outputs from asterisk-1.4.19.2 compilation where the configuration calls for iksemel library using this switch --with-iksemel=${STAGING}/usr:
make[3]: Entering directory `/opt/tmp/OpenWRT/feeds/packages/net/asterisk-1.4.19.2'
( cd /opt/tmp/trunk/build_dir/mips/asterisk-1.4.19.2; ./bootstrap.sh )
Generating the configure script ...
(cd /opt/tmp/trunk/build_dir/mips/asterisk-1.4.19.2/./; if [ -x ./configure ]; then cp -fpR /opt/tmp/trunk/scripts/config.{guess,sub} /opt/tmp/trunk/build_dir/mips/asterisk-1.4.19.2// && AR=mips-linux-uclibc-ar AS="mips-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts" LD=mips-linux-uclibc-ld NM=mips-linux-uclibc-nm CC="mips-linux-uclibc-gcc" GCC="mips-linux-uclibc-gcc" CXX=mips-linux-uclibc-g++ RANLIB=mips-linux-uclibc-ranlib STRIP=mips-linux-uclibc-strip OBJCOPY=mips-linux-uclibc-objcopy OBJDUMP=mips-linux-uclibc-objdump SIZE=mips-linux-uclibc-size CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -I/opt/tmp/trunk/staging_dir/mips/usr/include -I/opt/tmp/trunk/staging_dir/mips/include -I/opt/tmp/trunk/staging_dir/mips/usr/include/speex" CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -I/opt/tmp/trunk/staging_dir/mips/usr/include -I/opt/tmp/trunk/staging_dir/mips/include -I/opt/tmp/trunk/staging_dir/mips/usr/include/speex" CPPFLAGS="-I/opt/tmp/trunk/staging_dir/mips/usr/include -I/opt/tmp/trunk/staging_dir/mips/include " LDFLAGS="-L/opt/tmp/trunk/staging_dir/toolchain-mips_gcc4.2.3/lib -L/opt/tmp/trunk/staging_dir/mips/usr/lib -L/opt/tmp/trunk/staging_dir/mips/lib -L/opt/tmp/trunk/staging_dir/toolchain-mips_gcc4.2.3/lib -L/opt/tmp/trunk/staging_dir/mips/usr/lib -L/opt/tmp/trunk/staging_dir/mips/lib" PKG_CONFIG_PATH="/opt/tmp/trunk/staging_dir/mips/usr/lib/pkgconfig:/opt/tmp/trunk/staging_dir/host/usr/lib/pkgconfig" PKG_CONFIG_LIBDIR="/opt/tmp/trunk/staging_dir/mips/usr/lib/pkgconfig" LIBS="$LIBS -luClibc++ -ldl -lpthread" ac_cv_lib_speex_speex_encode=yes ./configure --target=mips-linux --host=mips-linux --build=x86_64-suse-linux --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --without-curl --without-curses --without-gsm --without-imap --without-isdnnet --without-kde --with-ltdl="/opt/tmp/trunk/staging_dir/mips/usr" --without-misdn --without-nbs --with-ncurses="/opt/tmp/trunk/staging_dir/mips/usr" --without-netsnmp --without-newt --without-odbc --without-ogg --without-osptk --without-oss --with-popt="/opt/tmp/trunk/staging_dir/mips/usr" --without-pri --without-qt --without-radius --without-spandsp --without-suppserv --without-tds --without-termcap --without-tinfo --without-tonezone --without-vorbis --without-vpb --with-z="/opt/tmp/trunk/staging_dir/mips/usr" --without-zaptel --with-asound="/opt/tmp/trunk/staging_dir/mips/usr" --with-gnutls="/opt/tmp/trunk/staging_dir/mips/usr" --with-iksemel="/opt/tmp/trunk/staging_dir/mips/usr" --with-h323="/opt/tmp/trunk/build_dir/mips/openh323" --with-pwlib="/opt/tmp/trunk/build_dir/mips/pwlib" --with-speex="/opt/tmp/trunk/staging_dir/mips/usr" --with-ssl="/opt/tmp/trunk/staging_dir/mips/usr" --with-postgres="/opt/tmp/trunk/staging_dir/mips/usr" --with-sqlite="/opt/tmp/trunk/staging_dir/mips/usr" ; fi; )
configure: loading site script /opt/tmp/trunk/include/site/mips-linux-uclibc
checking build system type... x86_64-suse-linux-gnu
checking host system type... mips-unknown-linux-gnu
checking for mips-linux-gcc... mips-linux-uclibc-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mips-linux-uclibc-gcc accepts -g... yes
checking for mips-linux-uclibc-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... mips-linux-uclibc-gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for AIX... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for mips-linux-uname... no
checking for uname... /bin/uname
configure: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet. If you think this
configuration is useful to you, please write to autoconf@gnu.org.
checking for mips-linux-gcc... (cached) mips-linux-uclibc-gcc
checking for mips-linux-g++... mips-linux-uclibc-g++
checking for mips-linux-ld... mips-linux-uclibc-ld
checking for mips-linux-ranlib... mips-linux-uclibc-ranlib
checking for mips-linux-gcc... (cached) mips-linux-uclibc-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether mips-linux-uclibc-gcc accepts -g... (cached) yes
checking for mips-linux-uclibc-gcc option to accept ISO C89... (cached) none needed
checking whether we are using the GNU C++ compiler... yes
checking whether mips-linux-uclibc-g++ accepts -g... yes
checking how to run the C preprocessor... mips-linux-uclibc-gcc -E
checking how to run the C++ preprocessor... mips-linux-uclibc-g++ -E
checking for a sed that does not truncate output... /opt/tmp/trunk/staging_dir/host/bin/sed
checking for egrep... grep -E
checking for ld used by mips-linux-uclibc-gcc... mips-linux-uclibc-ld
checking if the linker (mips-linux-uclibc-ld) is GNU ld... yes
checking for gawk... gawk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for mips-linux-ranlib... (cached) mips-linux-uclibc-ranlib
checking for GNU make... make
checking for mips-linux-strip... /opt/tmp/trunk/staging_dir/toolchain-mips_gcc4.2.3/bin/mips-linux-strip
checking for mips-linux-ar... /opt/tmp/trunk/staging_dir/toolchain-mips_gcc4.2.3/bin/mips-linux-ar
checking for awk... /usr/bin/awk
checking for grep... (cached) /usr/bin/grep
checking for find... /usr/bin/find
checking for compress... :
checking for basename... /usr/bin/basename
checking for id... /usr/bin/id
checking for dirname... /usr/bin/dirname
checking for sh... /bin/sh
checking for ln... /bin/ln
checking for dot... /usr/bin/dot
checking for wget... /usr/bin/wget
checking for mips-linux-soxmix... no
checking for soxmix... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for working alloca.h... yes
checking for alloca... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for struct stat.st_blksize... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working volatile... yes
checking for ptrdiff_t... yes
checking for unistd.h... (cached) yes
checking for working chown... no
checking whether closedir returns void... yes
checking for error_at_line... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether mips-linux-uclibc-gcc needs -traditional... no
checking for working memcmp... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... (cached) no
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing slash... (cached) yes
checking whether stat accepts an empty string... (cached) no
checking for working strcoll... no
checking for strftime... (cached) yes
checking for working strnlen... no
checking for working strtod... no
checking for pow... no
checking for pow in -lm... yes
checking for utime.h... (cached) yes
checking whether utime accepts a null argument... no
checking for vprintf... yes
checking for _doprnt... no
checking for asprintf... yes
checking for atexit... yes
checking for bzero... (cached) yes
checking for dup2... yes
checking for endpwent... yes
checking for floor... no
checking for ftruncate... yes
checking for getcwd... (cached) yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for getloadavg... no
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for isascii... yes
checking for localtime_r... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for munmap... yes
checking for pow... (cached) no
checking for putenv... yes
checking for re_comp... yes
checking for regcomp... yes
checking for rint... no
checking for select... yes
checking for setenv... yes
checking for socket... yes
checking for sqrt... no
checking for strcasecmp... yes
checking for strcasestr... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strerror... (cached) yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strncasecmp... yes
checking for strndup... yes
checking for strnlen... yes
checking for strrchr... yes
checking for strsep... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoq... yes
checking for unsetenv... yes
checking for utime... yes
checking for vasprintf... yes
checking for library containing gethostbyname_r... none required
checking for gethostbyname_r with 6 arguments... yes
checking for gethostbyname_r with 5 arguments... no
checking for PTHREAD_RWLOCK_INITIALIZER... yes
checking for PTHREAD_RWLOCK_PREFER_WRITER_NP... yes
checking for compiler atomic operations... no
checking for compiler 'attribute pure' support... yes
checking for compiler 'attribute malloc' support... yes
checking for compiler 'attribute const' support... yes
checking for compiler 'attribute unused' support... yes
checking for compiler 'attribute always_inline' support... yes
checking for compiler 'attribute deprecated' support... yes
checking for -ffunction-sections support... yes
checking for --gc-sections support... yes
checking for -Wdeclaration-after-statement support... yes
checking for -fno-strict-overflow... yes
checking for res_ninit... no
checking for RTLD_NOLOAD... yes
checking for IP_MTU_DISCOVER... yes
checking libkern/OSAtomic.h usability... no
checking libkern/OSAtomic.h presence... no
checking for libkern/OSAtomic.h... no
checking for int... yes
checking size of int... (cached) 4
checking for snd_spcm_init in -lasound... yes
checking /opt/tmp/trunk/staging_dir/mips/usr/include/alsa/asoundlib.h usability... yes
checking /opt/tmp/trunk/staging_dir/mips/usr/include/alsa/asoundlib.h presence... yes
checking for /opt/tmp/trunk/staging_dir/mips/usr/include/alsa/asoundlib.h... yes
checking for cap_from_text in -lcap... no
checking if "struct ifaddrs *p; getifaddrs(&p)" compiles using ifaddrs.h... no
checking for iks_start_sasl in -liksemel... no
configure: ***
configure: *** The Iksemel Jabber Library installation on this system appears to be broken.
configure: *** Either correct the installation, or run configure
configure: *** without explicitly specifying --with-iksemel
make[3]: *** [/opt/tmp/trunk/build_dir/mips/asterisk-1.4.19.2/.configured] Error 1
make[3]: Leaving directory `/opt/tmp/OpenWRT/feeds/packages/net/asterisk-1.4.19.2'
make[2]: *** [package/feeds/packages/asterisk-1.4.x/compile] Error 2
make[2]: Leaving directory `/opt/tmp/trunk'
make[1]: *** [/opt/tmp/trunk/staging_dir/mips/stamp/.package_compile] Error 2
make[1]: Leaving directory `/opt/tmp/trunk'
make: *** [world] Error 2
And, here is the iksemel libraries:
[mazilo@Mi:/opt/tmp/trunk/staging_dir/mips/usr/lib 74%] ~ dir libiksemel.*
-rw-r--r-- 1 mazilo users 76718 2008-05-20 14:29 libiksemel.a
lrwxrwxrwx 1 mazilo users 19 2008-05-20 14:29 libiksemel.so -> libiksemel.so.3.1.0
lrwxrwxrwx 1 mazilo users 19 2008-05-20 14:29 libiksemel.so.3 -> libiksemel.so.3.1.0
-rwxr-xr-x 1 mazilo users 58935 2008-05-20 14:29 libiksemel.so.3.1.0
To fix this problem, I had to modify the Makefile under feeds/packages/network/asterisk-1.4.x/Makefile to remove the --with-iksemel=${STAGING}/usr as shown below:
ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk14-chan-gtalk),)
CONFIGURE_ARGS+= \
--with-gnutls="$(STAGING_DIR)/usr" \ <===== make sure to remove this "\" trailing back slash
# --with-iksemel="$(STAGING_DIR)/usr"
else
Anyway, thank you all who fixed this problem through the feeds/packages/libs/iksemel/Makefile.