public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] What provides -lpython2.2 ? (needed for koffice)
@ 2002-01-19 19:44 Dan Armak
  2002-01-19 22:41 ` Juergen Ilse
  0 siblings, 1 reply; 9+ messages in thread
From: Dan Armak @ 2002-01-19 19:44 UTC (permalink / raw
  To: gentoo-dev

Hi everyone,

For some time now, koffice has been unable to compile w/ the latest python 
2.2.  When linking, -lpython2.2 can't be found (i.e. resolved) by ld. (Bug 
#151).

I haven't been able to find this myself either. What does provide 
-lpython2.2? Python doesn't install any libs according to its CONTENTS, but 
-lpython2.2 is in the python-config output.

Someone, please set me on the right track.

-- 
Dan Armak
Gentoo Linux, Desktop Team
Matan, Israel


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] What provides -lpython2.2 ? (needed for koffice)
  2002-01-19 19:44 [gentoo-dev] What provides -lpython2.2 ? (needed for koffice) Dan Armak
@ 2002-01-19 22:41 ` Juergen Ilse
  2002-01-20  8:46   ` Martin Schlemmer
  0 siblings, 1 reply; 9+ messages in thread
From: Juergen Ilse @ 2002-01-19 22:41 UTC (permalink / raw
  To: gentoo-dev

Hello,

On Sat, Jan 19, 2002 at 09:44:39PM +0200, Dan Armak wrote:
> For some time now, koffice has been unable to compile w/ the latest python 
> 2.2.  When linking, -lpython2.2 can't be found (i.e. resolved) by ld. (Bug 
> #151).

I found no package, which provides this library in /usr/lib, but i found
a static library in a subdirectory of /usr/lib (/usr/lib/python/... ? sorry,
but my gentoo-machine is currently not running and i don't want to start
it to look for this library). I created a link to this library in the 
directory  /usr/lib (shure, a dirty hack, but IIRC solved that this 
problem for me).

> I haven't been able to find this myself either. What does provide 
> -lpython2.2? Python doesn't install any libs according to its CONTENTS, but 
> -lpython2.2 is in the python-config output.
 
The static library mentioned above has the name libpython2.2.a
I didn't find a shared version of this library.

ciao,
	Juergen Ilse					(ilse@asys-h.de)
-- 
Wenn ich auch nur aus jedem 1000. Bug in einem M$ Produkt|Juergen Ilse
einen Tag trauern wollte, also da muesste ich 300 Jahre  |Internet POP Hannover
alt werden und wuerde mehrere Dutzend schwarze Anzuege   |Vahrenwalder Str. 205
aufbrauchen. (Detlef Bosau in dcoulm)                    |30165 Hannover


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] What provides -lpython2.2 ? (needed for koffice)
  2002-01-19 22:41 ` Juergen Ilse
@ 2002-01-20  8:46   ` Martin Schlemmer
  2002-01-20 10:59     ` Juergen Ilse
  0 siblings, 1 reply; 9+ messages in thread
From: Martin Schlemmer @ 2002-01-20  8:46 UTC (permalink / raw
  To: Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 1200 bytes --]

On Sun, 2002-01-20 at 00:41, Juergen Ilse wrote:
> Hello,
> 
> On Sat, Jan 19, 2002 at 09:44:39PM +0200, Dan Armak wrote:
> > For some time now, koffice has been unable to compile w/ the latest python 
> > 2.2.  When linking, -lpython2.2 can't be found (i.e. resolved) by ld. (Bug 
> > #151).
> 
> I found no package, which provides this library in /usr/lib, but i found
> a static library in a subdirectory of /usr/lib (/usr/lib/python/... ? sorry,
> but my gentoo-machine is currently not running and i don't want to start
> it to look for this library). I created a link to this library in the 
> directory  /usr/lib (shure, a dirty hack, but IIRC solved that this 
> problem for me).
> 
> > I haven't been able to find this myself either. What does provide 
> > -lpython2.2? Python doesn't install any libs according to its CONTENTS, but 
> > -lpython2.2 is in the python-config output.
>  
> The static library mentioned above has the name libpython2.2.a
> I didn't find a shared version of this library.
> 

it is here:

  /usr/lib/python2.2/config/libpython2.2.a


-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop Team Developer
Cape Town, South Africa


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] What provides -lpython2.2 ? (needed for koffice)
  2002-01-20  8:46   ` Martin Schlemmer
@ 2002-01-20 10:59     ` Juergen Ilse
  2002-01-20 11:28       ` Vitaly Kushneriuk
                         ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Juergen Ilse @ 2002-01-20 10:59 UTC (permalink / raw
  To: gentoo-dev

Hello,

On Sun, Jan 20, 2002 at 10:46:53AM +0200, Martin Schlemmer wrote:
> On Sun, 2002-01-20 at 00:41, Juergen Ilse wrote:
> > On Sat, Jan 19, 2002 at 09:44:39PM +0200, Dan Armak wrote:
> > > I haven't been able to find this myself either. What does provide 
> > > -lpython2.2? Python doesn't install any libs according to its CONTENTS, but 
> > > -lpython2.2 is in the python-config output.
> >  
> > The static library mentioned above has the name libpython2.2.a
> > I didn't find a shared version of this library.
                    ^^^^^^
> it is here:
>   /usr/lib/python2.2/config/libpython2.2.a

I already mentioned the place where to find the static version of this
library. libpython2.2.a is *not* a shared library but a static one.
I don*t know, if a shared version of this library is possible, but
until now, there is no shared version.

But let us talk about something else ...
I had difficulties to build koffice-i18n-1.1.1 (same problem with some
other packages): It seems so, that the ebuild script wants to change
the directory to work/kde-i18n but there is no such directory in the
unpacked source ... I solved this problem (for me) with a kind of dirty
hack: i changed to /var/tmp/portage/koffice-1.1.1/work and created a
softlink from kde-i18n-1.1.1 to kde-i18n before the unpacking of the
source was complete. How can this problem be solved without this "dirty
hack" of creating a softlink while the build-process is unpacking the
source? Any ideas?

ciao,
	Juergen Ilse					(ilse@asys-h.de)
-- 
Wenn ich auch nur aus jedem 1000. Bug in einem M$ Produkt|Juergen Ilse
einen Tag trauern wollte, also da muesste ich 300 Jahre  |Internet POP Hannover
alt werden und wuerde mehrere Dutzend schwarze Anzuege   |Vahrenwalder Str. 205
aufbrauchen. (Detlef Bosau in dcoulm)                    |30165 Hannover


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] What provides -lpython2.2 ? (needed for koffice)
  2002-01-20 10:59     ` Juergen Ilse
@ 2002-01-20 11:28       ` Vitaly Kushneriuk
  2002-01-20 13:15       ` Martin Schlemmer
  2002-01-20 17:21       ` Dan Armak
  2 siblings, 0 replies; 9+ messages in thread
From: Vitaly Kushneriuk @ 2002-01-20 11:28 UTC (permalink / raw
  To: Gentoo-dev

On Sun, 2002-01-20 at 12:59, Juergen Ilse wrote:
> Hello,
> 
> On Sun, Jan 20, 2002 at 10:46:53AM +0200, Martin Schlemmer wrote:
> > On Sun, 2002-01-20 at 00:41, Juergen Ilse wrote:
> > > On Sat, Jan 19, 2002 at 09:44:39PM +0200, Dan Armak wrote:
> > > > I haven't been able to find this myself either. What does provide 
> > > > -lpython2.2? Python doesn't install any libs according to its CONTENTS, but 
> > > > -lpython2.2 is in the python-config output.
> > >  
> > > The static library mentioned above has the name libpython2.2.a
> > > I didn't find a shared version of this library.
>                     ^^^^^^
> > it is here:
> >   /usr/lib/python2.2/config/libpython2.2.a
> 
> I already mentioned the place where to find the static version of this
> library. libpython2.2.a is *not* a shared library but a static one.
> I don*t know, if a shared version of this library is possible, but
> until now, there is no shared version.
> 
> But let us talk about something else ...
> I had difficulties to build koffice-i18n-1.1.1 (same problem with some
> other packages): It seems so, that the ebuild script wants to change
> the directory to work/kde-i18n but there is no such directory in the
> unpacked source ... I solved this problem (for me) with a kind of dirty
> hack: i changed to /var/tmp/portage/koffice-1.1.1/work and created a
> softlink from kde-i18n-1.1.1 to kde-i18n before the unpacking of the
> source was complete. How can this problem be solved without this "dirty
> hack" of creating a softlink while the build-process is unpacking the
> source? Any ideas?
Looks like $S ebuild variable has wrong value. As kde stuff uses
eclasses, I'm not sure what is the right way to change it. For 
usual ebuild it's at the beginning:
"S=${WORKDIR}/${P}" if unpacked directory is the same as the
<package-version>, or "S=${WORKDIR}/_what_ever_the_dir_is" otherwise.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] What provides -lpython2.2 ? (needed for koffice)
  2002-01-20 10:59     ` Juergen Ilse
  2002-01-20 11:28       ` Vitaly Kushneriuk
@ 2002-01-20 13:15       ` Martin Schlemmer
  2002-01-20 17:18         ` Dan Armak
  2002-01-20 17:21       ` Dan Armak
  2 siblings, 1 reply; 9+ messages in thread
From: Martin Schlemmer @ 2002-01-20 13:15 UTC (permalink / raw
  To: Gentoo-Dev

[-- Attachment #1: Type: text/plain, Size: 2332 bytes --]

On Sun, 2002-01-20 at 12:59, Juergen Ilse wrote:
> Hello,
> 
> On Sun, Jan 20, 2002 at 10:46:53AM +0200, Martin Schlemmer wrote:
> > On Sun, 2002-01-20 at 00:41, Juergen Ilse wrote:
> > > On Sat, Jan 19, 2002 at 09:44:39PM +0200, Dan Armak wrote:
> > > > I haven't been able to find this myself either. What does provide 
> > > > -lpython2.2? Python doesn't install any libs according to its CONTENTS, but 
> > > > -lpython2.2 is in the python-config output.
> > >  
> > > The static library mentioned above has the name libpython2.2.a
> > > I didn't find a shared version of this library.
>                     ^^^^^^
> > it is here:
> >   /usr/lib/python2.2/config/libpython2.2.a
> 
> I already mentioned the place where to find the static version of this
> library. libpython2.2.a is *not* a shared library but a static one.
> I don*t know, if a shared version of this library is possible, but
> until now, there is no shared version.
> 

Out of the 'ld' manpage:

-------------------cut here----------------------------------
       -larchive
       --library=archive
           Add archive file archive to the list of files to link.  This
option may be used any number of times.  ld will search its  path-
           list for occurrences of "libarchive.a" for every archive
specified.

           On  systems which support shared libraries, ld may also
search for libraries with extensions other than ".a".  Specifically, on
           ELF and SunOS systems, ld will search a directory for a
library with an extension of ".so" before searching  for  one  with  an
           extension of ".a".  By convention, a ".so" extension
indicates a shared library.
------------------cut here-----------------------------------

Meaning, that -lpython2.2 can be libpython2.2.a *or*
libpython2.2.so, depending on if it is linked static or
dynamic.

I check the CONTENTS of 2.0 against 2.2, and the only thing
that differs, is that Makefile.pre.in was not installed, which
is fixed now.

Bottom line: koffice's build scripts is broken, or we need
to create a symlink from
/usr/lib/python2.2/config/libpython2.2.a to
/usr/lib/libpython2.2.a

Anybody else have an idea ?


Greetings,
-- 

Martin Schlemmer
Gentoo Linux Developer, Desktop Team Developer
Cape Town, South Africa


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] What provides -lpython2.2 ? (needed for koffice)
  2002-01-20 13:15       ` Martin Schlemmer
@ 2002-01-20 17:18         ` Dan Armak
  0 siblings, 0 replies; 9+ messages in thread
From: Dan Armak @ 2002-01-20 17:18 UTC (permalink / raw
  To: gentoo-dev

On Sunday 20 January 2002 15:15, you wrote:
> On Sun, 2002-01-20 at 12:59, Juergen Ilse wrote:
> > Hello,
> >
> > On Sun, Jan 20, 2002 at 10:46:53AM +0200, Martin Schlemmer wrote:
> > > On Sun, 2002-01-20 at 00:41, Juergen Ilse wrote:
> > > > On Sat, Jan 19, 2002 at 09:44:39PM +0200, Dan Armak wrote:
> > > > > I haven't been able to find this myself either. What does provide
> > > > > -lpython2.2? Python doesn't install any libs according to its
> > > > > CONTENTS, but -lpython2.2 is in the python-config output.
> > > >
> > > > The static library mentioned above has the name libpython2.2.a
> > > > I didn't find a shared version of this library.
> >
> >                     ^^^^^^
> >
> > > it is here:
> > >   /usr/lib/python2.2/config/libpython2.2.a
> >
> > I already mentioned the place where to find the static version of this
> > library. libpython2.2.a is *not* a shared library but a static one.
> > I don*t know, if a shared version of this library is possible, but
> > until now, there is no shared version.
>
> Out of the 'ld' manpage:
>
> -------------------cut here----------------------------------
>        -larchive
>        --library=archive
>            Add archive file archive to the list of files to link.  This
> option may be used any number of times.  ld will search its  path-
>            list for occurrences of "libarchive.a" for every archive
> specified.
>
>            On  systems which support shared libraries, ld may also
> search for libraries with extensions other than ".a".  Specifically, on
>            ELF and SunOS systems, ld will search a directory for a
> library with an extension of ".so" before searching  for  one  with  an
>            extension of ".a".  By convention, a ".so" extension
> indicates a shared library.
> ------------------cut here-----------------------------------
>
> Meaning, that -lpython2.2 can be libpython2.2.a *or*
> libpython2.2.so, depending on if it is linked static or
> dynamic.
>
> I check the CONTENTS of 2.0 against 2.2, and the only thing
> that differs, is that Makefile.pre.in was not installed, which
> is fixed now.
>
> Bottom line: koffice's build scripts is broken, or we need
> to create a symlink from
> /usr/lib/python2.2/config/libpython2.2.a to
> /usr/lib/libpython2.2.a
>
> Anybody else have an idea ?
I put in a fix into the koffice ebuild a few hours ago that simply adds -L 
/usr/lib/python2.2/config.

The real fix should be to add the -L ... to the output of our python-config 
script. I'm about to do that.



-- 
Dan Armak
Gentoo Linux, Desktop Team
Matan, Israel


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] What provides -lpython2.2 ? (needed for koffice)
  2002-01-20 10:59     ` Juergen Ilse
  2002-01-20 11:28       ` Vitaly Kushneriuk
  2002-01-20 13:15       ` Martin Schlemmer
@ 2002-01-20 17:21       ` Dan Armak
  2002-01-20 17:50         ` Dan Armak
  2 siblings, 1 reply; 9+ messages in thread
From: Dan Armak @ 2002-01-20 17:21 UTC (permalink / raw
  To: gentoo-dev

On Sunday 20 January 2002 12:59, you wrote:
> But let us talk about something else ...
> I had difficulties to build koffice-i18n-1.1.1 (same problem with some
> other packages): It seems so, that the ebuild script wants to change
> the directory to work/kde-i18n but there is no such directory in the
> unpacked source ... I solved this problem (for me) with a kind of dirty
> hack: i changed to /var/tmp/portage/koffice-1.1.1/work and created a
> softlink from kde-i18n-1.1.1 to kde-i18n before the unpacking of the
> source was complete. How can this problem be solved without this "dirty
> hack" of creating a softlink while the build-process is unpacking the
> source? Any ideas?
I'm working on this, and will commit a fix in an hour or two.

You said you solved this problem locaaly a while ago - in the future, please 
submit bug reports on bugs.gentoo.org too, and hopefully get a prompt 
response :-) 


-- 
Dan Armak
Gentoo Linux, Desktop Team
Matan, Israel


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] What provides -lpython2.2 ? (needed for koffice)
  2002-01-20 17:21       ` Dan Armak
@ 2002-01-20 17:50         ` Dan Armak
  0 siblings, 0 replies; 9+ messages in thread
From: Dan Armak @ 2002-01-20 17:50 UTC (permalink / raw
  To: gentoo-dev

On Sunday 20 January 2002 19:21, you wrote:
> On Sunday 20 January 2002 12:59, you wrote:
> > But let us talk about something else ...
> > I had difficulties to build koffice-i18n-1.1.1 (same problem with some
> > other packages): It seems so, that the ebuild script wants to change
> > the directory to work/kde-i18n but there is no such directory in the
> > unpacked source ... I solved this problem (for me) with a kind of dirty
> > hack: i changed to /var/tmp/portage/koffice-1.1.1/work and created a
> > softlink from kde-i18n-1.1.1 to kde-i18n before the unpacking of the
> > source was complete. How can this problem be solved without this "dirty
> > hack" of creating a softlink while the build-process is unpacking the
> > source? Any ideas?
>
> I'm working on this, and will commit a fix in an hour or two.
Fix committed.


-- 
Dan Armak
Gentoo Linux, Desktop Team
Matan, Israel


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-01-20 17:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-19 19:44 [gentoo-dev] What provides -lpython2.2 ? (needed for koffice) Dan Armak
2002-01-19 22:41 ` Juergen Ilse
2002-01-20  8:46   ` Martin Schlemmer
2002-01-20 10:59     ` Juergen Ilse
2002-01-20 11:28       ` Vitaly Kushneriuk
2002-01-20 13:15       ` Martin Schlemmer
2002-01-20 17:18         ` Dan Armak
2002-01-20 17:21       ` Dan Armak
2002-01-20 17:50         ` Dan Armak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox