View Single Post
Author Message
Oylsister
Senior Member
Join Date: Aug 2019
Location: KhonKaen, Thailand
Old 05-09-2021 , 05:37   Error on building SourceMod with MySQL
Reply With Quote #1

Hi, I tried to build a custom sourcemod with mysql. but get stuck with some error here.

custom sourcemod: https://github.com/BotoX/sourcemod

I build this on linux

Code:
In file included from /home/oylsister/alliedmodders/sourcemod/extensions/mysql/mysql/MyDatabase.cpp:32:
In file included from /home/oylsister/alliedmodders/sourcemod/extensions/mysql/mysql/MyDatabase.h:37:
In file included from /home/oylsister/alliedmodders/sourcemod/extensions/mysql/mysql/MyDriver.h:42:
In file included from /home/oylsister/alliedmodders/mysql-5.5.54-win32/include/my_global.h:77:
/home/oylsister/alliedmodders/mysql-5.5.54-win32/include/my_config.h:482:9: error: 'S_IROTH' macro redefined [-Werror,-Wmacro-redefined]
#define S_IROTH _S_IREAD
        ^
/usr/include/sys/stat.h:186:9: note: previous definition is here
#define S_IROTH (S_IRGRP >> 3)  /* Read by others.  */
        ^
In file included from /home/oylsister/alliedmodders/sourcemod/extensions/mysql/mysql/MyDatabase.cpp:32:
In file included from /home/oylsister/alliedmodders/sourcemod/extensions/mysql/mysql/MyDatabase.h:37:
In file included from /home/oylsister/alliedmodders/sourcemod/extensions/mysql/mysql/MyDriver.h:42:
In file included from /home/oylsister/alliedmodders/mysql-5.5.54-win32/include/my_global.h:77:
/home/oylsister/alliedmodders/mysql-5.5.54-win32/include/my_config.h:483:9: error: 'S_IFIFO' macro redefined [-Werror,-Wmacro-redefined]
#define S_IFIFO _S_IFIFO
        ^
/usr/include/sys/stat.h:110:11: note: previous definition is here
#  define S_IFIFO       __S_IFIFO
          ^
In file included from /home/oylsister/alliedmodders/sourcemod/extensions/mysql/mysql/MyDatabase.cpp:32:
In file included from /home/oylsister/alliedmodders/sourcemod/extensions/mysql/mysql/MyDatabase.h:37:
In file included from /home/oylsister/alliedmodders/sourcemod/extensions/mysql/mysql/MyDriver.h:42:
/home/oylsister/alliedmodders/mysql-5.5.54-win32/include/my_global.h:1459:22: error: static declaration of 'rint' follows non-static declaration
static inline double rint(double x)
                     ^
/usr/include/bits/mathcalls.h:256:13: note: previous declaration is here
__MATHCALL (rint,, (_Mdouble_ __x));
            ^
In file included from /home/oylsister/alliedmodders/sourcemod/extensions/mysql/mysql/MyDatabase.cpp:32:
In file included from /home/oylsister/alliedmodders/sourcemod/extensions/mysql/mysql/MyDatabase.h:37:
In file included from /home/oylsister/alliedmodders/sourcemod/extensions/mysql/mysql/MyDriver.h:43:
In file included from /home/oylsister/alliedmodders/mysql-5.5.54-win32/include/my_sys.h:44:
/home/oylsister/alliedmodders/mysql-5.5.54-win32/include/my_pthread.h:274:5: error: conflicting types for 'sigwait'
int sigwait(sigset_t *setp, int *sigp);         /* Use our implemention */
    ^
/usr/include/signal.h:252:12: note: previous declaration is here
extern int sigwait (const sigset_t *__restrict __set, int *__restrict __sig)
           ^
4 errors generated.
__________________

Last edited by Oylsister; 05-16-2021 at 09:07.
Oylsister is offline