Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 713660

Summary: x11-misc/alock-1.0.0-r1 : auth_sha1.c: fatal error: sys/cdefs.h: No such file or directory
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: maintainer-needed, nic
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: cdefs.h
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2
x11-misc:alock-1.0.0:20200320-153907.log
alock-9999.ebuild

Description Toralf Förster gentoo-dev 2020-03-20 17:07:04 UTC
      | 
x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -DVERSION=\1.0\  -DHAVE_PAM -DHAVE_SHADOW -DHAVE_PASSWD  -DHAVE_HASH  -DHAVE_XRENDER  -DHAVE_XCURSOR  -DHAVE_XPM   -c -o auth_sha1.o auth_sha1.c
auth_sha1.c:33:10: fatal error: sys/cdefs.h: No such file or directory
   33 | #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 x11-misc/alock
[ebuild  N    ] x11-misc/alock-1.0.0  USE="pam -doc -imlib"
Comment 1 Toralf Förster gentoo-dev 2020-03-20 17:07:07 UTC
Created attachment 623324 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-20 17:07:09 UTC
Created attachment 623326 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-20 17:07:12 UTC
Created attachment 623328 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-20 17:07:15 UTC
Created attachment 623330 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-20 17:07:17 UTC
Created attachment 623332 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-20 17:07:20 UTC
Created attachment 623334 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-20 17:07:22 UTC
Created attachment 623336 [details]
x11-misc:alock-1.0.0:20200320-153907.log
Comment 8 Michael 'veremitz' Everitt 2020-03-20 17:10:12 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 nic 2021-09-27 03:53:09 UTC
Created attachment 741567 [details]
alock-9999.ebuild

Allot has changed within the alock project since 1.0.0 release.
https://github.com/mgumz/alock

 auth_sha* has folded into auth_hash.c

 #include <sys/cdefs.h> references were removed


While there hasn't been an official tagged release since then, the latest master builds cleanly on AMD64 (I don't have access to a musl deployment).
ebuild  also in the Oubliette overlay.
Comment 10 Agostino Sarubbo gentoo-dev 2022-10-10 08:10:17 UTC
tinderbox_musl has reproduced this issue with version 1.0.0-r1 - Updating summary.