pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45120: sysutils/apcupsd build failure on i386 NetBSD-4.0_STABLE, -5.1_STABLE



>Number:         45120
>Category:       pkg
>Synopsis:       sysutils/apcupsd build failure on i386 NetBSD-4.0_STABLE, 
>-5.1_STABLE
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 05 00:30:00 +0000 2011
>Originator:     John D. Baker
>Release:        4.0_STABLE, 5.1_STABLE, pkgsrc-current (pre-2011Q2)
>Organization:
>Environment:
NetBSD detox.technoskunk.fur 4.0_STABLE NetBSD 4.0_STABLE (DETOX) #23: Tue May 
10 14:40:06 CDT 2011  
sysop%detox.technoskunk.fur@localhost:/r0/build/netbsd-4/obj/i386/sys/arch/i386/compile/DETOX
 i386

NetBSD yggdrasil.technoskunk.fur 5.1_STABLE NetBSD 5.1_STABLE (YGGDRASIL) #0: 
Mon Jul  4 16:44:36 CDT 2011  
sysop%verthandi.technoskunk.fur@localhost:/d0/build/netbsd-5/obj/i386/sys/arch/i386/compile/YGGDRASIL
 i386

>Description:
Building sysutils/apcupsd fails on NetBSD-4.0_STABLE, 5.1_STABLE/i386
as follows:

[...]
c++ -c -I/usr/pkg/include -I/usr/include -I/usr/local/include -fno-exceptions 
-fno-rtti -O2 -I/usr/pkg/include -I/usr/include -Wall -pthread  
-I/d0/build/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.3/include   
powernet-mib-mgr.c
snmp.h:82: error: expected unqualified-id before numeric constant
snmp.h:82: error: abstract declarator 'void*' used as declaration
snmp.h:82: error: expected ';' before numeric constant
*** Error code 1

Stop.
make: stopped in 
/d0/build/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.3/src/drivers/snmp
*** Error code 1

Stop.
make: stopped in 
/d0/build/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.3/src/drivers
*** Error code 1

Stop.
make: stopped in /d0/build/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.3/src
*** Error code 1

Stop.
make: stopped in /d0/build/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.3
*** Error code 1

Stop.
make: stopped in /d0/nbsd/pkgsrc/sysutils/apcupsd
*** Error code 1

Stop.
make: stopped in /d0/nbsd/pkgsrc/sysutils/apcupsd



The problem is a structure member definition:

  void *MIB;

But in /usr/pkg/include/net-snmp/library/mib.h, this is a macro:

  #define MIB NETSNMP_MIB2_OID

Which is a further macro:

  #define NETSNMP_MIB2_OID 1, 3, 6, 1, 2, 1

So it's right to complain, how do you declare a void* to that?
Maybe it really wants to be an enumerated type?
>How-To-Repeat:
Attempt to build sysutils/apcupsd on NetBSD-4.0_STABLE, -5.1_STABLE/i386.

>Fix:



Home | Main Index | Thread Index | Old Index