AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   Solved Error on building SourceMod with MySQL (https://forums.alliedmods.net/showthread.php?t=332385)

Oylsister 05-09-2021 05:37

Error on building SourceMod with MySQL
 
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.


BAILOPAN 05-12-2021 22:47

Re: Error on building SourceMod with MySQL
 
mysql-5.5.54-win32?

Oylsister 05-16-2021 09:07

Re: Error on building SourceMod with MySQL
 
Quote:

Originally Posted by BAILOPAN (Post 2746664)
mysql-5.5.54-win32?

yeah got it, I was building it on linux. issues solved. :)


All times are GMT -4. The time now is 11:26.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.