Jump to content
  • 0
Sign in to follow this  
Banzou

Error when compiling latest git

Question

Hey guys I keep getting this error when I'm compiling the server on CentOS. I did everything according to the Installation guide in the Wiki but no matter what I do I still get this. I've tried compiling the server on Windows 10 with VS13 with the same files and it works flawlessly but on CentOS it doesn't seem to. What could be wrong?

 

strlib.c: In function ‘strlib_normalize_name’:
strlib.c:193: warning: logical ‘&&’ with non-zero constant will always evaluate as true
strlib.c:203: warning: logical ‘&&’ with non-zero constant will always evaluate as true
strlib.c:210: warning: logical ‘&&’ with non-zero constant will always evaluate as true
strlib.c: In function ‘strlib_e_mail_check’:
strlib.c:314: warning: logical ‘&&’ with non-zero constant will always evaluate as true
strlib.c: In function ‘sv_escape_c’:
strlib.c:767: warning: logical ‘&&’ with non-zero constant will always evaluate as true
        CC      sysinfo.c
        CC      thread.c
        CC      timer.c
        CC      utils.c
        CC      console.c
        CC      core.c
        CC      memmgr.c
memmgr.c: In function ‘malloc_verify_ptr’:
memmgr.c:938: warning: logical ‘&&’ with non-zero constant will always evaluate as true
        CC      socket.c
        AR      obj_all/common.a
        MKDIR   obj_sql
        CC      sql.c
sql.c: In function ‘SqlStmt_BindParam’:
sql.c:656: error: #pragma GCC diagnostic not allowed inside functions
sql.c:657: error: #pragma GCC diagnostic not allowed inside functions
sql.c:664: warning: cast discards qualifiers from pointer target type
sql.c:665: error: #pragma GCC diagnostic not allowed inside functions
make[1]: *** [obj_sql/sql.o] Error 1
make[1]: Leaving directory `/root/Desktop/Hercules/src/common'
make: *** [common_sql] Error 2

 

Any help would be greatly appreciated!

Edited by Banzou

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

This mean your compiler version too old.

But probably devs will add workaround for outdated compilers.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.