*BSD News Article 34887


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!warrane.connect.com.au!kralizec.zeta.org.au!not-for-mail
From: bde@kralizec.zeta.org.au (Bruce Evans)
Newsgroups: comp.os.386bsd.questions
Subject: Re: tried to compile profiled => all kinds of trouble [FB 1.1.5]
Date: 25 Aug 1994 08:28:10 +1000
Organization: Kralizec Dialup Unix Sydney - +61-2-837-1183, v.32bis v.42bis
Lines: 17
Message-ID: <33ghhq$bog@kralizec.zeta.org.au>
References: <33esgj$jvu@mozo.cc.purdue.edu>
NNTP-Posting-Host: kralizec.zeta.org.au
Keywords: libc_p, libgcc, _sdiv_qrnnd, i386, __i386__

In article <33esgj$jvu@mozo.cc.purdue.edu>,
Ben Jackson <bj@staff.cc.purdue.edu> wrote:
>I was just innocently trying to compile profiled (CFLAGS=-g -pg) and I
>died in the link:
>
>	No profiled libc!  Luckily it didn't take long to build it.
>	I presume this is a space saving "feature" or an oversight.
>
>	Unreferenced _sdiv_qrnnd from libgcc.  This took longer to
>	to track down.  At first I thought it was becuse the #ifdef's

The error message is bogus.  The problem is that shared profiled
libraries are not implemented and static libries are not forced
in the correct way.  Compiling with CFLAGS='-pg -static' should
work.
-- 
Bruce Evans  bde@kralizec.zeta.org.au