[Nut-upsuser] Building nut 2.6.0 on OpenBSD 4.8 - compile issue

Mike. the.lists at mgm51.com
Fri Jan 21 15:39:32 UTC 2011


Trying to build nut 2.6.0 on OpenBSD 4.8, I get a compiler error.


Here's my configure:

./configure --with-user=_ups --with-group=_ups  \ 
       --sysconfdir=/etc/ups   --with-usb=no



... and the result:

-e Configuration summary:
======================
build serial drivers: yes
build USB drivers: no
build SNMP drivers: no
build neon based XML driver: no
build Powerman PDU client driver: no
enable SSL development code: yes
enable libwrap (tcp-wrappers) support: no
build CGI programs: no
enable HAL support: no
build and install documentation: no
build and install the development files: no





The compile goes well until:

Making all in drivers
gmake[1]: Entering directory `/home/downloads/nut/nut-2.6.0/drivers'
gcc -DHAVE_CONFIG_H -I. -I../include    -I../include      -DSHUT_MODE
-g -O2 -Wall -Wsign-compare -MT newmge_shut-usbhid-ups.o -MD -MP -MF
.deps/newmge_shut-usbhid-ups.Tpo -c -o newmge_shut-usbhid-ups.o `test
-f 'usbhid-ups.c' || echo './'`usbhid-ups.c
usbhid-ups.c: In function 'hid_ups_walk':
usbhid-ups.c:1231: error: 'EPROTO' undeclared (first use in this
function)
usbhid-ups.c:1231: error: (Each undeclared identifier is reported only
once
usbhid-ups.c:1231: error: for each function it appears in.)
gmake[1]: *** [newmge_shut-usbhid-ups.o] Error 1
gmake[1]: Leaving directory `/home/downloads/nut/nut-2.6.0/drivers'
gmake: *** [all-recursive] Error 1




Where do I go from here?

Thanks.





More information about the Nut-upsuser mailing list