Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713738 - app-misc/mx5000tools-0.1.2-r1 : mx5000.c: error: PATH_MAX undeclared (first use in this function)
Summary: app-misc/mx5000tools-0.1.2-r1 : mx5000.c: error: PATH_MAX undeclared (first u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Conrad Kostecki
URL:
Whiteboard: Missing limits.h?
Keywords:
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-03-21 11:03 UTC by Toralf Förster
Modified: 2020-08-27 18:00 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.62 KB, text/plain)
2020-03-21 11:03 UTC, Toralf Förster
Details
app-misc:mx5000tools-0.1.2-r1:20200320-223626.log (app-misc:mx5000tools-0.1.2-r1:20200320-223626.log,9.53 KB, text/plain)
2020-03-21 11:03 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,213.07 KB, text/plain)
2020-03-21 11:03 UTC, Toralf Förster
Details
environment (environment,63.37 KB, text/plain)
2020-03-21 11:03 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.48 KB, application/x-bzip)
2020-03-21 11:03 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,6.63 KB, application/x-bzip)
2020-03-21 11:03 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,20.17 KB, application/x-bzip)
2020-03-21 11:03 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-21 11:03:13 UTC
libtool: compile:  x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -Wall -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -c mx5000.c  -fPIC -DPIC -o .libs/mx5000.o
mx5000.c: In function mx5000_open:
mx5000.c:69:16: error: PATH_MAX undeclared (first use in this function)
   69 |   char devname[PATH_MAX];
      |                ^~~~~~~~
mx5000.c:69:16: 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-20200316-165821

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

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	Fri Mar 20 20:38:39 UTC 2020
/var/db/repos/musl	Wed Mar 18 03:21:45 UTC 2020

emerge -qpvO app-misc/mx5000tools
[ebuild  N    ] app-misc/mx5000tools-0.1.2-r1
Comment 1 Toralf Förster gentoo-dev 2020-03-21 11:03:16 UTC
Created attachment 623534 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-21 11:03:19 UTC
Created attachment 623536 [details]
app-misc:mx5000tools-0.1.2-r1:20200320-223626.log
Comment 3 Toralf Förster gentoo-dev 2020-03-21 11:03:22 UTC
Created attachment 623538 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-21 11:03:25 UTC
Created attachment 623540 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-21 11:03:28 UTC
Created attachment 623542 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-21 11:03:31 UTC
Created attachment 623544 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-21 11:03:33 UTC
Created attachment 623546 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-03-22 14:45:27 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 2020-08-27 18:00:31 UTC
The bug has been closed via the following commit(s):

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

commit cec75a9bee49d7d70439b2457c463e43aefbef66
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2020-08-27 18:00:10 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2020-08-27 18:00:10 +0000

    app-misc/mx5000tools: fix compilation with musl
    
    Closes: https://bugs.gentoo.org/713738
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 app-misc/mx5000tools/files/mx5000tools-0.1.2-musl.patch | 10 ++++++++++
 app-misc/mx5000tools/mx5000tools-0.1.2-r1.ebuild        |  7 +++++--
 2 files changed, 15 insertions(+), 2 deletions(-)