<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word"><head><META content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="text/html; charset=utf-8" http-equiv=Content-Type>
<meta content="Microsoft Word 11 (filtered medium)" name=Generator>
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head><BODY>
<DIV>
<div class=Section1>
<div>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'>FYI…<o:p></o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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 :<o:p></o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Compiling cfg.tab.c<o:p></o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'>/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<o:p></o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'>cfg.y: In function `yyparse':<o:p></o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'>cfg.y:881: warning: implicit declaration
of function `warn'<o:p></o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-DOPENSSL_NO_TLSEXT was my attempt at
forcing it to disable the extension. <o:p></o:p></span></font></p>
<p class=MsoNormal><font color=navy face=Arial size=2><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div align=center class=MsoNormal style='text-align:center'><font face="Times New Roman" size=3><span style='font-size:12.0pt'>
<hr align=center size=2 tabindex=-1 width="100%">
</span></font></div>
<p class=MsoNormal><b><font face=Tahoma size=2><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font face=Tahoma size=2><span style='font-size:10.0pt;font-family:Tahoma'>
users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] <b><span style='font-weight:bold'>On Behalf Of </span></b>Robert McGilvray<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, June 09, 2009 1:43
PM<br>
<b><span style='font-weight:bold'>To:</span></b> users@lists.kamailio.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Kamailio-Users] 1.5 TLS
compile on Solaris 10</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font face=Arial size=2><span style='font-size:10.0pt;
font-family:Arial'>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. </span></font> 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.
<o:p></o:p></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>Any suggestions?<o:p></o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>GNU Make 3.81<o:p></o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>wpf1sipprd1# ls -al /usr/local/lib/libssl.*<o:p></o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>-rw-r--r-- 1 root
root 410200 May 25 2008
/usr/local/lib/libssl.a<o:p></o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>lrwxrwxrwx 1 root
root 15 May 25 2008
/usr/local/lib/libssl.so -> libssl.so.0.9.8*<o:p></o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>-r-xr-xr-x 1 root
root 301892 May 25 2008
/usr/local/lib/libssl.so.0.9.8*<o:p></o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>Linking kamailio<o:p></o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>/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<o:p></o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>Undefined
first referenced<o:p></o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'> symbol
in file<o:p></o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>warn
cfg.tab.o<o:p></o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>ld: fatal: Symbol referencing errors. No output written to kamailio<o:p></o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>collect2: ld returned 1 exit status<o:p></o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'>gmake: *** [kamailio] Error 1<o:p></o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font face="Times New Roman" size=3><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
<div>
<div align=center class=MsoNormal style='text-align:center'><font face="Times New Roman" size=3><span style='font-size:12.0pt'>
<hr align=center size=2 width="100%">
</span></font></div>
</div>
<div>
<p class=MsoNormal><font face="Courier New" size=1><span style='font-size:9.0pt;
font-family:"Courier New"'>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.<o:p></o:p></span></font></p>
</div>
</div>
</DIV>
<DIV>
<HR>
</DIV>
<DIV STYLE="FONT-SIZE: 9pt; FONT-FAMILY: Courier New">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.</DIV></BODY></HTML>