From owner-freebsd-current Sun Sep 27 17:28:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA18218 for freebsd-current-outgoing; Sun, 27 Sep 1998 17:28:20 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from mail.scsn.net (scsn.net [206.25.246.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA18150 for ; Sun, 27 Sep 1998 17:27:38 -0700 (PDT) (envelope-from dmaddox@scsn.net) Received: from rhiannon.scsn.net ([209.12.57.30]) by mail.scsn.net (Post.Office MTA v3.1.2 release (PO205-101c) ID# 0-41950U6000L1100S0) with ESMTP id AAA205 for ; Sun, 27 Sep 1998 20:18:54 -0400 Received: (from root@localhost) by rhiannon.scsn.net (8.9.1/8.9.1) id UAA09762 for current@FreeBSD.ORG; Sun, 27 Sep 1998 20:27:57 GMT (envelope-from root) Message-ID: <19980927202756.A9010@scsn.net> 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? Reply-To: dmaddox@scsn.net Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Mailer: Mutt 0.93.2i Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id RAA18160 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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