Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2006 15:14:33 GMT
From:      Matt Loschert <loschert@servint.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/91600: [PATCH] fix mysql50-server build on FreeBSD 4.x
Message-ID:  <200601101514.k0AFEX3H066277@www.freebsd.org>
Resent-Message-ID: <200601101520.k0AFK4EZ006074@freefall.freebsd.org>

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

>Number:         91600
>Category:       ports
>Synopsis:       [PATCH] fix mysql50-server build on FreeBSD 4.x
>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:   Tue Jan 10 15:20:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Matt Loschert
>Release:        FreeBSD 4.11
>Organization:
ServInt Corporation
>Environment:
>Description:
In order to detect the presence of a system zlib installation, the configure script for MySQL 5.0.18 checks for the zlib function zlibCompileFlags.  This function only exists in zlib 1.2.x and above.  The included version of zlib in FreeBSD 4.x is 1.1.4.  This version of zlib exports the function zlibVersion which can instead be used for library detection.
>How-To-Repeat:
Attempt to build databases/mysql50-server or databases/mysql50-client on a FreeBSD 4.x server.
>Fix:
The following updated port file fixes the problem.  Replace /usr/ports/databases/mysql50-server/files/patch-configure with:

--- configure.orig      Wed Dec 21 14:41:46 2005
+++ configure   Mon Jan  9 12:46:04 2006
@@ -20603,10 +20603,8 @@
 
 
 # This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+LIBTOOL_DEPS="--disable-ltlibs /usr/local/share/libtool15/ltmain.sh"
 
-# Always use our own libtool.
-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
 # Prevent multiple expansion
 
@@ -25092,7 +25090,7 @@
 int
 main ()
 {
-return zlibCompileFlags();
+zlibVersion();
   ;
   return 0;
 }
@@ -26130,8 +26128,8 @@
 # Some system specific hacks
 #
 
-MAX_C_OPTIMIZE="-O3"
-MAX_CXX_OPTIMIZE="-O3"
+MAX_C_OPTIMIZE=""
+MAX_CXX_OPTIMIZE=""
 
 ndb_cxxflags_fix=
 case $SYSTEM_TYPE-$MACHINE_TYPE-$ac_cv_c_compiler_gnu in

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



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