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

Bug 715988

Summary: media-gfx/jpegtoavi-1.5 : jpegtoavi.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: CONFIRMED ---    
Severity: normal CC: graphics+disabled, media-video
Priority: Normal    
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

Description Toralf Förster gentoo-dev 2020-04-03 07:26:31 UTC
x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -Wall -ansi  -DLINUX -D__UNIX__ -DVERSION_MIN=5 -DVERSION_MAJ=1 -DVERBOSE=0 -c jpegtoavi.c -o jpegtoavi.o
jpegtoavi.c: In function get_file_list_stdin:
jpegtoavi.c:109:11: error: PATH_MAX undeclared (first use in this function)
  109 |   char fn[PATH_MAX];
      |           ^~~~~~~~
jpegtoavi.c:109:11: 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
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	Thu Apr  2 22:37:37 UTC 2020
/var/db/repos/musl	Thu Apr  2 19:02:24 UTC 2020

emerge -qpvO media-gfx/jpegtoavi
[ebuild  N    ] media-gfx/jpegtoavi-1.5
Comment 1 Toralf Förster gentoo-dev 2020-04-03 07:26:34 UTC
Created attachment 629274 [details]
Comment 2 Toralf Förster gentoo-dev 2020-04-03 07:26:37 UTC
Created attachment 629276 [details]
Comment 3 Toralf Förster gentoo-dev 2020-04-03 07:26:40 UTC
Created attachment 629278 [details]
Comment 4 Toralf Förster gentoo-dev 2020-04-03 07:26:43 UTC
Created attachment 629280 [details]
Comment 5 Toralf Förster gentoo-dev 2020-04-03 07:26:46 UTC
Created attachment 629282 [details]
Comment 6 Toralf Förster gentoo-dev 2020-04-03 07:26:50 UTC
Created attachment 629284 [details]
Comment 7 Michael 'veremitz' Everitt 2020-04-04 18:49:12 UTC
I suspect this is a case of a missing #include <limits.h> which is required
explicitly on musl-libc.