<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@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","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.emailquote, li.emailquote, div.emailquote
        {mso-style-name:emailquote;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:1.0pt;
        border:none;
        padding:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoPlainText"><span style="color:#1F497D">Just to also button up this Email trail (which is really the same issue as another one… sorry).</span><span style="color:#1F497D"> I got it working. Here is what I had to do to make OpenSIPS 1.8 successfully
build on CentOS 5.7 with MySQL version 5.5.25-1 (not sure why this was necessary):<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New"">yum install lynx<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New"">ln -s /usr/lib64/mysql/libmysqlclient.a /usr/lib64/libmysqlclient.a<o:p></o:p></span></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><span style="color:#1F497D">Also, I edited Makefile.defs as follows:<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New"">Index: Makefile.defs<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New"">===================================================================<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New"">--- Makefile.defs (revision 9124)<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New"">+++ Makefile.defs (working copy)<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New"">@@ -180,7 +180,7 @@<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New""> doc-dir = share/doc/$(MAIN_NAME)/<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New""> man-dir = share/man/<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New""> data-dir = share/$(MAIN_NAME)/<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New"">- LOCALBASE ?= $(SYSBASE)/local<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New"">+ LOCALBASE ?= $(SYSBASE)<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New"">else<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New"">ifeq ($(OS), freebsd)<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="font-size:8.0pt;font-family:"Courier New""> doc-dir = share/doc/$(MAIN_NAME)/<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color:#1F497D">Jerry<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> users-bounces@lists.opensips.org [mailto:users-bounces@lists.opensips.org]
<b>On Behalf Of </b>Jerry Richards<br>
<b>Sent:</b> Thursday, June 21, 2012 1:22 PM<br>
<b>To:</b> users@lists.opensips.org<br>
<b>Subject:</b> [OpenSIPS-Users] /usr/bin/ld: cannot find -lmysqlclient<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Do you know why I'm getting a build error using 64-bit CentOS 5.7 and OpenSIPS 1.8 using the following command line?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">make prefix=/opt/opensips all include_modules="db_mysql presence presence_xml presence_mwi presence_dialoginfo"</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Here's the error:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">Linking db_mysql.so</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">/usr/bin/ld: cannot find -lmysqlclient</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">collect2: ld returned 1 exit status</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">make[1]: *** [db_mysql.so] Error 1</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">make[1]: Leaving directory `/home/TeoUser/work/opensips.org/opensips_1_8/modules/db_mysql'</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">make: *** [modules] Error 2</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Here's the mysql packages installed:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">MySQL-Cluster-shared-compat-gpl.i386 7.2.5-1.rhel5 installed</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">MySQL-Cluster-shared-compat-gpl.x86_64 7.2.5-1.rhel5 installed</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">MySQL-client.i386 5.5.22-1.rhel5 installed</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">MySQL-client.x86_64 5.5.22-1.rhel5 installed</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">MySQL-devel.i386 5.5.22-1.rhel5 installed</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">MySQL-devel.x86_64 5.5.22-1.rhel5 installed</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">MySQL-server.i386 5.5.22-1.rhel5 installed</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">MySQL-server.x86_64 5.5.22-1.rhel5 installed</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">MySQL-shared-compat.i386 5.5.22-2.rhel5 installed</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">MySQL-shared-compat.x86_64 5.5.22-2.rhel5 installed</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">MySQL-test.i386 5.5.22-1.rhel5 installed</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Courier New"">MySQL-test.x86_64 5.5.22-1.rhel5 installed</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Thanks,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Jerry<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <o:p></o:p></span></p>
</div>
</div>
</body>
</html>