Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713962 - app-misc/cdargs-1.35-r2 : cdargs.cc: error: PATH_MAX was not declared in this scope
Summary: app-misc/cdargs-1.35-r2 : cdargs.cc: error: PATH_MAX was not declared in this...
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 limits.h?
Keywords: PullRequest
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-03-22 12:41 UTC by Toralf Förster
Modified: 2023-12-15 09:36 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.13 KB, text/plain)
2020-03-22 12:41 UTC, Toralf Förster
Details
app-misc:cdargs-1.35-r2:20200322-052407.log (app-misc:cdargs-1.35-r2:20200322-052407.log,13.88 KB, text/plain)
2020-03-22 12:41 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,256.63 KB, text/plain)
2020-03-22 12:41 UTC, Toralf Förster
Details
environment (environment,98.29 KB, text/plain)
2020-03-22 12:41 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,19.78 KB, application/x-bzip)
2020-03-22 12:41 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,4.61 KB, application/x-bzip)
2020-03-22 12:42 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,26.86 KB, application/x-bzip)
2020-03-22 12:42 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-03-22 12:41:45 UTC
      |                      ^~~~
cdargs.cc: In function char* get_cwd_as_charp():
cdargs.cc:930:14: error: PATH_MAX was not declared in this scope
  930 |     char buf[PATH_MAX];
      |              ^~~~~~~~
cdargs.cc:931:27: error: buf was not declared in this scope

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

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

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

  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.41.1 *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Mar 22 04:39:13 UTC 2020
/var/db/repos/musl	Sun Mar 22 03:12:57 UTC 2020

emerge -qpvO app-misc/cdargs
[ebuild  N    ] app-misc/cdargs-1.35-r2  USE="-emacs"
Comment 1 Toralf Förster gentoo-dev 2020-03-22 12:41:47 UTC
Created attachment 624312 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-22 12:41:50 UTC
Created attachment 624314 [details]
app-misc:cdargs-1.35-r2:20200322-052407.log
Comment 3 Toralf Förster gentoo-dev 2020-03-22 12:41:53 UTC
Created attachment 624316 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-22 12:41:56 UTC
Created attachment 624318 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-22 12:41:59 UTC
Created attachment 624320 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-22 12:42:02 UTC
Created attachment 624322 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-22 12:42:05 UTC
Created attachment 624324 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-03-24 21:10:16 UTC
I suspect this is a case of a missing #include <limits.h> which is required explicitly on musl-libc.
Comment 9 Larry the Git Cow gentoo-dev 2023-12-15 03:25:34 UTC
The bug has been closed via the following commit(s):

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

commit 7ea943b229eaf30b5e065bd5450a46cf313c99ed
Author:     Pascal Jäger <pascal.jaeger@leimstift.de>
AuthorDate: 2023-10-14 07:14:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-15 03:19:45 +0000

    app-misc/cdargs: vbump to 2.1
    
    EAPI bump
    Build system changed to meson
    
    Closes: https://bugs.gentoo.org/713962
    
    Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
    Closes: https://github.com/gentoo/gentoo/pull/33323
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/cdargs/Manifest                    |  1 +
 app-misc/cdargs/cdargs-2.1.ebuild           | 65 +++++++++++++++++++++++++++++
 app-misc/cdargs/files/cdargs-2.1-musl.patch | 17 ++++++++
 app-misc/cdargs/metadata.xml                |  3 ++
 4 files changed, 86 insertions(+)