I am trying to compile the latest nut version on Cygwin64 and have run into his issue Any Ideas?? gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/include/neon -g -O2 -Wall -Wsign-compare -MT genericups.o -MD -MP -MF $depbase.Tpo -c -o genericups.o genericups.c &&\ mv -f $depbase.Tpo $depbase.Po In file included from genericups.c:24:0: genericups.h:147:4: error: 'TIOCM_ST' undeclared here (not in a function) TIOCM_ST /* shutdown: ST */ ^ genericups.c: In function 'parse_output_signals': genericups.c:66:9: error: invalid operands to binary | (have 'int' and 'struct <anonymous> *') *line |= TIOCM_ST; ^ genericups.c:66:3: warning: statement with no effect [-Wunused-value] *line |= TIOCM_ST; ^ genericups.c: In function 'upsdrv_shutdown': genericups.c:280:12: warning: comparison between pointer and integer if (flags == TIOCM_ST) { ^ Makefile:1448: recipe for target 'genericups.o' failed make[1]: *** [genericups.o] Error 1 make[1]: Leaving directory '/cygdrive/c/nut/drivers' Makefile:513: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20151022/5ee17878/attachment-0001.html>
[please use reply-all to include the list - the NUT lists do not add a reply-to header.] On Oct 22, 2015, at 8:06 PM, Walter Literowich <wliterow at gmail.com> wrote:> > In file included from genericups.c:24:0: > genericups.h:147:4: error: ?TIOCM_ST? undeclared here (not in a function) > TIOCM_ST /* shutdown: ST */ >The "TIOCM_ST" flag should be defined in sys/termios.h - what did the ./configure script print when looking for that header? If you don't need the serial drivers, you can build just a subset of them as follows: ./configure --with-drivers=dummy-ups,usbhid-ups -- Charles Lepple clepple at gmail