[Bug 259219] Error in sys/cdefs.h during building databases/mysql57-server

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 17 Oct 2021 00:48:59 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259219

--- Comment #2 from Piotr Kubaj <pkubaj_at_FreeBSD.org> ---
Also pasting the error here for convenience:
cd /wrkdirs/usr/ports/databases/mysql57-server/work/.build/libmysqld &&
/usr/bin/c++ -DEMBEDDED_LIBRARY -DGTEST_USE_OWN_TR1_TUPLE=1 -DHAVE_CONFIG_H
-DMYSQL_SERVER
-I/wrkdirs/usr/ports/databases/mysql57-server/work/.build/include
-I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/extra/rapidjson/include
-I/wrkdirs/usr/ports/databases/mysql57-server/work/.build/libbinlogevents/include
-I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/libbinlogevents/export
-I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/include
-I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/libmysql
-I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/libbinlogevents/include
-I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/libmysqld
-I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/sql
-I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/sql/auth
-I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/sql/conn_handler
-I/wrkdirs/usr/ports/databases/mysql57-server/work/.build/libmysqld
-I/wrkdirs/usr/ports/databases/mysql57-server/work/.build/sql
-I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/regex
-I/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/sql/backup
-isystem
/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/include/boost_1_59_0/patches
-isystem
/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/boost/boost_1_59_0
-fPIC -fno-omit-frame-pointer -fno-strict-aliasing -O2 -pipe  -DNDEBUG
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  
-DNDEBUG -isystem /usr/local/include -std=c++11 -Wall -Wextra -Wformat-security
-Wvla -Woverloaded-virtual -Wno-unused-parameter -Wno-null-conversion
-Wno-unused-private-field -ffunction-sections -fdata-sections -O2 -pipe 
-DNDEBUG -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing   -DNDEBUG -isystem /usr/local/include -std=c++11 -fPIC   
-DHAVE_OPENSSL -MD -MT libmysqld/CMakeFiles/sql_embedded.dir/__/sql/sql_do.cc.o
-MF CMakeFiles/sql_embedded.dir/__/sql/sql_do.cc.o.d -o
CMakeFiles/sql_embedded.dir/__/sql/sql_do.cc.o -c
/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/sql/sql_do.cc
In file included from
/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/sql/sql_do.cc:26:
In file included from
/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/sql/transaction.h:26:
In file included from
/wrkdirs/usr/ports/databases/mysql57-server/work/mysql-5.7.35/include/my_global.h:53:
In file included from /usr/include/c++/v1/stdio.h:101:
In file included from /usr/include/c++/v1/__config:247:
In file included from /usr/include/sys/endian.h:34:
/usr/include/sys/cdefs.h:207:6: error: token is not a valid binary operator in
a preprocessor subexpression
#if !__GNUC_PREREQ__(2, 5)
     ^~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/cdefs.h:135:12: note: expanded from macro '__GNUC_PREREQ__'
        (__GNUC__ > (ma) || __GNUC__ == (ma) && __GNUC_MINOR__ >= (mi))
         ~~~~~~~~ ^

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Sun Oct 17 2021 - 00:48:59 UTC

Original text of this message