Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713470 - app-admin/sud-1.3-r1 : queue.h: fatal error: sys/cdefs.h: No such file or directory
Summary: app-admin/sud-1.3-r1 : queue.h: fatal error: sys/cdefs.h: No such file or dir...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard: cdefs.h
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2020-03-19 14:04 UTC by Toralf Förster
Modified: 2021-12-23 08:13 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.42 KB, text/plain)
2020-03-19 14:04 UTC, Toralf Förster
Details
app-admin:sud-1.3-r1:20200319-130801.log (app-admin:sud-1.3-r1:20200319-130801.log,6.74 KB, text/plain)
2020-03-19 14:04 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,147.69 KB, text/plain)
2020-03-19 14:04 UTC, Toralf Förster
Details
environment (environment,101.25 KB, text/plain)
2020-03-19 14:04 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.26 KB, application/x-bzip)
2020-03-19 14:04 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,17.39 KB, application/x-bzip)
2020-03-19 14:04 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,26.05 KB, application/x-bzip)
2020-03-19 14:04 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 2020-03-19 14:04:36 UTC
In file included from conf.h:34,
                 from conf.c:41:
queue.h:40:10: fatal error: sys/cdefs.h: No such file or directory
   40 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200316-165821

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.1 *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 18 Mar 2020 13:38:27 +0000
emerge -qpvO app-admin/sud
[ebuild  N    ] app-admin/sud-1.3-r1
Comment 1 Toralf Förster gentoo-dev 2020-03-19 14:04:39 UTC
Created attachment 622690 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-19 14:04:42 UTC
Created attachment 622692 [details]
app-admin:sud-1.3-r1:20200319-130801.log
Comment 3 Toralf Förster gentoo-dev 2020-03-19 14:04:44 UTC
Created attachment 622694 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-19 14:04:47 UTC
Created attachment 622696 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-19 14:04:50 UTC
Created attachment 622698 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-19 14:04:53 UTC
Created attachment 622700 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-19 14:04:56 UTC
Created attachment 622702 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-03-19 14:07:25 UTC
musl upstream has a FAQ entry specifically for this error:
https://wiki.musl-libc.org/faq.html#Q:-When-compiling-something-against-musl,-I-get-error-messages-about-%3Ccode%3Esys/cdefs.h%3C/code%3E

We will need to check/report upstream and patch affected code temporarily.
Comment 9 Larry the Git Cow gentoo-dev 2021-12-23 08:13:59 UTC
The bug has been closed via the following commit(s):

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

commit d6b79ed69027be967e705cc4ab3116dbc539f69a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-23 08:12:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-23 08:13:46 +0000

    app-admin/sud: fix build on musl
    
    Closes: https://bugs.gentoo.org/713470
    Signed-off-by: Sam James <sam@gentoo.org>

 app-admin/sud/files/sud-1.3-use-system-queue.patch | 68 ++++++++++++++++++++++
 app-admin/sud/sud-1.3-r1.ebuild                    | 12 +++-
 2 files changed, 77 insertions(+), 3 deletions(-)