Raised This Month: $12 Target: $400
 3% 

Solved Error on building SourceMod with MySQL


Post New Thread Reply   
 
Thread Tools Display Modes
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
BAILOPAN
Join Date: Jan 2004
Old 05-12-2021 , 22:47   Re: Error on building SourceMod with MySQL
Reply With Quote #2

mysql-5.5.54-win32?
__________________
egg
BAILOPAN is offline
Oylsister
Senior Member
Join Date: Aug 2019
Location: KhonKaen, Thailand
Old 05-16-2021 , 09:07   Re: Error on building SourceMod with MySQL
Reply With Quote #3

Quote:
Originally Posted by BAILOPAN View Post
mysql-5.5.54-win32?
yeah got it, I was building it on linux. issues solved.
__________________
Oylsister is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:32.


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