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

Carlos Rodrigues carlos.efr at mail.telepac.pt
Fri Apr 14 23:16:08 UTC 2006


It fixes the error. But on the other hand, it throws a bunch of
warnings, several times the following:

In file included from newhidups.c:25:
libhid.h:47: warning: redefinition of `u_int16_t'
/usr/include/sys/types.h:198: warning: `u_int16_t' previously declared here
libhid.h:51: warning: redefinition of `u_int8_t'
/usr/include/sys/types.h:197: warning: `u_int8_t' previously declared here

My system is a standard Debian Sarge, fully updated:

gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
libc6 2.3.2.ds1-22
linux 2.6.8

On 4/14/06, Peter Selinger <selinger at mathstat.dal.ca> wrote:
> 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
> >
>
>


--
Carlos Rodrigues



More information about the Nut-upsdev mailing list