Issue Information
-
#008542
-
0 - None Assigned
-
Unable to Fix
Issue Confirmations
-
Yes (0)No (0)
1
Login, Char, Map Server compile warning using Ubuntu 11.04
Posted by Hadeszeus on 20 February 2015 - 12:20 PM
I'm getting the following warning everytime I compile my FRESH copy of Hercules.
Login Server
Char-server
MAP SERVER
Login Server
LD login-server malloc.o (symbol from plugin): warning: memset used with constant zero length parameter; this could be due to transposed parameters /usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘yy_get_next_buffer’: /usr/include/x86_64-linux-gnu/bits/stdio2.h:290:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default] return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream); ^ /usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default] return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream); ^ /usr/include/x86_64-linux-gnu/bits/string3.h: In function ‘console_parse_list_subs’: /usr/include/x86_64-linux-gnu/bits/string3.h:81:30: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default] __warn_memset_zero_len (); ^ /usr/include/x86_64-linux-gnu/bits/string3.h:81:30: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default] __warn_memset_zero_len (); ^ socket.c: In function ‘do_close.part.5’: socket.c:1240:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default] /usr/include/x86_64-linux-gnu/bits/socket2.h: In function ‘recv_to_fifo’: /usr/include/x86_64-linux-gnu/bits/socket2.h:39:2: warning: call to ‘__recv_chk_warn’ declared with attribute warning: recv called with bigger length than size of destination buffer [enabled by default] return __recv_chk (__fd, __buf, __n, __bos0 (__buf), __flags); ^ /usr/include/x86_64-linux-gnu/bits/socket2.h:42:2: warning: call to ‘__recv_chk_warn’ declared with attribute warning: recv called with bigger length than size of destination buffer [enabled by default] return __recv_chk_warn (__fd, __buf, __n, __bos0 (__buf), __flags); ^ socket.c: In function ‘connect_client’: socket.c:505:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default] socket.c: In function ‘make_listen_bind’: socket.c:555:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default] socket.c: In function ‘make_connection’: socket.c:606:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default] socket.c: In function ‘do_sockets’: socket.c:841:6: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default] /usr/include/x86_64-linux-gnu/bits/string3.h: In function ‘mmalloc_’: /usr/include/x86_64-linux-gnu/bits/string3.h:81:30: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default] __warn_memset_zero_len (); ^ /usr/include/x86_64-linux-gnu/bits/string3.h: In function ‘mfree_’: /usr/include/x86_64-linux-gnu/bits/string3.h:81:30: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default] __warn_memset_zero_len (); ^ /usr/include/x86_64-linux-gnu/bits/string3.h:81:30: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters [enabled by default] __warn_memset_zero_len (); ^ make[1]: Leaving directory `/root/Desktop/Hercules/src/login' MAKE char_sql make[1]: Entering directory `/root/Desktop/Hercules/src/char' MKDIR obj_sql CC char.c
Char-server
Spoiler
MAP SERVER
Spoiler
Correction I'm using Ubuntu 14.04 Thanks!
This is known issue, it only happens with Ubuntu and have no effects on server..
Hope Haru/Ind get a look into this.
Hope Haru/Ind get a look into this.
changed status to: Unable to Fix
your version of gcc is the problem, update it or install clang.
GCC 4.8 too shows this warningyour version of gcc is the problem, update it or install clang.
(I hope 4.8 is the only last good GCC)
Since GCC 4.9 on Ubuntu behaves extra odd and doesn't even compile.
Dastgit, for gcc 4.9 need disable lto in configure