Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716872 - games-arcade/xtux-20030306-r1 : misc.c: error: PATH_MAX undeclared here (not in a function)
Summary: games-arcade/xtux-20030306-r1 : misc.c: error: PATH_MAX undeclared here (not ...
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:
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-04-10 07:47 UTC by Toralf Förster
Modified: 2020-07-05 20:06 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.18 KB, text/plain)
2020-04-10 07:48 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,406.63 KB, text/plain)
2020-04-10 07:48 UTC, Toralf Förster
Details
environment (environment,27.84 KB, text/plain)
2020-04-10 07:48 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,30.72 KB, application/x-bzip)
2020-04-10 07:48 UTC, Toralf Förster
Details
games-arcade:xtux-20030306-r1:20200409-205237.log (games-arcade:xtux-20030306-r1:20200409-205237.log,12.07 KB, text/plain)
2020-04-10 07:48 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,1.65 KB, application/x-bzip)
2020-04-10 07:48 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,10.07 KB, application/x-bzip)
2020-04-10 07: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-10 07:47:57 UTC
gcc -O2 -pipe -march=native -DDATADIR=\/usr/share/xtux/data\ -c menu.c -I../../src/common -I/usr/X11R6/include -I../../src/ggz/client
gcc -O2 -pipe -march=native -DDATADIR=\/usr/share/xtux/data\ -c misc.c -I../../src/common -I/usr/X11R6/include -I../../src/ggz/client
misc.c:62:22: error: PATH_MAX undeclared here (not in a function)
   62 | static char filename[PATH_MAX];
      |                      ^~~~~~~~
make[1]: *** [Makefile:55: misc.o] Error 1

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

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

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

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


timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu Apr  9 19:12:07 UTC 2020
/var/db/repos/musl	Wed Apr  8 18:15:58 UTC 2020

emerge -qpvO games-arcade/xtux
[ebuild  N    ] games-arcade/xtux-20030306-r1
Comment 1 Toralf Förster gentoo-dev 2020-04-10 07:48:00 UTC
Created attachment 631714 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-10 07:48:04 UTC
Created attachment 631716 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-10 07:48:08 UTC
Created attachment 631718 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-10 07:48:12 UTC
Created attachment 631720 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-10 07:48:16 UTC
Created attachment 631722 [details]
games-arcade:xtux-20030306-r1:20200409-205237.log
Comment 6 Toralf Förster gentoo-dev 2020-04-10 07:48:19 UTC
Created attachment 631724 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-04-10 07:48:22 UTC
Created attachment 631726 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-04-10 10:56:45 UTC
Likely an occurrence of missing #include <limits.h> .
Comment 9 Larry the Git Cow gentoo-dev 2020-07-05 20:06:24 UTC
The bug has been closed via the following commit(s):

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

commit 47f2ac9b3c23d50db4bda479d3bf47d8077ce545
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-07-05 20:05:47 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-07-05 20:05:47 +0000

    games-arcade/xtux: Fix build system
    
    Closes: https://bugs.gentoo.org/710722
    Closes: https://bugs.gentoo.org/716872
    Closes: https://bugs.gentoo.org/730812
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../xtux/files/xtux-20030306-Makefile.patch        | 190 +++++++++++++++++++++
 .../xtux/files/xtux-20030306-ldflags.patch         |  22 ---
 .../xtux/files/xtux-20030306-missing-include.patch |  29 ++++
 .../xtux/files/xtux-20030306-tux_serv-path.patch   |  13 ++
 games-arcade/xtux/xtux-20030306-r1.ebuild          |  42 ++---
 5 files changed, 254 insertions(+), 42 deletions(-)