Eggheads: Missing snprintf

Uwe Schindler uwe at thetaphi.de
Mon Sep 23 11:24:00 CST 2002


When compiling eggdrop 1.6.12 on a DEC alpha machine, the linking stops:
% make

Making module objects for static linking...

building static.h...
............... done.

Making core eggdrop for static linking...

(This may take a while.  Go get some runts.)
---------- Yeah! that's the compiling, now the linking! ----------

Linking eggdrop... (static version)

cc -o ../eggdrop bg.o botcmd.o botmsg.o botnet.o chanprog.o cmds.o 
dcc.o  dccuti
l.o dns.o flags.o language.o main.o mem.o misc.o misc_file.o  modules.o 
net.o rf
c1459.o tcl.o tcldcc.o tclhash.o tclmisc.o  tcluser.o userent.o userrec.o 
users.
o mod/*.o -L/mnt/db0/pangaea/web1/uwe_work/tcl8.3.4/unix -ltcl8.3 
-lm  md5/md5c.
o compat/*.o `cat mod/mod.xlibs`
ld:
Unresolved:
snprintf
*** Exit 1
Stop.
*** Exit 1
Stop.
%

During configure the missing "snprintf" is correctly detected.
Looking through the code I find that in compat.h the "snprintf" function is 
mapped to "egg_snprintf".
I think there is some c file in the whole eggdrop tree where "#include 
compat.c" is missing, so the redefinition is not working.
AND: if I use the bot ignoring this error he stops *not* everywhere where 
"snprintf" is used, only in two cases:
* during a .whois or .match
* and sometimes if lost/reconnected a bot

so I think the error should be there.

-----
Uwe Schindler
Addr 1: Bamberger Str. 24a, D-96049 Bamberg
Addr 2: Drausnickstr. 153, D-91052 Erlangen
http://www.thetaphi.de - http:///www.schindlers-software.de
eMails: uwe at thetaphi.de (private); info at schindlers-software.de (company)
Tel./Fax: +49 700 PCLATEIN (+49 700 72528346)

Schindlers Software - Home of Schindlers PC-LATEIN 3.0
DIE Software zum Lateinlernen! 




More information about the Eggheads mailing list