[Nut-upsdev] problem with compiling on Cygwin64

Walter Literowich wliterow at gmail.com
Fri Oct 23 00:06:01 UTC 2015


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>

More information about the Nut-upsdev mailing list