Bug#634955: libkvm-dev: include <bsd/nlist.h> instead <nlist.h>
Package: libkvm-dev
Version: 8.2+ds1-3
Severity: important
Hello,
While building gdb/experimental on kfreebsd architectures I get:
In file included from /usr/include/kvm.h:38:0,
from /build/buildd-gdb_7.3.50~cvs20110627-2-kfreebsd-i386-YFKJaT/gdb-7.3.50~cvs20110627/gdb/bsd-kvm.c:33:
/usr/include/nlist.h:33:2: error: #warning "Deprecated header, use <bsd/nlist.h> or libbsd-overlay.pc instead." [-Werror=cpp]
cc1: all warnings being treated as errors
At gdb:gdb/bsd-kvm.c:33 I find:
[...]
#include <kvm.h>
#ifdef HAVE_NLIST_H
#include <bsd/nlist.h>
#endif
[...]
And at /usr/include/kvm.h:
[...]
#ifndef _KVM_H_
#define _KVM_H_
#include <sys/cdefs.h>
#include <sys/_types.h>
#include <nlist.h>
[...]
#include <nlist.h> seems to trigger the error from libbsd-dev header
(/usr/include/nlist.h)
Someone more knowledgeable on BSD might know best where headers are broken,
and which is proper place to fix it.
Feel free to reassing the package to other package if the bug report does not
belong to this package.
Cheers,
-- Hector Oron
-- System Information:
Debian Release: wheezy/sid
APT prefers stable
APT policy: (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.39-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Reply to: