[Kamailio-Users] Compiling nonce.o (Auth Module) with TLS=1 fails

Martin Koenig koenig at starface.de
Mon Nov 30 17:02:06 CET 2009


Hello all,

I am trying to compile kamailio 1.5.3 with TLS=1. The whole kamailio package
compiles just fine, with the exception of nonce.o:

gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall
-minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott
-Wold-style-definition -Wmissing-field-initializers -Wredundant-decls
-DMOD_NAME='"auth"'  -DNAME='"kamailio"' -DVERSION='"1.5.3-tls"'
-DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 4.0.2"' -D__CPU_i386
-D__OS_linux -D__SMP_yes -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC
-DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DUSE_LOCAL_ROUTE
-DF_MALLOC -DUSE_TLS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD
-DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM
-DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -I/usr/local/ssl/include
-I/usr/local/include -I/usr/include/openssl -c nonce.c -o nonce.o
In file included from /usr/include/openssl/evp.h:84,
                 from /usr/include/openssl/x509.h:67,
                 from /usr/include/openssl/ssl.h:177,
                 from ../sl/../../tls/tls_config.h:34,
                 from ../sl/../../version.h:29,
                 from ../sl/../../sr_module.h:54,
                 from ../sl/sl_api.h:33,
                 from auth_mod.h:39,
                 from nonce.c:40:
/usr/include/openssl/md5.h:105: error: conflicting types for âMD5_CTXâ
../../md5.h:42: error: previous declaration of âMD5_CTXâ was here
nonce.c: In function âcalc_nonceâ:
nonce.c:116: warning: passing argument 1 of âMD5Initâ from incompatible
pointer type
nonce.c:126: warning: passing argument 1 of âMD5Updateâ from incompatible
pointer type
nonce.c:128: warning: passing argument 1 of âMD5Updateâ from incompatible
pointer type
nonce.c:129: warning: passing argument 2 of âU_MD5Finalâ from incompatible
pointer type
make: *** [nonce.o] Error 1

Do you guys have any hints on what is going wrong?

Best regards,
Martin Koenig




More information about the Users mailing list