public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Thunderbird build failure
@ 2017-09-23 15:53 Christoph Böhmwalder
  2017-09-23 18:37 ` Stefano Crocco
  2017-09-27  0:41 ` [gentoo-user] " Kai Krakow
  0 siblings, 2 replies; 7+ messages in thread
From: Christoph Böhmwalder @ 2017-09-23 15:53 UTC (permalink / raw
  To: gentoo-user

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

Hey all,

I've been trying to get Thunderbird to build for a few days now.
Since I'm pretty much out of ideas at this point, I figured I'd ask on here if someone has an idea on what my problem is.

I've attached the output of `emerge --info '=mail-client/thunderbird-52.3.0::gentoo'`, `emerge -pqv '=mail-client/thunderbird-52.3.0::gentoo'`, and the complete build log.

From the error message I can see that it likely has something to do with either libpng or zlib.
I have both of those installed:

$ emerge --info libpng
--- >8 ---
media-libs/libpng-1.6.29::gentoo was built with the following:
USE="apng (-neon) -static-libs" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse"

$ emerge --info zlib
--- >8 ---
sys-libs/zlib-1.2.11::gentoo was built with the following:
USE="minizip -static-libs" ABI_X86="32 (64) (-x32)"


I noticed that I have zlib-1.2.11 installed, though Thunderbird (or libpng?) is apparently trying to reference a symbol from zlib 1.2.9.
I tried downgrading to zlib 1.2.9, but...

# emerge --ask \=sys-libs/zlib-1.2.9

These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "=sys-libs/zlib-1.2.9".


I'd really appreciate any hints on what I'm doing wrong here. Thanks!


--

Regards,
Christoph

[-- Attachment #2: thunderbird-info.tar.gz --]
[-- Type: application/x-compressed-tar, Size: 18413 bytes --]

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

* Re: [gentoo-user] Thunderbird build failure
  2017-09-23 15:53 [gentoo-user] Thunderbird build failure Christoph Böhmwalder
@ 2017-09-23 18:37 ` Stefano Crocco
  2017-09-24  5:55   ` Christoph Böhmwalder
  2017-09-27  0:41 ` [gentoo-user] " Kai Krakow
  1 sibling, 1 reply; 7+ messages in thread
From: Stefano Crocco @ 2017-09-23 18:37 UTC (permalink / raw
  To: gentoo-user

On Saturday, 23 September 2017 17:53:25 CEST Christoph Böhmwalder wrote:
> Hey all,
> 
> I've been trying to get Thunderbird to build for a few days now.
> Since I'm pretty much out of ideas at this point, I figured I'd ask on here
> if someone has an idea on what my problem is.
> 
> I've attached the output of `emerge --info
> '=mail-client/thunderbird-52.3.0::gentoo'`, `emerge -pqv
> '=mail-client/thunderbird-52.3.0::gentoo'`, and the complete build log.
> 
> From the error message I can see that it likely has something to do with
> either libpng or zlib. I have both of those installed:
> 
> $ emerge --info libpng
> --- >8 ---
> media-libs/libpng-1.6.29::gentoo was built with the following:
> USE="apng (-neon) -static-libs" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse"
> 
> $ emerge --info zlib
> --- >8 ---
> sys-libs/zlib-1.2.11::gentoo was built with the following:
> USE="minizip -static-libs" ABI_X86="32 (64) (-x32)"
> 
> 
> I noticed that I have zlib-1.2.11 installed, though Thunderbird (or libpng?)
> is apparently trying to reference a symbol from zlib 1.2.9. I tried
> downgrading to zlib 1.2.9, but...
> 
> # emerge --ask \=sys-libs/zlib-1.2.9
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> 
> emerge: there are no ebuilds to satisfy "=sys-libs/zlib-1.2.9".
> 
> 
> I'd really appreciate any hints on what I'm doing wrong here. Thanks!
> 
> 
> --
> 
> Regards,
> Christoph

I believe you should re-emerge libpng because it seems to have been built 
against an old (and incompatible) version of zlib (1.2.9).

I hope this helps

Stefano


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

* Re: [gentoo-user] Thunderbird build failure
  2017-09-23 18:37 ` Stefano Crocco
@ 2017-09-24  5:55   ` Christoph Böhmwalder
  2017-09-24 15:57     ` Daniel Frey
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Böhmwalder @ 2017-09-24  5:55 UTC (permalink / raw
  To: gentoo-user, posta

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

Am 23. September 2017 20:37:09 MESZ schrieb Stefano Crocco <posta@stefanocrocco.it>:
>On Saturday, 23 September 2017 17:53:25 CEST Christoph Böhmwalder
>wrote:
>> Hey all,
>> 
>> I've been trying to get Thunderbird to build for a few days now.
>> Since I'm pretty much out of ideas at this point, I figured I'd ask
>on here
>> if someone has an idea on what my problem is.
>> 
>> I've attached the output of `emerge --info
>> '=mail-client/thunderbird-52.3.0::gentoo'`, `emerge -pqv
>> '=mail-client/thunderbird-52.3.0::gentoo'`, and the complete build
>log.
>> 
>> From the error message I can see that it likely has something to do
>with
>> either libpng or zlib. I have both of those installed:
>> 
>> $ emerge --info libpng
>> --- >8 ---
>> media-libs/libpng-1.6.29::gentoo was built with the following:
>> USE="apng (-neon) -static-libs" ABI_X86="32 (64) (-x32)"
>CPU_FLAGS_X86="sse"
>> 
>> $ emerge --info zlib
>> --- >8 ---
>> sys-libs/zlib-1.2.11::gentoo was built with the following:
>> USE="minizip -static-libs" ABI_X86="32 (64) (-x32)"
>> 
>> 
>> I noticed that I have zlib-1.2.11 installed, though Thunderbird (or
>libpng?)
>> is apparently trying to reference a symbol from zlib 1.2.9. I tried
>> downgrading to zlib 1.2.9, but...
>> 
>> # emerge --ask \=sys-libs/zlib-1.2.9
>> 
>> These are the packages that would be merged, in order:
>> 
>> Calculating dependencies... done!
>> 
>> emerge: there are no ebuilds to satisfy "=sys-libs/zlib-1.2.9".
>> 
>> 
>> I'd really appreciate any hints on what I'm doing wrong here. Thanks!
>> 
>> 
>> --
>> 
>> Regards,
>> Christoph
>
>I believe you should re-emerge libpng because it seems to have been
>built 
>against an old (and incompatible) version of zlib (1.2.9).
>
>I hope this helps
>
>Stefano

Thanks for the suggestion Stephano. I tried re-emerging libpng and running a clean Thunderbirs build overnight, however it still fails with the same message.

--

Regards,
Christoph

[-- Attachment #2: Type: text/html, Size: 2590 bytes --]

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

* Re: [gentoo-user] Thunderbird build failure
  2017-09-24  5:55   ` Christoph Böhmwalder
@ 2017-09-24 15:57     ` Daniel Frey
  2017-09-24 20:37       ` Christoph Böhmwalder
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Frey @ 2017-09-24 15:57 UTC (permalink / raw
  To: gentoo-user

On 09/23/2017 10:55 PM, Christoph Böhmwalder wrote:
> 
> Thanks for the suggestion Stephano. I tried re-emerging libpng and 
> running a clean Thunderbirs build overnight, however it still fails with 
> the same message.
> 
> --
> 
> Regards,
> Christoph

I had a similar problem but it was a while ago (a couple years.) I seem 
to recall that one of the packages didn't clean up properly after an 
unmerge/depclean and left behind some remnants that nothing owned.

My memory is pretty hazy, but I remember having to see what libpng 
needed (using ldd) and making sure there were no erroneous libraries around.

Have you done a --depclean recently? Have you tried `revdep-rebuild`? It 
may fix the problem first.

Otherwise, try issuing `ldd /usr/lib/libpng16.so.16`. Then see what 
versions are installed by `equery list media-libs/libpng sys-libs/zlib`.

Then manually check the libs directory (use the ldd output, it will show 
paths) to make sure there's no old libraries hanging around:

`ls /lib64/libz*`

You can see if it's owned by a package by using `equery belongs 
/lib/libz.so`.

I think what happened in my case is an old library was there that didn't 
belong to any package and that's what the linker used (and failed.)

Dan


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

* Re: [gentoo-user] Thunderbird build failure
  2017-09-24 15:57     ` Daniel Frey
@ 2017-09-24 20:37       ` Christoph Böhmwalder
  2017-09-24 22:05         ` Mick
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Böhmwalder @ 2017-09-24 20:37 UTC (permalink / raw
  To: gentoo-user; +Cc: djqfrey

Hey, you fixed it (sort of)!

I tried your suggestions but diverted a little bit. Basically here's what happened:

* depclean did nothing (except remove a few Thunderbird dependencies I actually needed, whoops)
* `revdep-rebuild` also found nothing
* `ldd` gave /lib/libz.so.1.2.11
* I noticed that /usr/lib/libz.so.1.2.7 existed as well and proceeded to delete it
* Re-emerged both libz and libpng, Thunderbird build still failed
* Decided "let's delete /lib/libz.so.1.2.11 as well" (bad idea I know, I just barely recovered from that)
* After replacing libz from the stage3 tarball, re-emerged libz

Aaaand then it just worked, I must admit I'm not entirely sure why ¯\_(ツ)_/¯

Anyways, thanks for taking the time to support me here!

--
Regards,
Christoph


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

* Re: [gentoo-user] Thunderbird build failure
  2017-09-24 20:37       ` Christoph Böhmwalder
@ 2017-09-24 22:05         ` Mick
  0 siblings, 0 replies; 7+ messages in thread
From: Mick @ 2017-09-24 22:05 UTC (permalink / raw
  To: gentoo-user

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

On Sunday, 24 September 2017 21:37:16 BST Christoph Böhmwalder wrote:
> Hey, you fixed it (sort of)!
> 
> I tried your suggestions but diverted a little bit. Basically here's what
> happened:
> 
> * depclean did nothing (except remove a few Thunderbird dependencies I
> actually needed, whoops) * `revdep-rebuild` also found nothing
> * `ldd` gave /lib/libz.so.1.2.11
> * I noticed that /usr/lib/libz.so.1.2.7 existed as well and proceeded to
> delete it * Re-emerged both libz and libpng, Thunderbird build still failed
> * Decided "let's delete /lib/libz.so.1.2.11 as well" (bad idea I know, I
> just barely recovered from that) * After replacing libz from the stage3
> tarball, re-emerged libz
> 
> Aaaand then it just worked, I must admit I'm not entirely sure why ¯\_(ツ)_/¯

Not sure what dependencies were broken or why, but you seem to have installed 
at some point various versions of zlib, which were thereafter uninstalled in a 
somewhat unclean way.

Next time you can use quickpg to create a binary of an installed package 
before you unmerge it.  This could help you recover from unintended breakages.

Portage *should* remove a package completely and cleanly, while by deleting 
files manually you could mess things up and leave portage in a messy state.  
If unmerging a package does not uninstall it cleanly, this means there's a bug 
in the ebuild and it would merit posting a report in BGO.

Otherwise,

 emerge @preserved-rebuild -v -a

and 

 revdep-rebuild -v -- -a

ought to (re)emerge any missing dependencies or dependencies which need to be 
rebuilt.
-- 
Regards,
Mick

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

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

* [gentoo-user] Re: Thunderbird build failure
  2017-09-23 15:53 [gentoo-user] Thunderbird build failure Christoph Böhmwalder
  2017-09-23 18:37 ` Stefano Crocco
@ 2017-09-27  0:41 ` Kai Krakow
  1 sibling, 0 replies; 7+ messages in thread
From: Kai Krakow @ 2017-09-27  0:41 UTC (permalink / raw
  To: gentoo-user

Am Sat, 23 Sep 2017 17:53:25 +0200 (CEST)
schrieb Christoph Böhmwalder <christoph@boehmwalder.at>:

> Hey all,
> 
> I've been trying to get Thunderbird to build for a few days now.
> Since I'm pretty much out of ideas at this point, I figured I'd ask
> on here if someone has an idea on what my problem is.
> 
> I've attached the output of `emerge --info
> '=mail-client/thunderbird-52.3.0::gentoo'`, `emerge -pqv
> '=mail-client/thunderbird-52.3.0::gentoo'`, and the complete build
> log.
> 
> From the error message I can see that it likely has something to do
> with either libpng or zlib. I have both of those installed:
> 
> $ emerge --info libpng
> --- >8 ---  
> media-libs/libpng-1.6.29::gentoo was built with the following:
> USE="apng (-neon) -static-libs" ABI_X86="32 (64) (-x32)"
> CPU_FLAGS_X86="sse"
> 
> $ emerge --info zlib
> --- >8 ---  
> sys-libs/zlib-1.2.11::gentoo was built with the following:
> USE="minizip -static-libs" ABI_X86="32 (64) (-x32)"
> 
> 
> I noticed that I have zlib-1.2.11 installed, though Thunderbird (or
> libpng?) is apparently trying to reference a symbol from zlib 1.2.9.
> I tried downgrading to zlib 1.2.9, but...
> 
> # emerge --ask \=sys-libs/zlib-1.2.9
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> 
> emerge: there are no ebuilds to satisfy "=sys-libs/zlib-1.2.9".
> 
> 
> I'd really appreciate any hints on what I'm doing wrong here. Thanks!

Without having looked at the logs, did you try:

# emerge -DNua world --changed-deps

and/or

# emerge -1a @preserved-rebuild

(not necessarily in that order)


-- 
Regards,
Kai

Replies to list-only preferred.




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

end of thread, other threads:[~2017-09-27  0:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-23 15:53 [gentoo-user] Thunderbird build failure Christoph Böhmwalder
2017-09-23 18:37 ` Stefano Crocco
2017-09-24  5:55   ` Christoph Böhmwalder
2017-09-24 15:57     ` Daniel Frey
2017-09-24 20:37       ` Christoph Böhmwalder
2017-09-24 22:05         ` Mick
2017-09-27  0:41 ` [gentoo-user] " Kai Krakow

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