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

Bug 128122

Summary: dev-libs/klibc-1.2.1-r1 - <stdarg.h> does not work
Product: Gentoo Linux Reporter: Stefan Jones (RETIRED) <cretin>
Component: [OLD] DevelopmentAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stefan Jones (RETIRED) gentoo-dev 2006-03-30 09:13:46 UTC
If you try and emerge media-gfx/splashutils-1.1.9.10-r1 then you get the following error:
  MAKE    libjpeg
In file included from /usr/lib/klibc/include/stdio.h:9,
                 from jinclude.h:46,
                 from jcapimin.c:20:
/usr/lib/klibc/include/stdarg.h:9:25: stdarg.h: No such file or directory
In file included from jinclude.h:46,
                 from jcapimin.c:20:
/usr/lib/klibc/include/stdio.h:100: error: syntax error before "va_list"
/usr/lib/klibc/include/stdio.h:102: error: syntax error before "va_list"
/usr/lib/klibc/include/stdio.h:104: error: syntax error before "va_list"
/usr/lib/klibc/include/stdio.h:106: error: syntax error before "va_list"
/usr/lib/klibc/include/stdio.h:108: error: syntax error before "va_list"
/usr/lib/klibc/include/stdio.h:119: error: syntax error before "va_list"
make[1]: *** [jcapimin.o] Error 1
make: *** [jpeglib] Error 2

Caused by the patch in klibc-1.2.1-r1 - files/klibc-1.2.1-nostdinc-flags.patch
-stdinc flag is required to use <stdarg.h> (which comes from gcc headers)

( Just compile a file with only "#include <stdarg.h>" in it)

I think the linux kernel ran into the same problem it uses:
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
( see /usr/src/linux/Makefile )
But you have that in the patch .. not sure what is wrong then.
Comment 1 Stefan Jones (RETIRED) gentoo-dev 2006-03-30 09:18:51 UTC
Opps, sorry it was fixed without a version bump, very sorry for the noise.

splashutils still does not compile but that looks more like an internal bug to splashutils.