Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 58346 invoked from network); 30 Nov 2006 12:02:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2006 12:02:18 -0000 Received: (qmail 94247 invoked by uid 500); 30 Nov 2006 12:02:25 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 93976 invoked by uid 500); 30 Nov 2006 12:02:24 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 93967 invoked by uid 99); 30 Nov 2006 12:02:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2006 04:02:24 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of oleg.v.khaschansky@gmail.com designates 64.233.184.227 as permitted sender) Received: from [64.233.184.227] (HELO wr-out-0506.google.com) (64.233.184.227) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2006 04:02:09 -0800 Received: by wr-out-0506.google.com with SMTP id 55so878102wri for ; Thu, 30 Nov 2006 04:01:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ls/Gz8WXAz/NhJ3qHlceoZWBhKaNubjG8RlwiYzpgwJtEvMBDOdc20BfUKre53qbvj0UbSa8Vw9Epb4blnK2ViwVBo8VuiMpp07cd+vccnXrcyJuZFeOEz2d2YitgfyETa3UhK4FiS/EpKrkGvFyQN/izXGt5vf6kiIDRjPJCrU= Received: by 10.90.31.19 with SMTP id e19mr3352316age.1164888107902; Thu, 30 Nov 2006 04:01:47 -0800 (PST) Received: by 10.90.98.7 with HTTP; Thu, 30 Nov 2006 04:01:47 -0800 (PST) Message-ID: <26c14c2a0611300401x7f06de4bxe0ea42e644ed5f71@mail.gmail.com> Date: Thu, 30 Nov 2006 15:01:47 +0300 From: "Oleg Khaschansky" To: dev@harmony.apache.org Subject: Re: [classlib][awt] X11 libs In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <456D655A.2010005@gmail.com> <26c14c2a0611290313r73538a12lf815474ad57f758@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org > Sun's Java seem to be bundling some libraries with itself like libzip > and libjpeg. But the rest of the libraries like X11, ALSA, probably > other are taken from the system. As far as I know, RI uses dlopen approach, at least in some cases, see, e.g. [1]. > This means that we > should either bundle in all the required libraries, or use dynamic > linking with the libraries installed in the system. Bundling in X11 and mesa? :) Isn't dlopen/dlsym approach a dynamic linking? Again, some API could be missing in some systems (opengl extensions, for example), what would you suggest to do in this case? [1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5011992 On 11/29/06, Gregory Shimansky wrote: > Oleg Khaschansky wrote: > > I think we should fix this problem for all libraries loaded with > > dlopen on linux (i.e. for all autogenerated linux native wrappers). As > > far as I recall, this problem already appeared for liblcms and libXmu. > > I'd suggest to wait until we know if we'll have a generator of native > > wrappers in harmony and, probably, fix it instead of making temporary > > fixes in the autogenerated code. > > Sun's Java seem to be bundling some libraries with itself like libzip > and libjpeg. But the rest of the libraries like X11, ALSA, probably > other are taken from the system. > > I don't think that replacing dynamic linker on the system with out > heuristics is the "right way". It is ld.so which should decide which > library from the system should be linked with, be it > /usr/lib/libXext.so.6 or /usr/lib/libasound.so.2. This means that we > should either bundle in all the required libraries, or use dynamic > linking with the libraries installed in the system. > > It doesn't seem to be a problem for anyone who uses Sun Java on a server > that it is necessary to install X11 and ALSA libraries. On most Linux > distributions it happens automatically using package dependencies. So I > am -1 for this approach. Instead I think the wrappers should be changed > to link against X11 dynamic libs directly. > > -- > Gregory > >