You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Nathan Beyer <nd...@apache.org> on 2008/02/10 07:12:53 UTC

[build] is libxtst-dev a recently added requirement

I'm trying to run a build on a fresh Linux (Ubuntu) box and ran into
an error about not finding "-lXtst". This seems to be a part of the
libxtst-dev package, but that's not listed on the build
pre-requisites, at least not yet. I wanted to check before updating
it. Once I installed that package it built.

-Nathan

Re: [build] is libxtst-dev a recently added requirement

Posted by Tim Ellison <t....@gmail.com>.
Egor Pasko wrote:
> On the 0x3E6 day of Apache Harmony Nathan Beyer wrote:
>> I'm trying to run a build on a fresh Linux (Ubuntu) box and ran into
>> an error about not finding "-lXtst". This seems to be a part of the
>> libxtst-dev package, but that's not listed on the build
>> pre-requisites, at least not yet. I wanted to check before updating
>> it. Once I installed that package it built.
> 
> yes, I noticed that too, I tried to fix it, but found that I could not
> do it immediately. Turns out that Tim broke the RU version at r619899
> :)

How did I do that?  I checked out the site and regenerated the pages 
with new copyright footers.  If the RU version is broken it can't be a 
very robust authoring system :-)

Seriously, I'm interested to know what I should have done here.  And I 
promise to put things right.

Regards,
Tim

Re: [build] is libxtst-dev a recently added requirement

Posted by Egor Pasko <eg...@gmail.com>.
On the 0x3E6 day of Apache Harmony Nathan Beyer wrote:
> I'm trying to run a build on a fresh Linux (Ubuntu) box and ran into
> an error about not finding "-lXtst". This seems to be a part of the
> libxtst-dev package, but that's not listed on the build
> pre-requisites, at least not yet. I wanted to check before updating
> it. Once I installed that package it built.

yes, I noticed that too, I tried to fix it, but found that I could not
do it immediately. Turns out that Tim broke the RU version at r619899
:)


-- 
Egor Pasko


Re: [build] is libxtst-dev a recently added requirement

Posted by Tim Ellison <t....@gmail.com>.
Mark Hindess wrote:
> On 10 February 2008 at 0:12, "Nathan Beyer" <nd...@apache.org> wrote:
>> I'm trying to run a build on a fresh Linux (Ubuntu) box and ran
>> into an error about not finding "-lXtst". This seems to be a part
>> of the libxtst-dev package, but that's not listed on the build
>> pre-requisites, at least not yet. I wanted to check before updating
>> it. Once I installed that package it built.
> 
> I'm sure we've had this discussion before but ... rather than relying
> on unversioned .so files (such as libXtst.so) which are generally
> only found in developer packages, we should be loading/linking known
> good-versioned runtime libraries (such as libXtst.so.6).  It may be
> necessary to attempt to load more than one - such as libXtst.so.5 *if*
> someone has tested that this works - but that would be acceptible
> and more reliable than the current pot-luck loading of unversioned
> libraries.

Yeah, we ended up doing that here [1] by attempting the load of a known 
version (LOAD_LIB_VER macro) and if that fails falling back to 
unversioned library (LOAD_LIB).

[1] 
http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/native/x11wrapper/unix/org_apache_harmony_awt_nativebridge_linux_X11.cpp?view=markup

Regards,
Tim

Re: [build] is libxtst-dev a recently added requirement

Posted by Mark Hindess <ma...@googlemail.com>.
On 10 February 2008 at 20:43, "Nathan Beyer" <nd...@apache.org> wrote:
> Yeah, I recall that, but for building, we'd still need the dev
> packages, correct? Or, would the build work with the libxtst6 package?

Generally, yes, you would need the dev package for building although
some code has hard coded prototypes I think.  I have no objections to
this.

I do think relying on dev packages at runtime is a very bad idea.  We
test with specific versions we should load them and *only* them.

That said, the compromise of loading version specific then unversioned
if that fails is better than what we have today so I'd be happy with
that for now.

-Mark.

> On Feb 10, 2008 2:39 PM, Mark Hindess <ma...@googlemail.com> wrote:
> >
> >
> > On 10 February 2008 at 0:12, "Nathan Beyer" <nd...@apache.org> wrote:
> > > I'm trying to run a build on a fresh Linux (Ubuntu) box and ran
> > > into an error about not finding "-lXtst". This seems to be a part
> > > of the libxtst-dev package, but that's not listed on the build
> > > pre-requisites, at least not yet. I wanted to check before updating
> > > it. Once I installed that package it built.
> >
> > I'm sure we've had this discussion before but ... rather than relying
> > on unversioned .so files (such as libXtst.so) which are generally
> > only found in developer packages, we should be loading/linking known
> > good-versioned runtime libraries (such as libXtst.so.6).  It may be
> > necessary to attempt to load more than one - such as libXtst.so.5 *if*
> > someone has tested that this works - but that would be acceptible
> > and more reliable than the current pot-luck loading of unversioned
> > libraries.
> >
> > Regards,
> >  Mark.
> >
> >
> >
> 



Re: [build] is libxtst-dev a recently added requirement

Posted by Nathan Beyer <nd...@apache.org>.
Yeah, I recall that, but for building, we'd still need the dev
packages, correct? Or, would the build work with the libxtst6 package?

-Nathan

On Feb 10, 2008 2:39 PM, Mark Hindess <ma...@googlemail.com> wrote:
>
>
> On 10 February 2008 at 0:12, "Nathan Beyer" <nd...@apache.org> wrote:
> > I'm trying to run a build on a fresh Linux (Ubuntu) box and ran
> > into an error about not finding "-lXtst". This seems to be a part
> > of the libxtst-dev package, but that's not listed on the build
> > pre-requisites, at least not yet. I wanted to check before updating
> > it. Once I installed that package it built.
>
> I'm sure we've had this discussion before but ... rather than relying
> on unversioned .so files (such as libXtst.so) which are generally
> only found in developer packages, we should be loading/linking known
> good-versioned runtime libraries (such as libXtst.so.6).  It may be
> necessary to attempt to load more than one - such as libXtst.so.5 *if*
> someone has tested that this works - but that would be acceptible
> and more reliable than the current pot-luck loading of unversioned
> libraries.
>
> Regards,
>  Mark.
>
>
>

Re: [build] is libxtst-dev a recently added requirement

Posted by Mark Hindess <ma...@googlemail.com>.
On 10 February 2008 at 0:12, "Nathan Beyer" <nd...@apache.org> wrote:
> I'm trying to run a build on a fresh Linux (Ubuntu) box and ran
> into an error about not finding "-lXtst". This seems to be a part
> of the libxtst-dev package, but that's not listed on the build
> pre-requisites, at least not yet. I wanted to check before updating
> it. Once I installed that package it built.

I'm sure we've had this discussion before but ... rather than relying
on unversioned .so files (such as libXtst.so) which are generally
only found in developer packages, we should be loading/linking known
good-versioned runtime libraries (such as libXtst.so.6).  It may be
necessary to attempt to load more than one - such as libXtst.so.5 *if*
someone has tested that this works - but that would be acceptible
and more reliable than the current pot-luck loading of unversioned
libraries.

Regards,
 Mark.