Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717602 - net-misc/asterisk-16.9.0 : db1-ast/.../db.h: fatal error: sys/cdefs.h: No such file or directory
Summary: net-misc/asterisk-16.9.0 : db1-ast/.../db.h: fatal error: sys/cdefs.h: No suc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jaco Kroon
URL:
Whiteboard: cdefs.h
Keywords: PullRequest
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-04-15 16:17 UTC by Toralf Förster
Modified: 2020-06-17 17:15 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.32 KB, text/plain)
2020-04-15 16:17 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,494.94 KB, text/plain)
2020-04-15 16:17 UTC, Toralf Förster
Details
environment (environment,102.39 KB, text/plain)
2020-04-15 16:17 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,35.56 KB, application/x-bzip)
2020-04-15 16:17 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,52.32 KB, application/x-bzip)
2020-04-15 16:18 UTC, Toralf Förster
Details
net-misc:asterisk-16.9.0:20200415-135710.log (net-misc:asterisk-16.9.0:20200415-135710.log,61.65 KB, text/plain)
2020-04-15 16:18 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,36.99 KB, application/x-bzip)
2020-04-15 16:18 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-04-15 16:17:46 UTC
x86_64-gentoo-linux-musl-gcc -o astdb2sqlite3.o -c astdb2sqlite3.c -MD -MT astdb2sqlite3.o -MF .astdb2sqlite3.o.d -MP -pthread -I/var/tmp/portage/net-misc/asterisk-16.9.0/work/asterisk-16.9.0/include -O2 -pipe -march=native  -I/usr/include/libxml2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -g3 -DSTANDALONE -O3 -fno-partial-inlining -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -O2 -pipe -march=native 
In file included from astdb2sqlite3.c:39:
db1-ast/include/db.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_hardened-20200328-201618

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

  Please see the tracker bug for details.

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-bin-1.42.0
  [2]   rust-1.42.0 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)


timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Wed Apr 15 12:38:14 UTC 2020
/var/db/repos/musl	Tue Apr 14 12:39:54 UTC 2020

emerge -qpvO net-misc/asterisk
[ebuild  N    ] net-misc/asterisk-16.9.0  USE="caps iconv samples ssl -alsa -bluetooth -calendar -cluster -curl -dahdi -debug -doc -freetds -gtalk -http -ilbc -ldap -libressl -lua -mysql -newt -odbc -osplookup -oss -pjproject -portaudio -postgres -radius (-selinux) -snmp -span -speex -srtp -static -statsd -syslog -unbound -vorbis -xmpp" VOICEMAIL_STORAGE="file -imap -odbc"
Comment 1 Toralf Förster gentoo-dev 2020-04-15 16:17:49 UTC
Created attachment 633088 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-15 16:17:51 UTC
Created attachment 633090 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-15 16:17:54 UTC
Created attachment 633092 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-15 16:17:57 UTC
Created attachment 633094 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-15 16:18:00 UTC
Created attachment 633096 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-15 16:18:03 UTC
Created attachment 633098 [details]
net-misc:asterisk-16.9.0:20200415-135710.log
Comment 7 Toralf Förster gentoo-dev 2020-04-15 16:18:06 UTC
Created attachment 633100 [details]
temp.tbz2
Comment 8 Jaco Kroon 2020-04-15 17:39:12 UTC
Looks legit.  I'll take it.
Comment 9 Michael 'veremitz' Everitt 2020-04-27 00:10:50 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 10 Jaco Kroon 2020-05-04 08:33:51 UTC
Proposed patch sent upstream.  This is for * 13, will rebase for 16, 17 and master once approved (and verify no additional such were introduced).

https://gerrit.asterisk.org/c/asterisk/+/14337
Comment 11 Michael 'veremitz' Everitt 2020-05-04 09:19:36 UTC
(In reply to Jaco Kroon from comment #10)
> Proposed patch sent upstream.  This is for * 13, will rebase for 16, 17 and
> master once approved (and verify no additional such were introduced).
> 
> https://gerrit.asterisk.org/c/asterisk/+/14337

Good stuff, thanks!
Comment 12 Jaco Kroon 2020-05-05 15:50:52 UTC
Hi,

(In reply to Michael 'veremitz' Everitt from comment #11)
> (In reply to Jaco Kroon from comment #10)
> > Proposed patch sent upstream.  This is for * 13, will rebase for 16, 17 and
> > master once approved (and verify no additional such were introduced).
> > 
> > https://gerrit.asterisk.org/c/asterisk/+/14337
> 
> Good stuff, thanks!

Fixes merged upstream.  Are we aware of anyone desperate for a fix in which case I can bump 13.33.0 and 16.10.0 to -r1 with their individual fixes, or we can wait for 13.34.0 and 16.11.0 respectively?

Kind Regards,
Jaco
Comment 13 Larry the Git Cow gentoo-dev 2020-06-17 17:15:29 UTC
The bug has been closed via the following commit(s):

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

commit 379bfa21016a3a3fb671572522b0d097b89e0974
Author:     Jaco Kroon <jaco@uls.co.za>
AuthorDate: 2020-06-17 15:43:45 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-06-17 17:15:19 +0000

    net-misc/asterisk: 16.11.1
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=717602
    Bug: https://bugs.gentoo.org/721470
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Jaco Kroon <jaco@uls.co.za>
    Closes: https://github.com/gentoo/gentoo/pull/16195
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 net-misc/asterisk/Manifest                |   1 +
 net-misc/asterisk/asterisk-16.11.1.ebuild | 301 ++++++++++++++++++++++++++++++
 2 files changed, 302 insertions(+)

Additionally, it has been referenced in the following commit(s):

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

commit 1697a125189ea4239385246486cfe9bd7d817eb7
Author:     Jaco Kroon <jaco@uls.co.za>
AuthorDate: 2020-06-17 15:39:36 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-06-17 17:15:18 +0000

    net-misc/asterisk: Version 13.34.0 bump.
    
    Bug: https://bugs.gentoo.org/717602
    Bug: https://bugs.gentoo.org/721470
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Jaco Kroon <jaco@uls.co.za>
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 net-misc/asterisk/Manifest                |   1 +
 net-misc/asterisk/asterisk-13.34.0.ebuild | 296 ++++++++++++++++++++++++++++++
 2 files changed, 297 insertions(+)