Date: Wed, 31 Jan 2001 20:17:06 +0100 (CET) From: Frank Bartels <knarf@camelot.de> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/24756: net-snmp-4.2 does not compile with LPRng installed Message-ID: <200101311917.f0VJH6I83131@robin.camelot.de>
next in thread | raw e-mail | index | archive | help
>Number: 24756 >Category: ports >Synopsis: net-snmp-4.2 does not compile with LPRng installed >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 31 11:20:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Frank Bartels >Release: FreeBSD 3.5-RELEASE i386 >Organization: CameloT e.K. >Environment: FreeBSD (3.x,4.x) with LPRng and cvsupped ports installed. >Description: net-snmp-4.2 does not compile with LPRng installed. >How-To-Repeat: install lpstat in /usr/local/bin and then try to build net-snmp. cd /usr/ports/sysutils/LPRng && make install clean && cd \\ /usr/ports/net/net-snmp && make install >Fix: It fails in ucd-snmp-4.2/agent/mibgroup/host/hr_print.c because of a missing definition (FILE *p;). This is because of a logical error in the code of hr_print.c which fails if both HAVE_CGETNEXT and HAVE_LPSTAT are defined. --- ucd-snmp-4.2/agent/mibgroup/host/hr_print.c.ORIG Wed Aug 9 16:21:00 2000 +++ ucd-snmp-4.2/agent/mibgroup/host/hr_print.c Wed Jan 31 19:59:53 2001 @@ -187,9 +187,11 @@ { #if HAVE_LPSTAT || HAVE_CGETNEXT || HAVE_PRINTCAP int i; -#if HAVE_CGETNEXT +#if HAVE_LPSTAT + FILE *p; +#elif HAVE_CGETNEXT const char *caps[] = {"/etc/printcap", NULL}; -#elif HAVE_LPSTAT || HAVE_PRINTCAP +#elif HAVE_PRINTCAP FILE *p; #endif >Release-Note: >Audit-Trail: >Unformatted: Frank Bartels To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101311917.f0VJH6I83131>