<div class="gmail_quote">---------- Forwarded message ----------<br>From: "Luca Cireddu" <<a href="mailto:sardylan@gmail.com">sardylan@gmail.com</a>><br>Date: Oct 30, 2015 5:52 PM<br>Subject: Re: [Icecast-dev] Extending Icecast - Problem with Linker<br>To: "Glenn Cooper" <<a href="mailto:glenn@mychoons.com">glenn@mychoons.com</a>><br>Cc: <br><br type="attribution"><p dir="ltr">Hi Glenn,<br>
you have to add some MySQL references to Autotools build system... I had the same issue wen I was working on my stat project<br>
Take a look to <a href="https://github.com/sardylan/icecast-mysql" target="_blank">https://github.com/sardylan/icecast-mysql</a><br>
</p>
<div style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif"><div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">Hi folks,</div><div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px"><br></div><div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">I am looking to extend on the Icecast engine with a couple of extra features and experiencing some issues.</div><div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px"><br></div><div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">I decided that I should add a logging function that will help me debug the code at a later point by saving messages to a local MySQL database. I have successfully got this module working on my local machine (Centos 6 with Eclipse). I then copied the code over into the client.c module in the Icecast source files, and made sure all of the relevant includes were declared. When trying to compile Icecast with the additional logging functionality, using ./configure & make, I received the following errors:</div><div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px"><br></div><div><pre style="color:rgb(57,51,24);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;margin-top:0px;padding:5px;border:0px;overflow:auto;width:auto;max-height:600px;word-wrap:normal;background-color:rgb(238,238,238)"><code style="margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:inherit"><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">client</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">.</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">o</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;color:rgb(43,145,175)">In</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)"> function </span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">`</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">logSingleMessage</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">':</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">
</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">home</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">hearme</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">radio</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">src</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">client</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">.</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">c</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">283</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)"> undefined reference to </span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">`</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">mysql_init</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">'</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">
</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">home</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">hearme</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">radio</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">src</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">client</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">.</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">c</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">297</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)"> undefined reference to </span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">`</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">mysql_real_connect</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">'</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">
</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">home</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">hearme</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">radio</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">src</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">client</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">.</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">c</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">305</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)"> undefined reference to </span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">`</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">mysql_query</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">'</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">
</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">home</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">hearme</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">radio</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">src</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">client</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">.</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">c</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">307</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)"> undefined reference to </span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">`</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">mysql_error</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">'</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">
</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">home</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">hearme</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">radio</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">src</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">client</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">.</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">c</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">308</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)"> undefined reference to </span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">`</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">mysql_close</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">'</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">
</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">home</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">hearme</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">radio</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">src</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">client</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">.</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">c</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">293</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)"> undefined reference to </span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">`</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">mysql_error</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">'</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">
</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">home</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">hearme</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">radio</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">src</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">/</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">client</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">.</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">c</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">312</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">:</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)"> undefined reference to </span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">`</span><span style="margin:0px;padding:0px;border:0px;color:rgb(0,0,0)">mysql_close</span><span style="margin:0px;padding:0px;border:0px;color:rgb(128,0,0)">'</span></code></pre><p style="margin:0px 0px 1em;padding:0px;border:0px;clear:both;line-height:19.5px;background-color:rgb(255,255,255)"><font face="Calibri,sans-serif">It’s obviously a linking problem with MySQL, but how do I go about correcting this? Do I need to make any updates in the configure file?</font></p><p style="color:rgb(34,34,34);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;margin:0px 0px 1em;padding:0px;border:0px;clear:both;line-height:19.5px;background-color:rgb(255,255,255)"><span style="color:rgb(0,0,0);font-family:Calibri;font-size:14px">Kind Regards</span></p></div><div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px"><div><font face="Calibri"><br></font></div><div><font face="Calibri">Glenn Cooper</font></div><div><br></div><div></div></div></div>
<br>_______________________________________________<br>
Icecast-dev mailing list<br>
<a href="mailto:Icecast-dev@xiph.org" target="_blank">Icecast-dev@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/icecast-dev" rel="noreferrer" target="_blank">http://lists.xiph.org/mailman/listinfo/icecast-dev</a><br>
<br></div>
</div>