Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716080 - net-analyzer/symon-2.88 : error.c: fatal error: sys/cdefs.h: No such file or directory
Summary: net-analyzer/symon-2.88 : error.c: fatal error: sys/cdefs.h: No such file or ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard: cdefs.h
Keywords: PullRequest
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-04-03 20:47 UTC by Toralf Förster
Modified: 2025-03-08 01:37 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.97 KB, text/plain)
2020-04-03 20:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,295.70 KB, text/plain)
2020-04-03 20:47 UTC, Toralf Förster
Details
environment (environment,95.47 KB, text/plain)
2020-04-03 20:47 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,25.10 KB, application/x-bzip)
2020-04-03 20:47 UTC, Toralf Förster
Details
net-analyzer:symon-2.88:20200403-195953.log (net-analyzer:symon-2.88:20200403-195953.log,2.58 KB, text/plain)
2020-04-03 20:47 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,23.17 KB, application/x-bzip)
2020-04-03 20:47 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-03 20:47:16 UTC
Generating conf.h on Linux
x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -Wall -g -I../platform/Linux -I. -o error.o -c error.c
error.c:30:10: fatal error: sys/cdefs.h: No such file or directory
   30 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

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

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

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

  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-1.42.0 *
The following VMs are available for generation-2:

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri Apr  3 18:12:30 UTC 2020
/var/db/repos/musl	Thu Apr  2 19:02:24 UTC 2020

emerge -qpvO net-analyzer/symon
[ebuild  N    ] net-analyzer/symon-2.88  USE="symon -perl -symux"
Comment 1 Toralf Förster gentoo-dev 2020-04-03 20:47:19 UTC
Created attachment 629554 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-03 20:47:22 UTC
Created attachment 629556 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-03 20:47:25 UTC
Created attachment 629558 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-03 20:47:27 UTC
Created attachment 629560 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-03 20:47:30 UTC
Created attachment 629562 [details]
net-analyzer:symon-2.88:20200403-195953.log
Comment 6 Toralf Förster gentoo-dev 2020-04-03 20:47:33 UTC
Created attachment 629564 [details]
temp.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-04-04 11:50:05 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 8 NHO 2025-03-02 08:08:19 UTC
Emailed upstream.
Comment 9 Larry the Git Cow gentoo-dev 2025-03-08 01:37:27 UTC
The bug has been closed via the following commit(s):

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

commit eab00c6a0dbdc61d0f85d63a826e5e6667d867db
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-03-02 07:50:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-08 01:36:01 +0000

    net-analyzer/symon: update EAPI 7 -> 8, version bump to 2.89
    
    Upstream fix for compatibility with new rrd.
    Simplified ebuild file, folded seds, corrected pmakefile.
    Restricts tests - there are none, but runner fails due to pmake.
    Fixes build on musl.
    
    Closes: https://bugs.gentoo.org/716080
    Closes: https://bugs.gentoo.org/932440
    Closes: https://bugs.gentoo.org/623448
    Closes: https://bugs.gentoo.org/911776
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/40843
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/symon/Manifest                        |   1 +
 .../files/symon-2.89-condition-makefiles.patch     |  39 ++
 net-analyzer/symon/files/symon-2.89-extern_c.patch | 441 +++++++++++++++++++++
 net-analyzer/symon/symon-2.89.ebuild               |  99 +++++
 4 files changed, 580 insertions(+)