Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 806358 - net-misc/ntp-4.2.8_p15 - work_thread.c: error: missing binary operator before token (
Summary: net-misc/ntp-4.2.8_p15 - work_thread.c: error: missing binary operator before...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://patchwork.openembedded.org/pa...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: glibc-2.34
  Show dependency tree
 
Reported: 2021-08-04 08:57 UTC by Toralf Förster
Modified: 2021-10-17 06:21 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.53 KB, text/plain)
2021-08-04 08:57 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,381.72 KB, text/plain)
2021-08-04 08:57 UTC, Toralf Förster
Details
environment (environment,95.75 KB, text/plain)
2021-08-04 08:57 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,31.69 KB, application/x-bzip)
2021-08-04 08:57 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,52.68 KB, application/x-bzip)
2021-08-04 08:57 UTC, Toralf Förster
Details
net-misc:ntp-4.2.8_p15:20210804-030810.log (net-misc:ntp-4.2.8_p15:20210804-030810.log,93.36 KB, text/plain)
2021-08-04 08:57 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,39.32 KB, application/x-bzip)
2021-08-04 08:57 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-08-04 08:57:31 UTC
In file included from /usr/include/pthread.h:33,
                 from work_thread.c:13:
work_thread.c:45:57: error: missing binary operator before token "("
   45 | #if defined(PTHREAD_STACK_MIN) && THREAD_MINSTACKSIZE < PTHREAD_STACK_MIN
      |                                                         ^~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:958: work_thread.o] Error 1
make[3]: *** Waiting for unfinished jobs....

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j3-20210730-192333

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
/usr/lib/llvm/12
12.0.1
Python 3.9.6
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.53.0 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  HEAD of ::gentoo
commit 5eac140359fd26ae48f26823f46c5dda173ebb27
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Aug 4 01:21:39 2021 +0000

    2021-08-04 01:21:38 UTC

emerge -qpvO net-misc/ntp
[ebuild  N    ] net-misc/ntp-4.2.8_p15  USE="ipv6 readline ssl threads -caps -debug -openntpd -parse-clocks -samba (-selinux) -snmp -vim-syntax -zeroconf"
Comment 1 Toralf Förster gentoo-dev 2021-08-04 08:57:32 UTC
Created attachment 730030 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-08-04 08:57:34 UTC
Created attachment 730032 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-08-04 08:57:35 UTC
Created attachment 730034 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-08-04 08:57:37 UTC
Created attachment 730036 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-08-04 08:57:38 UTC
Created attachment 730038 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-08-04 08:57:40 UTC
Created attachment 730040 [details]
net-misc:ntp-4.2.8_p15:20210804-030810.log
Comment 7 Toralf Förster gentoo-dev 2021-08-04 08:57:41 UTC
Created attachment 730042 [details]
temp.tar.bz2
Comment 8 cyrillic 2021-09-06 11:31:17 UTC
I can confirm that the patch from the URL above allows net-misc/ntp to compile again :
0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch
Comment 9 Larry the Git Cow gentoo-dev 2021-10-17 06:21:48 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7094bf58386e8970a0b96b92938f42e61c6bb656

commit 7094bf58386e8970a0b96b92938f42e61c6bb656
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-17 06:21:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-17 06:21:40 +0000

    net-misc/ntp: fix build with glibc-2.34
    
    Closes: https://bugs.gentoo.org/806358
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/ntp/files/ntp-4.2.8_p15-glibc-2.34.patch | 28 +++++++++++++++++++++++
 net-misc/ntp/ntp-4.2.8_p15.ebuild                 |  1 +
 2 files changed, 29 insertions(+)