From owner-freebsd-current Tue Jun 23 06:52:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA15484 for freebsd-current-outgoing; Tue, 23 Jun 1998 06:52:00 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from lsd.relcom.eu.net (ache@lsd.relcom.eu.net [193.125.27.73]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA15478 for ; Tue, 23 Jun 1998 06:51:56 -0700 (PDT) (envelope-from ache@lsd.relcom.eu.net) Received: (from ache@localhost) by lsd.relcom.eu.net (8.8.8/8.8.8) id RAA22755; Tue, 23 Jun 1998 17:51:52 +0400 (MSD) (envelope-from ache) Message-ID: <19980623175151.A17245@nagual.pp.ru> Date: Tue, 23 Jun 1998 17:51:51 +0400 From: =?koi8-r?B?4c7E0sXKIP7F0s7P1w==?= To: Peter Wemm , Terry Lambert , fenner@parc.xerox.com, current@FreeBSD.ORG Subject: Re: Bogus errno twiddling not by lstat... Mail-Followup-To: Peter Wemm , Terry Lambert , fenner@parc.xerox.com, current@freebsd.org References: <199806222229.GAA04192@spinner.netplex.com.au> <199806230851.QAA05964@spinner.netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199806230851.QAA05964@spinner.netplex.com.au>; from peter@netplex.com.au on Tue, Jun 23, 1998 at 04:51:16PM +0800 Organization: Biomechanoid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jun 23, 1998 at 04:51:16PM +0800, Peter Wemm wrote: > Note that you must use __weak_reference() to get it to have any chance of > having a hack like this work on both a.out and elf (unlike Andrey's hack to > libmytinfo). I try __weak_reference() and it is _not_ work for libmytinfo -static linking, I got Alias definition of symbol `_reset_shell_mode' (multiply defined) error but it works with #pragma weak. If you know how to fix it properly, please do. Test command is cc -static a.c -lncurses -lmytinfo with initscr() call in a.c -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/ MTH/SH/HE S-- W-- N+ PEC>+ D A a++ C G>+ QH+(++) 666+>++ Y To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message