[Home]

Summary:ASTERISK-00927: [patch] Fix Makefile for SIP and USE_MYSQL_FRIENDS
Reporter:John Todd (jtodd)Labels:
Date Opened:2004-01-27 15:34:58.000-0600Date Closed:2004-09-25 02:53:45
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Very minor and crude patch to get Asterisk to compile with MY_SQL_FRIENDS set to 1.  On RH9.0 with correct installation of the mysql libraries, Asterisk fails to comple with an ld error on finding the mysqlclient libraries.  This patch hardcodes the mysql library path into the Makefile.  Uuuugly.

I am fairly certain that this is the wrong way to do it, but that's what I did.  I include as comments instead of an attachment so nobody goes through the trouble of downloading something they'll just need to re-write anyway.


****** ADDITIONAL INFORMATION ******

--- channels/Makefile   2004-01-27 15:30:13.000000000 -0500
+++ channels/Makefile~  2004-01-27 15:30:13.000000000 -0500
@@ -106,14 +106,14 @@

chan_iax2.so: chan_iax2.o iax2-parser.o
ifeq ($(USE_MYSQL_FRIENDS),1)
-       $(CC) $(SOLINK) -o $@ chan_iax2.o iax2-parser.o -lmysqlclient -L/usr/lib/mysql/ -lz
+       $(CC) $(SOLINK) -o $@ chan_iax2.o iax2-parser.o -lmysqlclient -lz
else
       $(CC) $(SOLINK) -o $@ chan_iax2.o iax2-parser.o
endif

chan_iax.so: chan_iax.o
ifeq ($(USE_MYSQL_FRIENDS),1)
-       $(CC) $(SOLINK) -o $@ chan_iax.o -L/usr/lib/mysql -lmysqlclient -L/usr/lib/mysql/ -lz
+       $(CC) $(SOLINK) -o $@ chan_iax.o -L/usr/lib/mysql -lmysqlclient -lz
else
       $(CC) $(SOLINK) -o $@ chan_iax.o
endif
Comments:By: Olle Johansson (oej) 2004-03-19 15:56:11.000-0600

Is this still a problem?

By: James Golovich (jamesgolovich) 2004-03-26 02:09:33.000-0600

Looks like this was fixed in CVS on 3/21/04.  Reopen if its still an issue