Bug #55795 Compilation fails on FreeBSD 8.1 on Sheevaplug (ARM)
Submitted: 6 Aug 2010 7:06 Modified: 27 Apr 2018 13:08
Reporter: Nicole Reid Email Updates:
Status: Unsupported Impact on me:
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.1.48 OS:FreeBSD (8.1 ARM)
Assigned to: CPU Architecture:Any
Tags: Contribution, freebsd, kirkwood, sheevaplug

[6 Aug 2010 7:06] Nicole Reid
MySQL fails during the build process with this error:

c++ -DMYSQL_SERVER  -DDEFAULT_MYSQL_HOME="\"/usr/local\""  -DMYSQL_DATADIR="\"/var/db/mysql\""  -DSHAREDIR="\"/usr/local/share/mysql\""  -DPLUGINDIR="\"/usr/local/lib/mysql/plugin\""  -DHAVE_EVENT_SCHEDULER  -DHAVE_CONFIG_H -I. -I../include -I../include -I../include  -I../regex -I.      -O -pipe -fPIC -O -pipe  -fPIC -felide-constructors -fno-rtti -fno-exceptions   -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_COUNT=1000000 -MT mysqld.o -MD -MP -MF .deps/mysqld.Tpo -c -o mysqld.o mysqld.cc
mysqld.cc:179: error: multiple types in one declaration
mysqld.cc:179: error: declaration does not declare anything
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 1
1 error
*** Error code 1

Stop in /usr/ports/databases/mysql51-server.

How to repeat:
Install MySQL

Suggested fix:
The build succeeds by removing these three lines:

--- sql/mysqld.cc.orig	2010-06-03 11:50:10.000000000 -0400
+++ sql/mysqld.cc	2010-08-06 03:00:07.323478467 -0400
@@ -175,9 +175,6 @@
 #if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H)
 #include <ieeefp.h>
-#ifdef HAVE_FP_EXCEPT				// Fix type conflict
-typedef fp_except fp_except_t;
 #endif /* __FreeBSD__ && HAVE_IEEEFP_H */
 #ifdef HAVE_SYS_FPU_H
 /* for IRIX to use set_fpc_csr() */

Perhaps adding a !defined(__arm__). It works with this change :)

pochan# /usr/local/etc/rc.d/mysql-server onestart
Starting mysql.
pochan# uname -a
FreeBSD pochan 8.1-RELEASE FreeBSD 8.1-RELEASE #27: Wed Aug  4 14:21:57 EDT 2010     nicole@Emi.cooltrainer.org:/usr/obj/arm/usr/src/sys/DOCKSTAR  arm
pochan# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.48 FreeBSD port: mysql-server-5.1.48
[29 Sep 2010 10:29] Susanne Ebrecht
Did you use gmake?
[29 Oct 2010 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[27 Apr 2018 13:08] Yngve Svendsen
Posted by developer:
Obsolete MySQL version on obsolete OS on unsupported hardware.