From owner-freebsd-stable@FreeBSD.ORG Thu Dec 18 02:18:59 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B65C316A4CE for ; Thu, 18 Dec 2003 02:18:59 -0800 (PST) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42A8143D3F for ; Thu, 18 Dec 2003 02:18:57 -0800 (PST) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by smtp.atlantis.dp.ua (8.12.6p2/8.12.6) with ESMTP id hBIAIpi5048294; Thu, 18 Dec 2003 12:18:51 +0200 (EET) (envelope-from dmitry@atlantis.dp.ua) Date: Thu, 18 Dec 2003 12:18:51 +0200 (EET) From: Dmitry Pryanishnikov To: Erik Trulsson In-Reply-To: <20031218101121.GA22294@falcon.midgard.homeip.net> Message-ID: <20031218121325.U32014@atlantis.atlantis.dp.ua> References: <20031218114047.W32014@atlantis.atlantis.dp.ua> <20031218101121.GA22294@falcon.midgard.homeip.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: stable@freebsd.org Subject: Re: ftime doesn't fetch from libcompat.a using -lcompat X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2003 10:18:59 -0000 Hello! On Thu, 18 Dec 2003, Erik Trulsson wrote: > On Thu, Dec 18, 2003 at 11:54:29AM +0200, Dmitry Pryanishnikov wrote: > > dmitry@test$ cc -lcompat a.c > > /tmp/cck3ZpNz.o: In function `main': > > /tmp/cck3ZpNz.o(.text+0xe): undefined reference to `ftime' > > The error lies with you, not the system. > Try compiling it using 'cc a.c -lcompat' instead. > The order of objectfiles/archives does matter when using static libraries. Ups! Didn't know that. Thank you! Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE