[Avcheck] Building avcheck with dietlibc

Ralf Hildebrandt Ralf.Hildebrandt@charite.de
Mon, 4 Mar 2002 20:28:58 +0100


Spits out some warningS:

[root@hauptpostamt avcheck-0.6]# diet gcc -o avcheck -O2 -Wall -DVERSION=\"0.6\" avcheck.c [ -f /usr/lib/libsocket.so ] && echo
-lsocket -lnsl
avcheck.c: In function tcpsock':
avcheck.c:189: warning: implicit declaration of function memcpy'
avcheck.c:195: warning: implicit declaration of function memset'
avcheck.c: In function main': avcheck.c:733: warning: value computed is not used
/opt/diet/lib-i386/libc.a(sprintf.o): In function sprintf': sprintf.o(.text+0xe): warning: Avoid *sprintf; use *snprintf. It is more secure.

/tmp/cc3jrOv7.o: In function err':
/tmp/cc3jrOv7.o(.text+0xa4): warning: your code uses stdio (7+k bloat).

/tmp/cc3jrOv7.o: In function tcpsock':
/tmp/cc3jrOv7.o(.text+0x2c8): warning: gethostbyname() leaks memory. Use gethostbyname_r instead!

/opt/diet/lib-i386/libc.a(vfprintf.o): In function vfprintf': vfprintf.o(.text+0x36): warning: the printf functions add several kilobytes of bloat.
/opt/diet/lib-i386/libc.a(vsscanf.o): In function vsscanf': vsscanf.o(.text+0x76): warning: the scanf functions add several kilobytes of bloat.

-- 
Ralf Hildebrandt (Im Auftrag des Referat V A)   Ralf.Hildebrandt@charite.de
Charite Campus Virchow-Klinikum                 Tel.  +49 (0)30-450 570-155
Referat V A - Kommunikationsnetze -             Fax.  +49 (0)30-450 570-916
Why you can't find your system administrators:
Still trying to come down from inhaling too much tape head cleaner. -- Nick Cuccia cuccia@talamasca.com