Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128122 - dev-libs/klibc-1.2.1-r1 - <stdarg.h> does not work
Summary: dev-libs/klibc-1.2.1-r1 - <stdarg.h> does not work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-30 09:13 UTC by Stefan Jones (RETIRED)
Modified: 2006-03-30 09:18 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.