[Kamailio-Users] 1.5 TLS compile on Solaris 10
Robert McGilvray
rmcgilvr at globeop.com
Wed Jun 10 04:05:09 CEST 2009
FYI...
I was able to compile after updating openssl to 0.9.8k which has support
for TLS server_name extensions. On 0.9.8g it was throwing an error while
compiling cfg.tab.c :
Compiling cfg.tab.c
/usr/sfw/bin/gcc -g -O9 -funroll-loops -Wall -mcpu=ultrasparc
-mtune=ultrasparc -DNAME='"kamailio"' -DVERSION='"1.5.1-tls"'
-DARCH='"sparc64"' -DOS='"solaris"' -DCOMPILER='"/usr/sfw/bin/gcc
3.4.3"' -D__CPU_sparc64 -D__OS_solaris -D__SMP_no
-DCFG_DIR='"/usr/local/kamailio-1.5.1/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 -DOPENSSL_NO_TLSEXT -DFAST_LOCK
-DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETIPNODEBYNAME
-DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD -DHAVE_ALLOCA_H -DUSE_SIGACTION
-D_POSIX_PTHREAD_SEMANTICS -DHAVE_DEVPOLL -DHAVE_SELECT
-I/usr/local/include -c cfg.tab.c -o cfg.tab.o
cfg.y: In function `yyparse':
cfg.y:881: warning: implicit declaration of function `warn'
-DOPENSSL_NO_TLSEXT was my attempt at forcing it to disable the
extension.
________________________________
From: users-bounces at lists.kamailio.org
[mailto:users-bounces at lists.kamailio.org] On Behalf Of Robert McGilvray
Sent: Tuesday, June 09, 2009 1:43 PM
To: users at lists.kamailio.org
Subject: [Kamailio-Users] 1.5 TLS compile on Solaris 10
I'm having trouble compiling kam 1.5 on solaris 10 sparc with TLS
enabled. It works fine if I don't try and link against ssl. Libaries
are installed in /usr/local/lib, includes in /usr/local/include/openssl.
I have 1.3 installed on the same machine with TLs and I don't recall any
problems compiling it. I changed the library paths in Makefile.defs to
the proper location for my system but I get the same error.
Any suggestions?
GNU Make 3.81
wpf1sipprd1# ls -al /usr/local/lib/libssl.*
-rw-r--r-- 1 root root 410200 May 25 2008
/usr/local/lib/libssl.a
lrwxrwxrwx 1 root root 15 May 25 2008
/usr/local/lib/libssl.so -> libssl.so.0.9.8*
-r-xr-xr-x 1 root root 301892 May 25 2008
/usr/local/lib/libssl.so.0.9.8*
Linking kamailio
/usr/sfw/bin/gcc -O2 action.o blacklists.o cmpapi.o core_stats.o
crc.o daemonize.o data_lump.o data_lump_rpl.o dprint.o dset.o errinfo.o
error.o faked_msg.o flags.o forward.o io_wait.o ip_addr.o local_route.o
main.o md5.o md5utils.o mod_fix.o modparam.o msg_translator.o pass_fd.o
proxy.o pt.o pvapi.o qvalue.o re.o receive.o regexp.o resolve.o route.o
route_struct.o script_cb.o sctp_server.o socket_info.o sr_module.o
statistics.o strcommon.o syslog_async.o tcp_main.o tcp_read.o timer.o
tsend.o udp_server.o usr_avp.o ut.o mem/f_malloc.o mem/mem.o
mem/memtest.o mem/q_malloc.o mem/shm_mem.o parser/hf.o
parser/msg_parser.o parser/parse_allow.o parser/parse_content.o
parser/parse_cseq.o parser/parse_disposition.o parser/parse_diversion.o
parser/parse_event.o parser/parse_expires.o parser/parse_fline.o
parser/parse_from.o parser/parse_hname2.o parser/parse_methods.o
parser/parse_nameaddr.o parser/parse_pai.o parser/parse_param.o
parser/parse_ppi.o parser/parse_privacy.o parser/parse_refer_to.o
parser/parse_rpid.o parser/parse_rr.o parser/parse_sipifmatch.o
parser/parse_sst.o parser/parse_supported.o parser/parse_to.o
parser/parse_uri.o parser/parse_via.o parser/parser_f.o
parser/digest/digest.o parser/digest/digest_parser.o
parser/digest/param_parser.o parser/sdp/sdp.o
parser/sdp/sdp_helpr_funcs.o parser/contact/contact.o
parser/contact/parse_contact.o db/db.o db/db_id.o db/db_pool.o
db/db_query.o db/db_res.o db/db_row.o db/db_ut.o db/db_val.o mi/attr.o
mi/fmt.o mi/mi.o mi/mi_core.o mi/tree.o trie/dtrie.o lex.yy.o cfg.tab.o
tls/tls_config.o tls/tls_domain.o tls/tls_init.o tls/tls_server.o -ldl
-lresolv -L/lib -lxnet -lnsl -lrt -L/usr/local/lib -lssl -lcrypto -o
kamailio
Undefined first referenced
symbol in file
warn cfg.tab.o
ld: fatal: Symbol referencing errors. No output written to kamailio
collect2: ld returned 1 exit status
gmake: *** [kamailio] Error 1
________________________________
This email with all information contained herein or attached hereto may
contain confidential and/or privileged information intended for the
addressee(s) only. If you have received this email in error, please
contact the sender and immediately delete this email in its entirety and
any attachments thereto.
--------------------------------------------------------------------------
This email with all information contained herein or attached hereto may contain confidential and/or privileged information intended for the addressee(s) only. If you have received this email in error, please contact the sender and immediately delete this email in its entirety and any attachments thereto.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20090609/9d9e1ac2/attachment.htm>
More information about the sr-users
mailing list