Date: Sun, 27 Sep 1998 20:27:56 +0000 From: dmaddox@scsn.net (Donald J. Maddox) To: current@FreeBSD.ORG Subject: Problem with -current libc? Message-ID: <19980927202756.A9010@scsn.net>
next in thread | raw e-mail | index | archive | help
A few days ago I noticed a little problem when compiling programs
that use gets() and other functions that cause those warnings we all
know and love...
Try the following:
1) # ln -sf AJ /etc/malloc.conf
2) # cc -o test test.c
---------------------------------
test.c:
---------------------------------
#include <stdio.h>
int main()
{
char *s;
gets(s);
}
--------------------------------
Yeah, it's stupid, but it shouldn't cause this:
# cc -o test test.c
/var/tmp/ccBY97461.o: In function `main':
/var/tmp/ccBY97461.o(.text+0xb): cc: Internal compiler error: program ld got fatal signal 11
Or alternatively:
# cc -o test -lc_r test.c
/var/tmp/ccDI97511.o: In function `main':
/var/tmp/ccDI97511.o(.text+0xb): warning: this program uses gets(), which is unsafe.ÐWARNING! des_setkey(3) not present in the system!ÐÐWARNING! des_cipher(3) not present in the system!ÐÐWARNING! setkey(3) not present in the system!ÐÐWARNING! encrypt(3) not present in the system!Ðwarning: this program uses f_prealloc(), which is stupid.ÐÐв´
/usr/lib/libc.so: WARNING! setkey(3) not present in the system!ÐÐWARNING! encrypt(3) not present in the system!Ðwarning: this program uses f_prealloc(), which is stupid.ÐÐв´
/usr/lib/libc.so: WARNING! des_setkey(3) not present in the system!ÐÐWARNING! des_cipher(3) not present in the system!ÐÐWARNING! setkey(3) not present in the system!ÐÐWARNING! encrypt(3) not present in the system!Ðwarning: this program uses f_prealloc(), which is stupid.ÐÐв´
/usr/lib/libc.so: WARNING! encrypt(3) not present in the system!Ðwarning: this program uses f_prealloc(), which is stupid.ÐÐв´
/usr/lib/libc.so: WARNING! des_cipher(3) not present in the system!ÐÐWARNING! setkey(3) not present in the system!ÐÐWARNING! encrypt(3) not present in the system!Ðwarning: this program uses f_prealloc(), which is stupid.ÐÐв´
/usr/lib/libc.so: warning: this program uses f_prealloc(), which is stupid.ÐÐв´
/usr/libexec/elf/ld: /var/tmp/ccDI97511.o: warning: unresolvable relocation against symbol `gets' from .text section
BTW:
# uname -a
FreeBSD rhiannon.scsn.net 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Thu Sep 17 22:49:29 GMT 1998 root@rhiannon.scsn.net:/usr/src/sys/compile/RHIANNON i386
This is an all-ELF system (except for the kernel, of course)...
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980927202756.A9010>
