ports/82134: [PATCH] databases/mysql-server: fix build on 4.x
Tod McQuillin
devin at spamcop.net
Sat Jun 11 02:50:13 UTC 2005
>Number: 82134
>Category: ports
>Synopsis: [PATCH] databases/mysql-server: fix build on 4.x
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Jun 11 02:50:12 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Tod McQuillin
>Release: FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD plexi.pun-pun.prv 4.11-STABLE FreeBSD 4.11-STABLE #0: Sat May 21 11:14:44 JST 2005
>Description:
The build on 4.x picks the wrong readline library, with these results:
cc -DDBUG_OFF -O -pipe -D_THREAD_SAFE -I/usr/local/include -O -pipe -D_THREAD_SAFE -I/usr/local/include -felide-constructors -fno-rtti -fno-exceptions -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000 -o .libs/mysql mysql.o readline.o sql_string.o completion_hash.o -lreadline -lncurses ../libmysql/.libs/libmysqlclient.so -lcrypt -lm -lz -Wl,--rpath -Wl,/usr/local/lib/mysql
mysql.o: In function `new_mysql_completion(char const *, int, int)':
mysql.o(.text+0x18b0): undefined reference to `rl_completion_matches'
*** Error code 1
Stop in /usr/src/ports/databases/mysql41-client/work/mysql-4.1.12/client.
*** Error code 1
Port maintainer (ale at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
On a 4.x system, cd /usr/ports/databases/mysql41-client; make
>Fix:
Allow configure to find the right readline library:
--- mysql-server-4.1.12.patch begins here ---
Index: Makefile
===================================================================
RCS file: /usr/src/cvs-repo/ports/databases/mysql41-server/Makefile,v
retrieving revision 1.207
diff -u -u -r1.207 Makefile
--- Makefile 8 Jun 2005 07:33:21 -0000 1.207
+++ Makefile 10 Jun 2005 13:50:09 -0000
@@ -91,6 +91,8 @@
LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="${LDFLAGS}"
CXX= ${CC}
.endif
.if defined(BUILD_OPTIMIZED)
--- mysql-server-4.1.12.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list