Mike.
2011-Jan-21 15:39 UTC
[Nut-upsuser] Building nut 2.6.0 on OpenBSD 4.8 - compile issue
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.
Arjen de Korte
2011-Jan-21 19:15 UTC
[Nut-upsuser] Building nut 2.6.0 on OpenBSD 4.8 - compile issue
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 1In 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)