Menu

#34 function `__nesc_htonbf_int8' does not have the right signat

closed-fixed
5
2006-07-13
2006-06-19
Tom Parker
No

Attempting to compile programs with nesC 1.2.6, I get
the following

/usr/lib/ncc/nesc_nx.h:290: function
`__nesc_htonbf_int8' does not have the right signature
/usr/lib/ncc/nesc_nx.h:290: function
`__nesc_ntohbf_int8' does not have the right signature
/usr/lib/ncc/nesc_nx.h:291: function
`__nesc_htonbf_int16' does not have the right signature
/usr/lib/ncc/nesc_nx.h:291: function
`__nesc_ntohbf_int16' does not have the right signature
/usr/lib/ncc/nesc_nx.h:292: function
`__nesc_htonbf_int32' does not have the right signature
/usr/lib/ncc/nesc_nx.h:292: function
`__nesc_ntohbf_int32' does not have the right signature
/usr/lib/ncc/nesc_nx.h:293: function
`__nesc_htonbf_int64' does not have the right signature
/usr/lib/ncc/nesc_nx.h:293: function
`__nesc_ntohbf_int64' does not have the right signature
/usr/lib/ncc/nesc_nx.h:294: function
`__nesc_htonbf_uint8' does not have the right signature
/usr/lib/ncc/nesc_nx.h:294: function
`__nesc_ntohbf_uint8' does not have the right signature
/usr/lib/ncc/nesc_nx.h:295: function
`__nesc_htonbf_uint16' does not have the right signature
/usr/lib/ncc/nesc_nx.h:295: function
`__nesc_ntohbf_uint16' does not have the right signature
/usr/lib/ncc/nesc_nx.h:296: function
`__nesc_htonbf_uint32' does not have the right signature
/usr/lib/ncc/nesc_nx.h:296: function
`__nesc_ntohbf_uint32' does not have the right signature
/usr/lib/ncc/nesc_nx.h:297: function
`__nesc_htonbf_uint64' does not have the right signature
/usr/lib/ncc/nesc_nx.h:297: function
`__nesc_ntohbf_uint64' does not have the right signature

Changing any of the relevant inline definitions in
nesc_nx.h's length arguments to be an unsigned char
rather than a uint8_t appears to fix the error (after
reading handle_nxbase_attribute() in
src/nesc-semantics.c to get some hints on this), but I
suspect the proper fix needs to be in nesc-semantics.c.
I'm using gcc 4.0.3 (the Debian 4.0.3-3 packages to be
exact).

Discussion

  • Tom Parker

    Tom Parker - 2006-07-13

    Logged In: YES
    user_id=7339

    This appears to be gone in 1.2.7a (possibly earlier). I
    certainly can't reproduce it any more.

     
  • Tom Parker

    Tom Parker - 2006-07-13
    • status: open --> closed-fixed