Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

1.1.1 RC5 build error on Linux/2.4.20

From: proletariat <prole(at)redgeek.net>
Date: Sun Jul 06 2003 - 17:03:03 EDT

$ make 2>&1 | grep raw
gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c libnet_raw.c

libnet_raw.c: In function `libnet_open_raw6':
libnet_raw.c:139: `oneptr' undeclared (first use in this function)
libnet_raw.c:139: (Each undeclared identifier is reported only once
libnet_raw.c:139: for each function it appears in.)
libnet_raw.c:139: `one' undeclared (first use in this function)
make[1]: *** [libnet_raw.o] Error 1

offending section:
int
libnet_open_raw6(libnet_t *l)
{
#if !(__WIN32__)
#if (__svr4__)

     void *oneptr = &one;
#endif /* __svr4__ */
#else

    BOOL one;
#endif

   /* ... snip ... */

#if (__linux__)

    if (setsockopt(l->fd, SOL_SOCKET, SO_BROADCAST, oneptr, sizeof(one)) == -1)     {

        snprintf(l->err_buf, LIBNET_ERRBUF_SIZE,
                "libnet_open_raw6(): set SO_BROADCAST failed: %s\n",
                strerror(errno));
        goto bad;

    }
#endif /* __linux__ */
Do you need help?X

This compiles for me (don't have ipv6 setup yet to test):

------>8 ---- snip ---- 8<-------
--- libnet_raw.c.orig   2003-07-06 13:37:45.000000000 -0700
+++ libnet_raw.c        2003-07-06 13:55:14.000000000 -0700
@@ -114,7 +114,10 @@
 #if !(__WIN32__)
 #if (__svr4__)

      void *oneptr = &one;
-#endif /* __svr4__ */

+#elif (__linux__)
+     int   one = 1;
+     void *oneptr = &one;
+#endif  /* __svr4__ / __linux__ */
 #else
     BOOL one;

 #endif
------>8 ---- snip ---- 8<-------

_p

-- 
             
prole(at)redgeek.net }-=-{ 
http://www.redgeek.net            

---------------------------------------------------------------------
To unsubscribe, e-mail: libnet-unsubscribe@securityfocus.com
For additional commands, e-mail: libnet-help@securityfocus.com
Received on Sun Jul 6 17:27:59 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:24 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library