gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] Rejected NetBSD patches


From: Kaleb S. KEITHLEY
Subject: Re: [Gluster-devel] Rejected NetBSD patches
Date: Mon, 30 Apr 2012 15:46:47 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

On 04/30/2012 03:38 PM, Emmanuel Dreyfus wrote:
Kaleb S. KEITHLEY<address@hidden>  wrote:

I've attached MT-SAFE versions of dirname() and basename() derived from
FreeBSD-8.2's implementations. (They compile on FreeBSD and Fedora, but
I haven't tested glusterfs with them.) Note that I'm rather dismayed
that dirname() and basename() in FreeBSD's libc aren't weak symbols. I
presume that NetBSD's libc has the same misfeature.

$ nm /usr/lib/libc.so|grep basename
0004fca8 T _basename
0004fca8 W basename
$ uname -sr
NetBSD 5.1_STABLE

At least NetBSD knows how to build system libs.


But I do not know how to hijack a weak symbol.


Simply by having a non-weak symbol present, the non-weak symbol will be used for resolving instead of the weak symbol.

--

Kaleb



reply via email to

[Prev in Thread] Current Thread [Next in Thread]