Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715552 - app-forensics/chkrootkit-0.55 : chklastlog.c: error: O_RDONLY undeclared (first use in this function)
Summary: app-forensics/chkrootkit-0.55 : chklastlog.c: error: O_RDONLY undeclared (fir...
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: Missing fcntl.h?
Keywords:
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-03-31 07:05 UTC by Toralf Förster
Modified: 2022-01-03 04:00 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.31 KB, text/plain)
2020-03-31 07:05 UTC, Toralf Förster
Details
app-forensics:chkrootkit-0.53:20200330-232737.log (app-forensics:chkrootkit-0.53:20200330-232737.log,3.63 KB, text/plain)
2020-03-31 07:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,124.35 KB, text/plain)
2020-03-31 07:05 UTC, Toralf Förster
Details
environment (environment,51.03 KB, text/plain)
2020-03-31 07:05 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.74 KB, application/x-bzip)
2020-03-31 07:05 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,13.95 KB, application/x-bzip)
2020-03-31 07:05 UTC, Toralf Förster
Details
path_max fix (path_max.patch,174 bytes, patch)
2022-01-03 03:51 UTC, Jory A. Pratt
Details | Diff
add missing include for fcntl.h (fcntl.patch,656 bytes, patch)
2022-01-03 03:51 UTC, Jory A. Pratt
Details | Diff

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-31 07:05:20 UTC
      |                  ^~~~
      |                  popen
chklastlog.c:138:35: error: O_RDONLY undeclared (first use in this function)
  138 |  if ((fh_lastlog=open(lastlogfile,O_RDONLY)) < 0) {
      |                                   ^~~~~~~~
chklastlog.c:138:35: note: each undeclared identifier is reported only once for each function it appears in

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

  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-1.42.0 *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon Mar 30 22:39:15 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO app-forensics/chkrootkit
[ebuild  N    ] app-forensics/chkrootkit-0.53  USE="cron"
Comment 1 Toralf Förster gentoo-dev 2020-03-31 07:05:24 UTC
Created attachment 627674 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-31 07:05:27 UTC
Created attachment 627676 [details]
app-forensics:chkrootkit-0.53:20200330-232737.log
Comment 3 Toralf Förster gentoo-dev 2020-03-31 07:05:30 UTC
Created attachment 627678 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-31 07:05:33 UTC
Created attachment 627680 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-31 07:05:35 UTC
Created attachment 627682 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-31 07:05:38 UTC
Created attachment 627684 [details]
temp.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-03-31 07:32:50 UTC
Likely an occurrence of missing #include <fcntl.h>.
Comment 8 Agostino Sarubbo gentoo-dev 2022-01-02 21:18:43 UTC
tinderbox_musl has reproduced this issue with version 0.55 - Updating summary.
Comment 9 Jory A. Pratt gentoo-dev 2022-01-03 03:51:22 UTC
Created attachment 761135 [details, diff]
path_max fix

this is a two part fix, first part is PATH_MAX undefined, second part will be the missing fnctl.h
Comment 10 Jory A. Pratt gentoo-dev 2022-01-03 03:51:51 UTC
Created attachment 761136 [details, diff]
add missing include for fcntl.h
Comment 11 Larry the Git Cow gentoo-dev 2022-01-03 04:00:56 UTC
The bug has been closed via the following commit(s):

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

commit 07737b95af2452c0055e1ed0660590c1487befdb
Author:     Jory Pratt <anarchy@gentoo.org>
AuthorDate: 2022-01-03 04:00:37 +0000
Commit:     Jory Pratt <anarchy@gentoo.org>
CommitDate: 2022-01-03 04:00:51 +0000

    app-forensics/chkrootkit: Fix missing includes for musl
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=715552
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Jory Pratt <anarchy@gentoo.org>

 app-forensics/chkrootkit/chkrootkit-0.55.ebuild    |  4 ++-
 .../chkrootkit/files/chkrootkit-0.55-fcntl_h.patch | 30 ++++++++++++++++++++++
 .../files/chkrootkit-0.55-limits_h.patch           | 10 ++++++++
 3 files changed, 43 insertions(+), 1 deletion(-)