From owner-freebsd-hackers Sun Nov 14 16:45:33 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 23B0715309 for ; Sun, 14 Nov 1999 16:45:29 -0800 (PST) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.3) with ESMTP id QAA02839; Sun, 14 Nov 1999 16:45:28 -0800 (PST) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id QAA18717; Sun, 14 Nov 1999 16:45:27 -0800 (PST) (envelope-from jdp@polstra.com) Date: Sun, 14 Nov 1999 16:45:27 -0800 (PST) Message-Id: <199911150045.QAA18717@vashon.polstra.com> To: nmh@dialup.nacamar.de Subject: Re: Missing symbols in LIBC ??? In-Reply-To: References: Organization: Polstra & Co., Seattle, WA Cc: hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article , Nils M Holm wrote: > > Hello! > > I am currently porting my compiler to the release 3.3. My RT lib depends > on /usr/lib/libc.a. When attempting to link a program, I get messages about > unresolved externals (it DOES work on release 2.x). > > I have seen that the C compiler no longer generates underscores on > symbols by default and consequently, '_printf' in /usr/lib/libc.a has > become simply 'printf'. There seem to exist kind of 'compatibility > entries' for some functions, though. > > However, (at least) the symbols _creat, _lseek, and _memmove are not > defined in /usr/lib/libc.a. (creat, lseek, and memove are defined.) > > Is this a bug or a feature? Will underscores vanish totally in the > future? Do I have to create a workaround for the 3.x branch?? Yes, the underscores are gone permanently because we switched from a.out to ELF as the object file format. You can test for it at compile time with #ifdef __ELF__. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "No matter how cynical I get, I just can't keep up." -- Nora Ephron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message