Bug#667984: libgtop2: FTBFS(kfreebsd): __printflike undefined

Steven Chamberlain steven at pyro.eu.org
Sat Apr 7 20:25:29 UTC 2012


Package: src:libgtop2
Version: 2.28.4-2
Severity: serious
Tags: sid wheezy
User: debian-bsd at lists.debian.org
Usertags: kfreebsd
X-Debbugs-Cc: debian-bsd at lists.debian.org
Justification: fails to build from source (but built successfully in the
past)

Hi,

This looks to be a kfreebsd headers issue in either libbsd or eglibc but
I'm not sure yet, so filing this FTBFS against src:libgtop2 for now.

/usr/include/bsd/sys/cdefs.h is being included but not used due to ifdef
statements.  There is no corresponding __printflike definition in
/usr/include/i386-kfreebsd-gnu/sys/cdefs.h

The modification in the attached diff allowed me to build this package
on kfreebsd-i386.

> steven at kfreebsd-i386:~/libgtop2-2.28.4/sysdeps/freebsd$ gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. -I../../sysdeps/freebsd -I../../include -I/usr/include/glib-2.0 -I/usr/li
> b/i386-kfreebsd-gnu/glib-2.0/include -D_FORTIFY_SOURCE=2 -Winline -Wall -std=gnu89 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith
>  -Wcast-align -Wsign-compare -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c procmap.c  -fPIC -DPIC -o .libs/procm
> ap.o 
> In file included from ./glibtop_machine.h:26:0,
>                  from ../../glibtop.h:58,
>                  from procmap.c:23:
> /usr/include/nlist.h:33:2: warning: #warning "Deprecated header, use <bsd/nlist.h> or libbsd-overlay.pc instead." [-Wcpp]
> In file included from procmap.c:43:0:
> /usr/include/sys/conf.h: In function ‘make_dev_alias’:
> /usr/include/sys/conf.h:281:3: error: expected declaration specifiers before ‘__printflike’
> /usr/include/sys/conf.h:299:16: error: storage class specified for parameter ‘cdevpriv_dtr_t’
> /usr/include/sys/conf.h:301:36: error: expected declaration specifiers or ‘...’ before ‘cdevpriv_dtr_t’
> /usr/include/sys/conf.h:322:16: error: storage class specified for parameter ‘dev_clone_fn’
> /usr/include/sys/conf.h:326:1: error: expected specifier-qualifier-list before ‘dev_clone_fn’
> /usr/include/sys/conf.h:343:12: error: storage class specified for parameter ‘dumping’

Regards,
-- 
Steven Chamberlain
steven at pyro.eu.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sys-cdefs-printflike.diff
Type: text/x-patch
Size: 559 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20120407/8f219e69/attachment-0003.bin>


More information about the pkg-gnome-maintainers mailing list