Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716200 - sys-fs/compsize-1.1 : compsize.c: error: _O_LARGEFILE undeclared (first use in this function)
Summary: sys-fs/compsize-1.1 : compsize.c: error: _O_LARGEFILE undeclared (first use i...
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:
Keywords: PullRequest
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-04-04 16:48 UTC by Toralf Förster
Modified: 2021-02-01 13:22 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.74 KB, text/plain)
2020-04-04 16:48 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,289.88 KB, text/plain)
2020-04-04 16:48 UTC, Toralf Förster
Details
environment (environment,89.32 KB, text/plain)
2020-04-04 16:48 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,25.06 KB, application/x-bzip)
2020-04-04 16:48 UTC, Toralf Förster
Details
sys-fs:compsize-1.1:20200404-164049.log (sys-fs:compsize-1.1:20200404-164049.log,2.06 KB, text/plain)
2020-04-04 16:48 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,21.50 KB, application/x-bzip)
2020-04-04 16:48 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-04 16:48:04 UTC
cc -O2 -pipe -march=native -Wall -std=gnu90  -c -o compsize.o compsize.c
compsize.c: In function do_recursive_search:
compsize.c:228:65: error: __O_LARGEFILE undeclared (first use in this function); did you mean O_LARGEFILE?
  228 |         fd = open(path, O_RDONLY|O_NOFOLLOW|O_NOCTTY|O_NONBLOCK|__O_LARGEFILE);
      |                                                                 ^~~~~~~~~~~~~
      |                                                                 O_LARGEFILE

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

  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 *
Available Java Virtual Machines:
  (none found)


timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Apr  4 15:39:08 UTC 2020
/var/db/repos/musl	Sat Apr  4 03:02:24 UTC 2020

emerge -qpvO sys-fs/compsize
[ebuild  N    ] sys-fs/compsize-1.1
Comment 1 Toralf Förster gentoo-dev 2020-04-04 16:48:07 UTC
Created attachment 630006 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-04 16:48:10 UTC
Created attachment 630008 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-04 16:48:13 UTC
Created attachment 630010 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-04 16:48:15 UTC
Created attachment 630012 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-04 16:48:18 UTC
Created attachment 630014 [details]
sys-fs:compsize-1.1:20200404-164049.log
Comment 6 Toralf Förster gentoo-dev 2020-04-04 16:48:21 UTC
Created attachment 630016 [details]
temp.tbz2
Comment 7 James Beddek 2020-09-06 07:16:21 UTC
Hi, it would be good if you are able to retest (no musl system here) as this should be fixed now that sys-fs/compsize has been bumped to 1.3 [1].

Thanks

[1]: https://github.com/kilobyte/compsize/pull/25
Comment 8 Larry the Git Cow gentoo-dev 2021-02-01 13:22:56 UTC
The bug has been closed via the following commit(s):

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

commit 94a3608a53bc75ea0671f22f5ef9ee8e353b6b08
Author:     Theo Anderson <telans@posteo.de>
AuthorDate: 2021-01-20 10:57:41 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-02-01 13:22:47 +0000

    sys-fs/compsize: bump to 1.4
    
    ebuild changes:
     - use einstalldocs instead of dodoc
     - update PREFIX instead of sedding "/usr" to Makefile
     - remove append-cflags -std=gnu90
     - add -Wall to debug flags
    
    Closes: https://bugs.gentoo.org/716200
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Theo Anderson <telans@posteo.de>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 sys-fs/compsize/Manifest             |  1 +
 sys-fs/compsize/compsize-1.4.ebuild  | 39 ++++++++++++++++++++++++++++++++++++
 sys-fs/compsize/compsize-9999.ebuild | 12 ++++-------
 3 files changed, 44 insertions(+), 8 deletions(-)