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

Arjen de Korte nut+users at de-korte.org
Fri Jan 21 19:15:08 UTC 2011


Citeren "Mike." <the.lists op mgm51.com>:

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

[...]

> 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

In the usbhid-ups driver this line is a no-op, so I suggest to comment  
it out. Question remains why this happens. Either OpenBSD 4.8 is not  
POSIX compliant or we're not including the right headers. Could you  
run a grep on your /usr/include directory (or whatever it may be  
called in OpenBSD) for EPROTO?

Best regards, Arjen
-- 
Please keep list traffic on the list (off-list replies will be rejected)




More information about the Nut-upsuser mailing list