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

Bug 497200

Summary: =sys-apps/kbd-2.0.1: fails to compile on uclibc because of missing #include <stdarg.h>
Product: Gentoo Linux Reporter: Anthony Basile <blueness>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Anthony Basile gentoo-dev 2014-01-06 01:17:31 UTC
In src/libkeymap/keymap/common.h there is a func prototype int lk_set_log_fn(...) which includes a va_list in the parameters, but the header does not include <stdarg.h>.  This works on glibc systems because of the way the header stack but not on uclibc or other libc's.  (man va_start for more info.)

Simple fix, just #include <stdarg.h> somewhere near the top.  This should go upstream.

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2014-01-06 15:32:57 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add missing stdarg.h include to fix building for some C libraries
http://sources.gentoo.org/sys-apps/kbd/files/kbd-2.0.1-stdarg.patch?rev=1.1
http://sources.gentoo.org/sys-apps/kbd/kbd-2.0.1.ebuild?r1=1.1&r2=1.2