Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jun 1998 17:51:51 +0400
From:      =?koi8-r?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.pp.ru>
To:        Peter Wemm <peter@netplex.com.au>, Terry Lambert <tlambert@primenet.com>, fenner@parc.xerox.com, current@FreeBSD.ORG
Subject:   Re: Bogus errno twiddling not by lstat...
Message-ID:  <19980623175151.A17245@nagual.pp.ru>
In-Reply-To: <199806230851.QAA05964@spinner.netplex.com.au>; from peter@netplex.com.au on Tue, Jun 23, 1998 at 04:51:16PM %2B0800
References:  <199806222229.GAA04192@spinner.netplex.com.au> <199806230851.QAA05964@spinner.netplex.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980623175151.A17245>