Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 695644 - www-client/seamonkey-2.49.5 : /.../platform.h:68:21: error: pid_t gettid() was declared extern and later static [-fpermissive]
Summary: www-client/seamonkey-2.49.5 : /.../platform.h:68:21: error: pid_t gettid() wa...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C)
URL:
Whiteboard:
Keywords:
: 707336 (view as bug list)
Depends on: 715030
Blocks:
  Show dependency tree
 
Reported: 2019-09-25 19:35 UTC by Toralf Förster
Modified: 2020-04-22 06:48 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.54 KB, text/plain)
2019-09-25 19:35 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,148.71 KB, text/plain)
2019-09-25 19:35 UTC, Toralf Förster
Details
environment (environment,188.96 KB, text/plain)
2019-09-25 19:35 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.22 KB, application/x-bzip)
2019-09-25 19:35 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,28.54 KB, application/x-bzip)
2019-09-25 19:35 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,396.85 KB, application/x-bzip)
2019-09-25 19:35 UTC, Toralf Förster
Details
www-client:seamonkey-2.49.5:20190925-180558.log.bz2 (www-client:seamonkey-2.49.5:20190925-180558.log.bz2,251.77 KB, application/x-bzip)
2019-09-25 19:35 UTC, Toralf Förster
Details
patch for gettid in glibc 2.30 (glibc-2.30-gettid.patch,754 bytes, patch)
2019-12-06 04:01 UTC, Stephen Cavilia
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-09-25 19:35:21 UTC
In file included from /var/tmp/portage/www-client/seamonkey-2.49.5/work/seamonkey-2.49.5/mozilla/tools/profiler/core/platform-linux.cc:67:
/var/tmp/portage/www-client/seamonkey-2.49.5/work/seamonkey-2.49.5/mozilla/tools/profiler/core/platform.h:68:21: error: 'pid_t gettid()' was declared 'extern' and later 'static' [-fpermissive]
   68 | static inline pid_t gettid()
      |                     ^~~~~~
In file included from /usr/include/unistd.h:1170,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-libressl-20190921-191550

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.0
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
  [3]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.37.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.13.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 25 Sep 2019 17:26:12 +0000

emerge -qpvO www-client/seamonkey
[ebuild  N    ] www-client/seamonkey-2.49.5  USE="calendar chatzilla crypt dbus force-gtk3 gmp-autoupdate ipc jemalloc roaming startup-notification -custom-cflags -custom-optimization -debug -jack -minimal (-neon) -pulseaudio (-selinux) (-system-cairo) -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite -test -wifi" L10N="cs -de -en-GB -es-AR -es-ES -fr -hu -it -ja -lt -nl -pl -pt-PT -ru -sk -sv -zh-CN -zh-TW"
Comment 1 Toralf Förster gentoo-dev 2019-09-25 19:35:23 UTC
Created attachment 591078 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-09-25 19:35:26 UTC
Created attachment 591080 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-09-25 19:35:29 UTC
Created attachment 591082 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-09-25 19:35:32 UTC
Created attachment 591084 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-09-25 19:35:34 UTC
Created attachment 591086 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-09-25 19:35:37 UTC
Created attachment 591088 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-09-25 19:35:40 UTC
Created attachment 591090 [details]
www-client:seamonkey-2.49.5:20190925-180558.log.bz2
Comment 8 Attila Tóth 2019-11-19 23:59:11 UTC
It's a glibc-2.30+ problem:
https://www.mail-archive.com/blfs-dev@lists.linuxfromscratch.org/msg09169.html
Comment 9 Stephen Cavilia 2019-12-06 04:01:28 UTC
Created attachment 598620 [details, diff]
patch for gettid in glibc 2.30

I noticed this same problem when building against glibc 2.30. Based on a related Firefox bug that was reported upstream I came up with this patch.
Comment 10 Jory A. Pratt gentoo-dev 2019-12-06 05:27:27 UTC
(In reply to Stephen Cavilia from comment #9)
> Created attachment 598620 [details, diff] [details, diff]
> patch for gettid in glibc 2.30
> 
> I noticed this same problem when building against glibc 2.30. Based on a
> related Firefox bug that was reported upstream I came up with this patch.

https://hg.mozilla.org/mozilla-central/rev/7b85bf9c5210 this should apply with ease on top of seamonkey when applied via ${S}/mozilla, I am unsure why you are needing to patch GeckoSampler.cpp unless it is not including platform.h which I believe it does already. I have not confirmed any of this and I am unable to test with my musl system.
Comment 11 Ben Kohler gentoo-dev 2020-01-29 23:30:16 UTC
*** Bug 707336 has been marked as a duplicate of this bug. ***
Comment 12 Andreas K. Hüttel gentoo-dev 2020-03-26 21:25:47 UTC
Could we please either patch this or get a newer seamonkey stable?

It's blocking glibc-2.30 stabilization.