Problems compiling kannel 1.2.1 - libxml2
"Andrew Chong" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
After spending the last 3 days trying to make someone else's
RPM binary of Kannel work, I have given up and am now trying
to install via compiling from the source (gateway-1.2.1.tar.gz)
Clean install of RedHat AS 2.1
Succcessful install of gcc off the RedHat CD's:
kernel-headers-2.4.9-e.3
glibc-devel-2.2.4-26
cpp-2.96-108.1
binutils-2.11.90.0.8-12
gcc-2.96-108.1
confirmed libxml2-2.4.19-2 is installed.
Do I need to update libxml2, or glibc (assuming that is where pthread support comes from)
If so to what versions?
./configure output is:
---------------------------------------------------------------------------------------------
creating cache ./config.cache
Configuring for Kannel gateway version 1.2.1 ...
Running system checks ...
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... no
checking for byacc... no
checking for flex... lex
checking for yywrap in -ll... no
checking for convert... /usr/X11R6/bin/convert
checking for perl... /usr/bin/perl
checking for log in -lm... yes
checking for accept in -lsocket... no
checking for inet_ntoa in -lnsl... yes
checking for inet_ntop in -lresolv... yes
checking for inet_ntop in -lbind... no
checking for pthread_exit in -lpthread... yes
checking for pthread_exit in -lc_r... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/poll.h... yes
checking for pthread.h... yes
checking for getopt.h... yes
checking for syslog.h... yes
checking for gettimeofday... yes
checking for select... yes
checking for socket... yes
checking for strdup... yes
checking for getopt_long... yes
checking for getopt... yes
checking for socklen_t in <sys/socket.h>... yes
checking for getopt in <stdio.h>... no
checking for getopt in <unistd.h>... yes
Checking POSIX threads support ...
checking for working pthreads... no
Checking for libxml2 support ...
checking for xml2-config... no
checking for xml-config... no
configure: error: You MUST have the libxml2 (aka gnome-xml) library installed
---------------------------------------------------------------------------------------------
full config.log is:
---------------------------------------------------------------------------------------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:682: checking host system type
configure:736: checking for gcc
configure:849: checking whether the C compiler (gcc ) works
configure:865: gcc -o conftest conftest.c 1>&5
configure:891: checking whether the C compiler (gcc ) is a cross-compiler
configure:896: checking whether we are using GNU C
configure:905: gcc -E conftest.c
configure:924: checking whether gcc accepts -g
configure:967: checking for a BSD compatible install
configure:1022: checking for ranlib
configure:1054: checking for bison
configure:1054: checking for byacc
configure:1087: checking for flex
configure:1121: checking for yywrap in -ll
configure:1140: gcc -o conftest -g -O2 conftest.c -ll 1>&5
/usr/bin/ld: cannot find -ll
collect2: ld returned 1 exit status
configure: failed program was:
#line 1129 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char yywrap();
int main() {
yywrap()
; return 0; }
configure:1165: checking for convert
configure:1200: checking for perl
configure:1235: checking for log in -lm
configure:1254: gcc -o conftest -g -O2 conftest.c -lm 1>&5
configure:1282: checking for accept in -lsocket
configure:1301: gcc -o conftest -g -O2 conftest.c -lsocket -lm 1>&5
/usr/bin/ld: cannot find -lsocket
collect2: ld returned 1 exit status
configure: failed program was:
#line 1290 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char accept();
int main() {
accept()
; return 0; }
configure:1329: checking for inet_ntoa in -lnsl
configure:1348: gcc -o conftest -g -O2 conftest.c -lnsl -lm 1>&5
configure:1376: checking for inet_ntop in -lresolv
configure:1395: gcc -o conftest -g -O2 conftest.c -lresolv -lnsl -lm 1>&5
configure:1423: checking for inet_ntop in -lbind
configure:1442: gcc -o conftest -g -O2 conftest.c -lbind -lresolv -lnsl -lm 1>&5
/usr/bin/ld: cannot find -lbind
collect2: ld returned 1 exit status
configure: failed program was:
#line 1431 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char inet_ntop();
int main() {
inet_ntop()
; return 0; }
configure:1470: checking for pthread_exit in -lpthread
configure:1489: gcc -o conftest -g -O2 conftest.c -lpthread -lresolv -lnsl -lm 1>&5
configure:1518: checking for pthread_exit in -lc_r
configure:1537: gcc -o conftest -g -O2 conftest.c -lc_r -lpthread -lresolv -lnsl -lm 1>&5
/usr/bin/ld: cannot find -lc_r
collect2: ld returned 1 exit status
configure: failed program was:
#line 1526 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pthread_exit();
int main() {
pthread_exit()
; return 0; }
configure:1562: checking how to run the C preprocessor
configure:1583: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1642: checking for ANSI C header files
configure:1655: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1722: gcc -o conftest -g -O2 conftest.c -lpthread -lresolv -lnsl -lm 1>&5
configure:1749: checking for sys/ioctl.h
configure:1759: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1749: checking for sys/time.h
configure:1759: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1749: checking for sys/types.h
configure:1759: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1749: checking for unistd.h
configure:1759: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1749: checking for sys/poll.h
configure:1759: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1789: checking for pthread.h
configure:1799: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1789: checking for getopt.h
configure:1799: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1789: checking for syslog.h
configure:1799: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1835: gcc -c -g -O2 conftest.c 1>&5
configure:1854: gcc -c -g -O2 conftest.c 1>&5
configure:1871: checking for gettimeofday
configure:1899: gcc -o conftest -g -O2 conftest.c -lpthread -lresolv -lnsl -lm 1>&5
configure:1871: checking for select
configure:1899: gcc -o conftest -g -O2 conftest.c -lpthread -lresolv -lnsl -lm 1>&5
configure:1871: checking for socket
configure:1899: gcc -o conftest -g -O2 conftest.c -lpthread -lresolv -lnsl -lm 1>&5
configure:1871: checking for strdup
configure:1899: gcc -o conftest -g -O2 conftest.c -lpthread -lresolv -lnsl -lm 1>&5
configure:1871: checking for getopt_long
configure:1899: gcc -o conftest -g -O2 conftest.c -lpthread -lresolv -lnsl -lm 1>&5
configure:1924: checking for getopt
configure:1952: gcc -o conftest -g -O2 conftest.c -lpthread -lresolv -lnsl -lm 1>&5
configure:1981: checking for socklen_t in <sys/socket.h>
configure:1997: gcc -c -g -O2 conftest.c 1>&5
configure:2020: checking for getopt in <stdio.h>
configure:2032: gcc -c -g -O2 conftest.c 1>&5
configure: In function `main':
configure:2028: `getopt' undeclared (first use in this function)
configure:2028: (Each undeclared identifier is reported only once
configure:2028: for each function it appears in.)
configure: failed program was:
#line 2025 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
void *foo = getopt;
; return 0; }
configure:2054: checking for getopt in <unistd.h>
configure:2066: gcc -c -g -O2 conftest.c 1>&5
configure:2095: checking for working pthreads
configure:2126: gcc -o conftest -g -O2 conftest.c -lpthread -lresolv -lnsl -lm 1>&5
configure: failed program was:
#line 2100 "configure"
#include "confdefs.h"
#include <pthread.h>
#include <unistd.h>
int pid;
void testpid(void* foo);
int main(void){
pthread_t child;
pid=getpid();
pthread_create(&child,NULL,(void*)testpid,NULL);
pthread_join(child,NULL);
return 0;
}
void testpid(void* foo){
int mypid=getpid();
if(mypid!=pid){
/* Pthreads states that all threads should have the same PID
* we dont!
*/
exit(1);
}else{
exit(0);
}
}
configure:2152: checking for xml2-config
configure:2152: checking for xml-config
---------------------------------------------------------------------------------------------
Andrew Chong
#####################################################################################
Attention:
The information contained in this message and/or attachments is intended only for the
person or entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or other use of,
or taking of any action in reliance upon, this information by persons or entities
other than the intended recipient is prohibited. If you received this in error,
please contact the sender, and delete the material from any system and destroy any copies.
This e-mail has been virus scanned and cleared by the CanWest IT Department.
Thank You.
#####################################################################################