[Icecast-dev] Extending Icecast - Problem with Linker

Glenn Cooper glenn at mychoons.com
Fri Oct 30 09:43:25 PDT 2015


Hi folks,

I am looking to extend on the Icecast engine with a couple of extra features
and experiencing some issues.

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:

client.o: In function `logSingleMessage':
/home/hearme/radio/src/client.c:283: undefined reference to `mysql_init'
/home/hearme/radio/src/client.c:297: undefined reference to
`mysql_real_connect'
/home/hearme/radio/src/client.c:305: undefined reference to `mysql_query'
/home/hearme/radio/src/client.c:307: undefined reference to `mysql_error'
/home/hearme/radio/src/client.c:308: undefined reference to `mysql_close'
/home/hearme/radio/src/client.c:293: undefined reference to `mysql_error'
/home/hearme/radio/src/client.c:312: undefined reference to `mysql_close'
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?
Kind Regards


Glenn Cooper



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/icecast-dev/attachments/20151030/176a0ab8/attachment.htm 


More information about the Icecast-dev mailing list