Hello,

Got a trouble compiling seamonkey-2.49.4 using glibc-2.30

;----------------------------------------------------------------------------
/home/jmp/rpmbuild/BUILD/seamonkey-2.49.4/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,
from /home/jmp/rpmbuild/BUILD/seamonkey-2.49.4/obj-x86_64-pc-linux-gnu/dist/system_wrappers/unistd.h:3, from /home/jmp/rpmbuild/BUILD/seamonkey-2.49.4/mozilla/tools/profiler/core/platform-linux.cc:58: /usr/include/bits/unistd_ext.h:34:16: note: previous declaration of '__pid_t gettid()'
   34 | extern __pid_t gettid (void) __THROW;
;----------------------------------------------------------------------------

I propose to add lines bellow to book (SeaMonkey-2.49.4 page)
;---
sed -i                                                  \
  -e "s/static inline pid_t gettid/inline pid_t gettid/"\
  mozilla/tools/profiler/core/platform.h
;---

This gave a successful build.
(Not sure this is the optimal solution).

--
seen "Linux from scratch" and looking for ISO files
www.osukiss.org

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to