From owner-freebsd-hackers Tue Jan 5 19:10:40 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA01522 for freebsd-hackers-outgoing; Tue, 5 Jan 1999 19:10:40 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA01517 for ; Tue, 5 Jan 1999 19:10:39 -0800 (PST) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.1/8.9.1) with ESMTP id TAA16470; Tue, 5 Jan 1999 19:10:12 -0800 (PST) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.1/8.9.1) id TAA36832; Tue, 5 Jan 1999 19:10:11 -0800 (PST) (envelope-from jdp@polstra.com) Date: Tue, 5 Jan 1999 19:10:11 -0800 (PST) Message-Id: <199901060310.TAA36832@vashon.polstra.com> To: jesse@prinz-atm.CS.Uni-Magdeburg.De Subject: Re: RTLD_GLOBAL in dlopen(3) Newsgroups: polstra.freebsd.hackers In-Reply-To: <13967.44598.764504.512958@knecht> Organization: Polstra & Co., Seattle, WA Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <13967.44598.764504.512958@knecht>, Roland Jesse wrote: > Hello, > > I am in the process of porting Bamboo (http://watsen.net/Bamboo/) to > FreeBSD. While doing so, I realized that the RTLD_GLOBAL flag for > dlopen() does not exist on FreeBSD (only RTLD_LAZY, RTLD_NOW, and > RTLD_NEXT do). It's not implemented yet. I've seen the Solaris documentation about namespace issues for shared libraries, but it's so ambiguous that I doubt even their developers know what really happens. Eventually I'll make a guess at it and implement something. As things stand currently in FreeBSD, RTLD_GLOBAL is in effect always set. I think the best hack for your port would be to add this: #ifndef RTLD_GLOBAL #define RTLD_GLOBAL 0 #endif John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message