[Nut-upsdev] Re: "make usb" fails

Peter Selinger selinger at mathstat.dal.ca
Fri Apr 14 22:58:15 UTC 2006


Try

#include <stdint.h>

That is where uint16_t and uint8_t are supposed to be defined. If this
does not fix the error, please indicate what version of the GNU C
Library you have, and what system/compiler you are using. 

Thanks, -- Peter


Carlos Rodrigues wrote:
> 
> On 4/14/06, Carlos Rodrigues <carlos.efr at mail.telepac.pt> wrote:
> > While trying to compile newhidups, I get this error...
> >
> > carlos at rhea:~/dev/nut/svn/trunk$ make usb
> > make[1]: Entering directory `/home/carlos/dev/nut/svn/trunk/drivers'
> > gcc -I../include -O -Wall -Wsign-compare  -c newhidups.c
> > In file included from newhidups.c:25:
> > libhid.h:46: error: syntax error before "u_int16_t"
> > libhid.h:46: warning: useless keyword or type name in empty declaration
> > libhid.h:46: warning: empty declaration
> > libhid.h:50: error: syntax error before "u_int8_t"
> > libhid.h:50: warning: useless keyword or type name in empty declaration
> > libhid.h:50: warning: empty declaration
> > make[1]: *** [newhidups.o] Error 1
> > make[1]: Leaving directory `/home/carlos/dev/nut/svn/trunk/drivers'
> >
> > I can't seem to make this go away.
> 
> Well, commenting out both "ifndef" blocks, it builds, but what I want
> to know is how to get rid of this error without changing the code (am
> I missing something?).
> 
> --
> Carlos Rodrigues
> 
> _______________________________________________
> Nut-upsdev mailing list
> Nut-upsdev at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev
> 




More information about the Nut-upsdev mailing list