Netinet6

From: Aaron Dalton (aaron_at_finch.st)
Date: 10/31/03

  • Next message: Mike Hogsett: "Re: removing tripwire reports"
    To: freebsd-questions@freebsd.org
    Date: Fri, 31 Oct 2003 12:15:03 -0700
    
    

    I have been trying to compile some C++ socket code. I get the same
    errors with multiple software packages so I'm thinking it's something
    FreeBSD-related. I am a BSD newb so I would appreciate any advice you
    could give me. Below are the errors themselves. Thank you so much for
    your time.

    -BEGIN COMPILER OUTPUT

    gcc -Wall -fPIC -I../include -funroll-all-loops -ffast-math
    -fomit-frame-pointer -O2 -D_GNU_SOURCE -D_REENTRANT -c loopback.c
    In file included from nlinternal.h:31,
                     from loopback.c:33:
    /usr/include/malloc.h:2: warning: #warning "this file includes
    <malloc.h> which is deprecated, use <stdlib.h> instead"
    In file included from loopback.c:51:
    /usr/include/netinet/in.h:235: syntax error before `in_addr_t'
    /usr/include/netinet/in.h:287: syntax error before `u_char'
    In file included from /usr/include/netinet/in.h:469,
                     from loopback.c:51:
    /usr/include/netinet6/in6.h:122: syntax error before `u_int8_t'
    /usr/include/netinet6/in6.h:144: syntax error before `u_int8_t'
    /usr/include/netinet6/in6.h:149: syntax error before `u_int32_t'
    /usr/include/netinet6/in6.h:612: syntax error before `*'
    /usr/include/netinet6/in6.h:613: warning: type defaults to `int' in
    declaration of `inet6_option_append'
    /usr/include/netinet6/in6.h:614: syntax error before `*'
    /usr/include/netinet6/in6.h:614: warning: type defaults to `int' in
    declaration of `inet6_option_alloc'
    /usr/include/netinet6/in6.h:614: warning: data definition has no type or
    storage class
    /usr/include/netinet6/in6.h:615: syntax error before `u_int8_t'
    /usr/include/netinet6/in6.h:616: syntax error before `u_int8_t'
    /usr/include/netinet6/in6.h:631: syntax error before `u_int8_t'
    /usr/include/netinet6/in6.h:636: syntax error before `u_int8_t'
    /usr/include/netinet6/in6.h:638: syntax error before `u_int8_t'
    loopback.c: In function `loopback_Read':
    loopback.c:480: warning: implicit declaration of function `ntohs'
    loopback.c: In function `loopback_WritePacket':
    loopback.c:556: warning: implicit declaration of function `htons'
    *** Error code 1

    Stop in /home/aaron/Desktop/hawknl/src.

    -END COMPILER OUTPUT

    -- 
    Aaron Dalton
    aaron@finch.st
    http://aaron.finch.st
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Mike Hogsett: "Re: removing tripwire reports"

    Relevant Pages

    • Re: Windowed-sinc function
      ... >>> fc is the cutoff frequency expressed as a fraction ... When using C, always use compiler warnings. ... wsinc2.c:6: warning: implicit declaration of function `atan' ...
      (comp.dsp)
    • Re: any error in the code
      ... the programmer to get this right in the first place. ... Win32 box, because my Linux-based compiler simply isn't interested, no ... even with no options I get "warning: ... implicit declaration of built-in function 'strlen'". ...
      (comp.lang.c)
    • Re: Newbie question on time()
      ... Just using your compiler to determine the ... int intResult = 0; ... perhaps you should increase the warning level. ... implicit declaration of function 'srand' ...
      (comp.lang.c)
    • Re: 2.6.15-rc5-mm3 (new build failure)
      ... Config is http://ftp.kernel.org/pub/linux/kernel/people/mbligh/config/abat/elm3b67 ... include/linux/compiler.h:46: #error Sorry, your compiler is too old/not recognized. ... include/asm/bitops.h:380: warning: implicit declaration of function `__builtin_expect' ...
      (Linux-Kernel)
    • Re: worst.c - foolishness
      ... >> I specified the compiler and commands to use. ... worst.c:19: warning: initialization discards qualifiers from ... worst.c:23: warning: implicit declaration of function `getchar' ...
      (comp.lang.c)