Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2009 05:39:24 GMT
From:      Vladimir Korkodinov <viper@perm.raid.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/134256: [FIX] net-im/mu-conference. Unbreak build with mysql
Message-ID:  <200905060539.n465dOLV072236@www.freebsd.org>
Resent-Message-ID: <200905060540.n465e429080185@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         134256
>Category:       ports
>Synopsis:       [FIX] net-im/mu-conference. Unbreak build with mysql
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 06 05:40:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir Korkodinov
>Release:        6.4-RELEASE-p3
>Organization:
>Environment:
FreeBSD xxxxx 6.4-RELEASE-p3 FreeBSD 6.4-RELEASE-p3 #2: Mon Jan 19 17:35:46 YEKT 2009     root@xxxxx:/usr/obj/usr/src/sys/kernel  i386

>Description:
net-im/mu-conference 0.8 don`t build with mysql support

cc -O2 -fno-strict-aliasing -pipe -march=pentium4 -I/usr/local/include -DHAVE_MYSQL -march=pentium4 -Wall -I../../lib -I../include `/usr/local/bin/pkg-config --cflags glib-2.0` -D_JCOMP -D_REENTRANT -DLIBIDN  -o mu-conference libjcomp.a conference.o conference_room.o conference_user.o utils.o xdata.o admin.o roles.o xdb.o hash.o iq.o main.o mysql.o -L.  -ljcomp -lm `/usr/local/bin/pkg-config --libs glib-2.0` `/usr/local/bin/pkg-config --libs gthread-2.0` -lexpat -lidn
mysql.o(.text+0x46): In function `sql_mysql_connect':
: undefined reference to `mysql_real_connect'
mysql.o(.text+0xb2): In function `sql_mysql_init':
: undefined reference to `mysql_init'
mysql.o(.text+0x182): In function `sql_mysql_init':
: undefined reference to `mysql_close'
mysql.o(.text+0x1a6): In function `sql_mysql_close':
: undefined reference to `mysql_close'
mysql.o(.text+0x20f): In function `sql_mysql_execute':
: undefined reference to `mysql_query'
mysql.o(.text+0x226): In function `sql_mysql_execute':
: undefined reference to `mysql_errno'
mysql.o(.text+0x246): In function `sql_mysql_execute':
: undefined reference to `mysql_error'
mysql.o(.text+0x2da): In function `sql_mysql_execute':
: undefined reference to `mysql_query'
mysql.o(.text+0x364): In function `_sql_escape_string':
: undefined reference to `mysql_real_escape_string'
*** Error code 1

Stop in /usr/home/viper/ports/net-im/mu-conference.orig/work/mu-conference_0.8/src.
*** Error code 1

Stop in /usr/home/viper/ports/net-im/mu-conference.orig/work/mu-conference_0.8.
*** Error code 1

Stop in /usr/home/viper/ports/net-im/mu-conference.orig.
*** Error code 1

Stop in /usr/home/viper/ports/net-im/mu-conference.orig.

>How-To-Repeat:
Try build with mysql support
>Fix:
Apply patch

Patch attached with submission follows:

diff -ruN mu-conference.orig/files/patch-src-Makefile mu-conference/files/patch-src-Makefile
--- mu-conference.orig/files/patch-src-Makefile	1970-01-01 05:00:00.000000000 +0500
+++ mu-conference/files/patch-src-Makefile	2009-05-06 11:30:22.000000000 +0600
@@ -0,0 +1,13 @@
+--- src/Makefile.orig	2007-07-17 04:05:44.000000000 +0600
++++ src/Makefile	2009-05-06 11:29:46.000000000 +0600
+@@ -1,8 +1,8 @@
+ CC:=gcc
+ CFLAGS:=$(CFLAGS) -O2 -Wall -I../../lib -I../include `pkg-config --cflags glib-2.0` -D_JCOMP -D_REENTRANT -DLIBIDN
+ #CFLAGS:=$(CFLAGS) -O2 -Wall -I../../lib -I../include `pkg-config --cflags glib-2.0` -D_JCOMP -D_REENTRANT -DLIBIDN -DHAVE_MYSQL
+-LIBS:=$(LIBS) -ljcomp -lm `pkg-config --libs glib-2.0` `pkg-config --libs gthread-2.0` -lexpat -lidn
+-#LIBS:=$(LIBS) -ljcomp -lm `pkg-config --libs glib-2.0` `pkg-config --libs gthread-2.0` -lexpat -lidn `mysql_config --libs`
++#LIBS:=$(LIBS) -ljcomp -lm `pkg-config --libs glib-2.0` `pkg-config --libs gthread-2.0` -lexpat -lidn
++LIBS:=$(LIBS) -ljcomp -lm `pkg-config --libs glib-2.0` `pkg-config --libs gthread-2.0` -lexpat -lidn `mysql_config --libs`
+ LDFLAGS:=-L.
+ 
+ # Debug/Experimental


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905060539.n465dOLV072236>