From nobody@FreeBSD.org  Fri May  4 15:51:52 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A79541065680
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 May 2012 15:51:52 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 92AF98FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  4 May 2012 15:51:52 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q44FpqBk034239
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 4 May 2012 15:51:52 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q44FppLM034238;
	Fri, 4 May 2012 15:51:51 GMT
	(envelope-from nobody)
Message-Id: <201205041551.q44FppLM034238@red.freebsd.org>
Date: Fri, 4 May 2012 15:51:51 GMT
From: Erich Prinz <erich.freebsd@bpisys.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Compile of MySQL NDB Cluster Fails 8.2 AMD64
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         167582
>Category:       amd64
>Synopsis:       Compile of MySQL NDB Cluster Fails 8.2 AMD64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 04 16:00:23 UTC 2012
>Closed-Date:    
>Last-Modified:  Fri May 04 19:36:31 UTC 2012
>Originator:     Erich Prinz
>Release:        8.2
>Organization:
BPI Systems
>Environment:
FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011
>Description:
Compilation fails with the following output:

/usr/local/mysql-cluster-gpl-7.2.5/storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp: In member function 'void Qmgr::execAPI_VERSION_REQ(Signal*)':
/usr/local/mysql-cluster-gpl-7.2.5/storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:3694: error: 'class ApiVersionConf' has no member named '__inet_addr'
/usr/local/mysql-cluster-gpl-7.2.5/storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:3700: error: 'class ApiVersionConf' has no member named '__inet_addr'


Following the instructions from a post on building NDB Cluster 7.2, cmake finishes happily but the compile fails here. An earlier post in MySQL bug back in March came back with "likely an OS issue" so posting the bug report here.

This occurs every machine I've tested (all identical and now the 5th machine.)
>How-To-Repeat:
1. Install cmake from ports.
2. DL and unpack mysql-cluster-gpl-7.2.5
3. cmake -DBUILD_CONFIG=mysql_release -DMYSQL_DATADIR=/usr/db/mysql -DINSTALL_MANDIR=/usr/local/man -DINSTALL_SBINDIR=/usr/local/libexec -DINSTALL_MYSQLSHAREDIR=/usr/local/share/mysql -DINSTALL_SCRIPTDIR=/usr/local/bin -DINSTALL_LIBDIR=/usr/local/lib/mysql -DINSTALL_INCLUDEDIR=/usr/local/include/mysql -DINSTALL_BINDIR=/usr/local/bin .
4. make install

It will fail at:  [ 55%] Building CXX object storage/ndb/src/kernel/blocks/CMakeFiles/ndbblocks.dir/qmgr/QmgrMain.cpp.o

>Fix:


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