Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 715466

Summary: app-admin/ulogd-2.0.7-r1 : ulogd.c: error: PATH_MAX undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: maintainer-needed, mscardovi, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: Missing limits.h?
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713786    
Attachments: emerge-info.txt
app-admin:ulogd-2.0.7-r1:20200330-145527.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-30 15:04:56 UTC
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I..  -I../include -DULOGD_CONFIGFILE=\/etc/ulogd.conf\ -DULOGD_LOGFILE_DEFAULT=\/var/lib/log/ulogd.log\ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Wall -Wextra -Wno-unused-parameter -DULOGD2_LIBDIR=\/usr/lib/ulogd\ -O2 -pipe -march=native -c -o ulogd.o ulogd.c
ulogd.c: In function load_all_plugins:
ulogd.c:735:12: error: PATH_MAX undeclared (first use in this function)
  735 |  char path[PATH_MAX];
      |            ^~~~~~~~
ulogd.c:735:12: 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-20200328-141627

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

  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 13:39:06 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO app-admin/ulogd
[ebuild  N    ] app-admin/ulogd-2.0.7-r1  USE="nfct nflog -dbi -doc -json -mysql -nfacct -pcap -postgres (-selinux) -sqlite -ulog"
Comment 1 Toralf Förster gentoo-dev 2020-03-30 15:04:58 UTC
Created attachment 627434 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-30 15:05:01 UTC
Created attachment 627436 [details]
app-admin:ulogd-2.0.7-r1:20200330-145527.log
Comment 3 Toralf Förster gentoo-dev 2020-03-30 15:05:04 UTC
Created attachment 627438 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-30 15:05:06 UTC
Created attachment 627440 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-30 15:05:09 UTC
Created attachment 627442 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-30 15:05:12 UTC
Created attachment 627444 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-30 15:05:14 UTC
Created attachment 627446 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-03-30 15:38:54 UTC
I suspect this is a case of a missing #include <limits.h> which is required
explicitly on musl-libc.
Comment 10 Marco Scardovi (scardracs) 2021-03-24 12:21:27 UTC
Make a PR for a -r2. This contains the necessary patch for closing this bug. More info here: https://github.com/gentoo/gentoo/pull/20092
Comment 11 Marco Scardovi (scardracs) 2021-03-27 09:47:32 UTC
New
Comment 12 Marco Scardovi (scardracs) 2021-03-27 09:47:57 UTC
Sorry, new version is out. Please test and report back