Issue information

Issue ID
#8542
Status
Unable to Fix
Severity
None
Started
Hadeszeus
Feb 20, 2015 12:20
Last Post
4144
Mar 6, 2015 8:26
Confirmation
N/A

Hadeszeus - Feb 20, 2015 12:20

I'm getting the following warning everytime I compile my FRESH copy of Hercules.

Login Server[code=:0] 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 [/code]

Char-server
[spoiler]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 ();
^
/usr/include/x86_64-linux-gnu/bits/stdio2.h: In function ‘geoip_init’:
/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);
^
make[1]: Leaving directory `/root/Desktop/Hercules/src/char'
MAKE map_sql
[/spoiler]



MAP SERVER
[spoiler]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 ‘hread’:
/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 ‘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 ();
^
/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]
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/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 ();
^
/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/stdio2.h: In function ‘grfio_reads’:
/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/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/stdio2.h: In function ‘grfio_entryread’:
/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/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/stdio2.h: In function ‘npc_parsesrcfile’:
/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/stdio2.h: In function ‘map_init_mapcache’:
/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);
^
make[1]: Leaving directory `/root/Desktop/Hercules/src/map'
building conf/import folder...
[/spoiler]

Hadeszeus - Feb 20, 2015 13:29

Correction I'm using Ubuntu 14.04 Thanks!

Dastgir - Feb 21, 2015 2:00

This is known issue, it only happens with Ubuntu and have no effects on server..
Hope Haru/Ind get a look into this.

Ind - Mar 5, 2015 17:20

your version of gcc is the problem, update it or install clang.

Dastgir - Mar 6, 2015 2:09

[quote name="Ind" timestamp="1425576049"]
your version of gcc is the problem, update it or install clang.
[/quote]GCC 4.8 too shows this warning
(I hope 4.8 is the only last good GCC)
Since GCC 4.9 on Ubuntu behaves extra odd and doesn't even compile.

This post has been edited by Dastgir on Mar 6, 2015 2:10

4144 - Mar 6, 2015 8:26

Dastgit, for gcc 4.9 need disable lto in configure