Eggheads: Many warnings while compiling

Hielke Hoeve hielke.hoeve at gmail.com
Thu Nov 9 08:32:17 CST 2006


I think we all have those warnings, they are just warnings your
compilation does finish. I have altered my source tarball so I don't
get these warnings but the alterations do not affect the eggdrop in a
positive or negative way...

Hielke

On 09/11/06, Dionisios K. <admin at vonitsanet.gr> wrote:
> I have the following warning on compile.
> I've tried with 1.6.18 and with the last CVS export. The same warnings.
> I've just ./configure , make config ,make (i've tried with gmake config,
> gmake too). No 3rd modules no patches or scripts or modify the source.
>
> Information:
> uname -m = i386
> uname -r = 6.0-RELEASE
> uname -s = FreeBSD
> gcc (GCC) 3.4.4 [FreeBSD] 20050518
> configure:9773: checking for Tcl version
> configure:9785: result: 8.4
> configure:9797: checking for Tcl patch level
> configure:9809: result: 8.4.11
>
>
> Now the errors:
>
> dcc.c: In function `display_dcc_bot_new':
> dcc.c:366: warning: long int format, time_t arg (arg 3)
> dcc.c: In function `display_dcc_chat_pass':
> dcc.c:636: warning: long int format, time_t arg (arg 3)
> dcc.c: In function `display_dcc_telnet_id':
> dcc.c:1502: warning: long int format, time_t arg (arg 3)
> dcc.c: In function `display_dcc_telnet_new':
> dcc.c:1665: warning: long int format, time_t arg (arg 3)
> dcc.c: In function `display_dcc_telnet_pw':
> dcc.c:1670: warning: long int format, time_t arg (arg 3)
> dcc.c: In function `display_dcc_identwait':
> dcc.c:1900: warning: long int format, time_t arg (arg 3)
>
> tcluser.c: In function `tcl_ignorelist':
> tcluser.c:484: warning: long unsigned int format, time_t arg (arg 4)
> tcluser.c:484: warning: long unsigned int format, time_t arg (arg 4)
> tcluser.c:486: warning: long unsigned int format, time_t arg (arg 4)
> tcluser.c:486: warning: long unsigned int format, time_t arg (arg 4)
> gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -g3 -DDEBUG_ASSERT
> -DDEBUG_MEM   -c userent.c
> userent.c: In function `laston_pack':
> userent.c:315: warning: long unsigned int format, time_t arg (arg 3)
> userent.c: In function `laston_write_userfile':
> userent.c:331: warning: long unsigned int format, time_t arg (arg 3)
> userent.c: In function `laston_tcl_get':
> userent.c:379: warning: long unsigned int format, time_t arg (arg 3)
> userent.c: In function `del_entry_type':
> userent.c:1135: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -g3 -DDEBUG_ASSERT
> -DDEBUG_MEM   -c userrec.c
> userrec.c: In function `write_user':
> userrec.c:413: warning: long unsigned int format, time_t arg (arg 4)
> userrec.c: In function `write_ignores':
> userrec.c:445: warning: long unsigned int format, time_t arg (arg 5)
> userrec.c:445: warning: long unsigned int format, time_t arg (arg 7)
> userrec.c: In function `adduser':
> userrec.c:638: warning: long int format, time_t arg (arg 3)
> userrec.c:640: warning: long int format, time_t arg (arg 3)
> gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -g3 -DDEBUG_ASSERT
> -DDEBUG_MEM   -c users.c
> gcc -pipe -g -O2 -Wall -I. -I../.. -I../.. -I../../src -DHAVE_CONFIG_H
> -g3 -DDEBUG_ASSERT -DDEBUG_MEM   -c md5c.c
> gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -g3
> -DDEBUG_ASSERT -DDEBUG_MEM   -c inet_aton.c
> gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -g3
> -DDEBUG_ASSERT -DDEBUG_MEM   -c snprintf.c
> gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -g3
> -DDEBUG_ASSERT -DDEBUG_MEM   -c memset.c
> gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -g3
> -DDEBUG_ASSERT -DDEBUG_MEM   -c memcpy.c
> gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -g3
> -DDEBUG_ASSERT -DDEBUG_MEM   -c strcasecmp.c
> gcc -pipe -g -O2 -Wall -I../.. -I../.. -I../../src -DHAVE_CONFIG_H -g3
> -DDEBUG_ASSERT -DDEBUG_MEM   -c strftime.c
>
>
> gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H -g3 -DDEBUG_ASSERT
> -DDEBUG_MEM   -c tcldcc.c
> tcldcc.c: In function `tcl_dcclist':
> tcldcc.c:624: warning: long int format, time_t arg (arg 4)
> tcldcc.c:624: warning: long int format, time_t arg (arg 4)
> tcldcc.c: In function `tcl_whom':
> tcldcc.c:678: warning: long int format, int arg (arg 4)
> tcldcc.c:678: warning: long int format, int arg (arg 4)
> tcldcc.c:701: warning: long int format, int arg (arg 4)
> tcldcc.c:701: warning: long int format, int arg (arg 4)
>
>
>
> ---------- Yeah! That's the compiling, now the linking! ----------
>
> Linking eggdrop (debug version).
>
> gcc -pipe -g -o ../eggdrop bg.o botcmd.o botmsg.o botnet.o chanprog.o
> cmds.o dcc.o  dccutil.o dns.o flags.o language.o match.o main.o mem.o
> misc.o misc_file.o  modules.o net.o rfc1459.o tcl.o tcldcc.o tclhash.o
> tclmisc.o tcluser.o  userent.o userrec.o users.o  -L/usr/local/lib
> -ltcl84 -lm md5/md5c.o compat/*.o `cat mod/mod.xlibs`
> touch ../eggdrop
>
> Successful compile: eggdrop
>
>  .././channels.mod/channels.c
> In file included from .././channels.mod/channels.c:54:
> ..././channels.mod/tclchan.c: In function `tcl_do_masklist':
> ..././channels.mod/tclchan.c:1497: warning: long unsigned int format,
> time_t arg (arg 3)
> ..././channels.mod/tclchan.c:1499: warning: long unsigned int format,
> time_t arg (arg 3)
> ..././channels.mod/tclchan.c:1501: warning: long unsigned int format,
> time_t arg (arg 3)
> In file included from .././channels.mod/channels.c:55:
> ..././channels.mod/userchan.c: In function `write_bans':
> ..././channels.mod/userchan.c:1078: warning: long unsigned int format,
> time_t arg (arg 5)
> ..././channels.mod/userchan.c:1078: warning: long unsigned int format,
> time_t arg (arg 7)
> ..././channels.mod/userchan.c:1078: warning: long unsigned int format,
> time_t arg (arg 8)
> ..././channels.mod/userchan.c:1103: warning: long unsigned int format,
> time_t arg (arg 5)
> ..././channels.mod/userchan.c:1103: warning: long unsigned int format,
> time_t arg (arg 7)
> ..././channels.mod/userchan.c:1103: warning: long unsigned int format,
> time_t arg (arg 8)
> ..././channels.mod/userchan.c: In function `write_exempts':
> ..././channels.mod/userchan.c:1133: warning: long unsigned int format,
> time_t arg (arg 6)
> ..././channels.mod/userchan.c:1133: warning: long unsigned int format,
> time_t arg (arg 8)
> ..././channels.mod/userchan.c:1133: warning: long unsigned int format,
> time_t arg (arg 9)
> ..././channels.mod/userchan.c:1158: warning: long unsigned int format,
> time_t arg (arg 6)
> ..././channels.mod/userchan.c:1158: warning: long unsigned int format,
> time_t arg (arg 8)
> ..././channels.mod/userchan.c:1158: warning: long unsigned int format,
> time_t arg (arg 9)
> ..././channels.mod/userchan.c: In function `write_invites':
> ..././channels.mod/userchan.c:1188: warning: long unsigned int format,
> time_t arg (arg 5)
> ..././channels.mod/userchan.c:1188: warning: long unsigned int format,
> time_t arg (arg 7)
> ..././channels.mod/userchan.c:1188: warning: long unsigned int format,
> time_t arg (arg 8)
> ..././channels.mod/userchan.c:1213: warning: long unsigned int format,
> time_t arg (arg 5)
> ..././channels.mod/userchan.c:1213: warning: long unsigned int format,
> time_t arg (arg 7)
> ..././channels.mod/userchan.c:1213: warning: long unsigned int format,
> time_t arg (arg 8)
>
> ..././filesys.mod/filesys.c
> ..././filesys.mod/filesys.c: In function `disp_dcc_files_pass':
> ..././filesys.mod/filesys.c:553: warning: long int format, time_t arg (arg 3)
>
> ..././server.mod/server.c
> ..././server.mod/server.c: In function `next_server':
> ..././server.mod/server.c:1050: warning: dereferencing type-punned
> pointer will break strict-aliasing rules
>
> RT -DDEBUG_MEM   -DMAKING_MODS -c .././seen.mod/seen.c
> ..././seen.mod/seen.c: In function `do_seen':
> ..././seen.mod/seen.c:476: warning: long unsigned int format, int arg (arg 3)
> ..././seen.mod/seen.c:481: warning: long unsigned int format, int arg (arg 3)
> ..././seen.mod/seen.c:486: warning: long unsigned int format, int arg (arg 3)
> mv seen.o ../
>
>



More information about the Eggheads mailing list