Re: Probleme beim Kompilieren

From: Greg Lehey <grog(at)lemis.com>
Date: Thu, 31 Jul 1997 17:55:43 +0930 (CST)

Stefan Herrmann writes:
> Hi !
>
> ich versuche gerade, den Network Monitor NOCOL unter
> FreeBSD 2.2-stable zu kompilieren. Leider gibts folgenden,
> wiederholten Fehler:
>
> MAKING IN netconsole
> ----------
> cc -g -I/usr/local/src/nocol-4.01/src/include -L/usr/local/src/nocol-4.01/src/lib -c -DDATADIR=\"/usr/local/nocol/data\" -DMSGSDIR=\"/usr/local/nocol/msgs\" -DHELPFILE=\"/usr/local/nocol/etc/netconsole-help\" -DNOCOL -DMULTIPING build_display.c
> In file included from /usr/local/src/nocol-4.01/src/include/netconsole.h:11,
> from build_display.c:59:
> /usr/local/src/nocol-4.01/src/include/nocol.h:37: conflicting types for `sys_errlist'
> /usr/include/stdio.h:245: previous declaration of `sys_errlist'
> *** Error code 1
>
> Stop.
>
> MAKING IN noclog
> ----------
> cc -g -I/usr/local/src/nocol-4.01/src/include -L/usr/local/src/nocol-4.01/src/lib -c -DETCDIR=\"/usr/local/nocol/etc\" -DNLOG_HOST=\"zentrale.seicom.net\" -DNOCOL -DMULTIPING noclogd.c
> In file included from /usr/local/src/nocol-4.01/src/include/noclogd.h:18,
> from noclogd.c:86:
> /usr/local/src/nocol-4.01/src/include/nocol.h:37: conflicting types for `sys_errlist'
> /usr/include/stdio.h:245: previous declaration of `sys_errlist'
> *** Error code 1
>
> Stop.
>
>
> Kann mir jemand weiterhelfen, wie dieser Typ-Konflikt behoben werden kann ?

Klar. Das ist ein Paket, das schlauer sein will als das System.
Guck' mal bei Zeile 37 von
/usr/local/src/nocol-4.01/src/include/nocol.h, und ummantele die
Definition von sys_errlist mit

#ifndef BSD
... (Definition)
#endif

Greg
Received on Thu 31 Jul 1997 - 10:26:55 CEST

search this site