ports/101647: MySQL 50 server/client uncompilable with OpenSSL

Dan Lukes dan at obluda.cz
Tue Aug 8 10:10:19 UTC 2006


>Number:         101647
>Category:       ports
>Synopsis:       MySQL 50 server/client uncompilable with OpenSSL
>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 Aug 08 10:10:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dan Lukes
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
Obludarium
>Environment:
Latest ports updated via CVSUP

>Description:
	The mysql50-{client|server} is not compilable with WITH_OPENSSL

	It fail claiming it can't found the OpenSSL.

	It's bug in Mysql's configure script. For mode information see
http://bugs.mysql.com/bug.php?id=21327

	Unfortunatelly, until repaired by MySQL team, it can't be compiled with some combination of OPTIONs.

	Note, this PR is not related to ports/97933

>How-To-Repeat:
	make -DWITH_OPENSSL
>Fix:

	Three posibilities:

1. return to an pre-bug version of MySQL 5.0.x

2. patch the configure by our own patch system using the patch presented in MySQL 21327 bug report

3. workaround in port Makefile:

replace 
CONFIGURE_ARGS+=with_openssl=${OPENSSLBASE}
with
CONFIGURE_ARGS+=with_openssl
CONFIGURE_ARGS+=with_openssl_includes=${OPENSSLINC}
CONFIGURE_ARGS+=with_openssl_lib=${OPENSSLLIB}


	I would like to recommend the latest. At the first, it correct the actual problem, at the second, we have our own detection
system for OpenSSl headers and libraries (bsd.openssl.mk) so it better to use it instead of an internal configure's logic. 
Mixing our and internal logic in different ports may result one port (library) compiled and linked against base Openssl and second
against port OpenSSL. It may cause undeterministic malfunctions of software which will be hard to debug.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list