On Thu, Sep 5, 2013 at 17:50:18 +0200, Michael Biebl wrote: > Am 05.09.2013 17:29, schrieb Robert Millan: > > Michael Biebl: > >> Source: libgtop2 > >> Version: 2.28.5-1 > >> Severity: serious > >> User: debian-bsd@lists.debian.org > >> Usertags: kfreebsd > >> > >> libgtop2 FTBFS [1] with the following error: > >> > >> make[4]: Entering directory `/«PKGBUILDDIR»/sysdeps/common' > >> /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > >> -I../.. -I../.. -I../.. -I../../sysdeps/freebsd -I../../include > >> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-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 > >> -Werror=format-security -Wall -c -o error.lo error.c > >> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../.. > >> -I../../sysdeps/freebsd -I../../include -I/usr/include/glib-2.0 > >> -I/usr/lib/x86_64-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 > >> -Werror=format-security -Wall -c error.c -fPIC -DPIC -o .libs/error.o > >> In file included from ../../glibtop.h:58:0, > >> from ../../include/glibtop/error.h:30, > >> from error.c:27: > >> ../../sysdeps/freebsd/glibtop_machine.h:26:19: fatal error: nlist.h: No > >> such file or directory > >> #include <nlist.h> > >> ^ > >> > >> > >> Would be great if the kfreebsd porters have a look at this and provide a > >> patch. > > > > -#include <nlist.h> > > +#include <bsd/nlist.h> > > Does that also work with FreeBSD so can be pushed upstream? > Apparently libgtop2 has native FreeBSD support and I wonder if nslist.h > is using a different location on FreeBSD. > In xorg-server added `pkg-config --cflags libbsd-overlay` to CPPFLAGS from debian/rules. Lets the code expecting bsd headers on bsd work without patching.
Cheers, Julien
signature.asc
Description: Digital signature