Problems compiling dsniff under redhat7.1 (2.4.2-2 version)

Problems compiling dsniff under redhat7.1 (2.4.2-2 version)

Post by RDSM » Thu, 25 Oct 2001 08:58:57



I find this package a valuable tool to test for security tools, however I am
having problems compiling it under Red Hat 7.1 version 2.4.2-2. I have
installed all of the necessary packages, but I still get the following error
when I try to compile it using make.......

# make
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD
-DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN
-DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include
-I/usr/include/pcap  -I/usr/include/db2  -I/usr/X11R6/include -I./missing
-c ./sshow.c
 In file included from ./sshow.c:20:
 /usr/include/netinet/in.h:133: warning: redefinition of `u_int32_t'
 /usr/include/sys/types.h:192: warning: `u_int32_t' previously declared here
./sshow.c: In function `client_to_server':
./sshow.c:225: `CLK_TCK' undeclared (first use in this function)
./sshow.c:225: (Each undeclared identifier is reported only once
./sshow.c:225: for each function it appears in.)
./sshow.c: In function `server_to_client':
./sshow.c:273: `CLK_TCK' undeclared (first use in this function)
make: *** [sshow.o] Error 1

I am not sure why the make is failing, but I am hoping anyone can shed some
light to me. I would appreciate any help

 
 
 

Problems compiling dsniff under redhat7.1 (2.4.2-2 version)

Post by Dean Thompso » Sat, 27 Oct 2001 16:18:28


Hi!,

Quote:> I find this package a valuable tool to test for security tools, however I
> am having problems compiling it under Red Hat 7.1 version 2.4.2-2. I have
> installed all of the necessary packages, but I still get the following
> error when I try to compile it using make.......

> # make
> gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD
> -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN
> -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include
> -I/usr/include/pcap  -I/usr/include/db2  -I/usr/X11R6/include -I./missing
> -c ./sshow.c
>  In file included from ./sshow.c:20:
>  /usr/include/netinet/in.h:133: warning: redefinition of `u_int32_t'
>  /usr/include/sys/types.h:192: warning: `u_int32_t' previously declared here
> ./sshow.c: In function `client_to_server':
> ./sshow.c:225: `CLK_TCK' undeclared (first use in this function)
> ./sshow.c:225: (Each undeclared identifier is reported only once
> ./sshow.c:225: for each function it appears in.)
> ./sshow.c: In function `server_to_client':
> ./sshow.c:273: `CLK_TCK' undeclared (first use in this function)
> make: *** [sshow.o] Error 1

> I am not sure why the make is failing, but I am hoping anyone can shed some
> light to me. I would appreciate any help

Check to make sure that you have all the headers in place and that they are
the correct headers for the correction Linux version.  You might like to take
a look in the /usr/include/time.h file and see whether or not the definotion
of CLK_TCK is present.  I can see it in my distribution of Redhat 7.1.

See ya

Dean Thompson

--
+____________________________+____________________________________________+

| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+

 
 
 

Problems compiling dsniff under redhat7.1 (2.4.2-2 version)

Post by Ra » Sat, 03 Nov 2001 11:22:56



> I find this package a valuable tool to test for security tools, however I am
> having problems compiling it under Red Hat 7.1 version 2.4.2-2. I have
> installed all of the necessary packages, but I still get the following error
> when I try to compile it using make.......

> # make
> gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD
> -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN
> -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include
> -I/usr/include/pcap  -I/usr/include/db2  -I/usr/X11R6/include -I./missing
> -c ./sshow.c
>  In file included from ./sshow.c:20:
>  /usr/include/netinet/in.h:133: warning: redefinition of `u_int32_t'
>  /usr/include/sys/types.h:192: warning: `u_int32_t' previously declared here
> ./sshow.c: In function `client_to_server':
> ./sshow.c:225: `CLK_TCK' undeclared (first use in this function)
> ./sshow.c:225: (Each undeclared identifier is reported only once
> ./sshow.c:225: for each function it appears in.)
> ./sshow.c: In function `server_to_client':
> ./sshow.c:273: `CLK_TCK' undeclared (first use in this function)
> make: *** [sshow.o] Error 1

> I am not sure why the make is failing, but I am hoping anyone can shed some
> light to me. I would appreciate any help

Add

#include <bits/time.h>
to the include section of sshow.c

That should fix your error.

Later,

RayW

 
 
 

1. Problems compiling dsniff under redhat7.1 (2.4.2-2 version)

I find this package a valuable tool to test for security holes, however I am
having problems compiling it under Red Hat 7.1 version 2.4.2-2. I have
installed all of the necessary packages, but I still get the following error
when I try to compile it using make.......

# make
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD
-DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN
-DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include
-I/usr/include/pcap  -I/usr/include/db2  -I/usr/X11R6/include -I./missing
-c ./sshow.c
 In file included from ./sshow.c:20:
 /usr/include/netinet/in.h:133: warning: redefinition of `u_int32_t'
 /usr/include/sys/types.h:192: warning: `u_int32_t' previously declared here
./sshow.c: In function `client_to_server':
./sshow.c:225: `CLK_TCK' undeclared (first use in this function)
./sshow.c:225: (Each undeclared identifier is reported only once
./sshow.c:225: for each function it appears in.)
./sshow.c: In function `server_to_client':
./sshow.c:273: `CLK_TCK' undeclared (first use in this function)
make: *** [sshow.o] Error 1

I am not sure why the make is failing, but I am hoping anyone can shed some
light to me. I would appreciate any help

2. searching driver for HP InkJet690C

3. Backup unit

4. PPP version 2.3.5-2 (.deb) problem

5. ReiserFS 2 of 13, please apply

6. Problems compiling libmcrypt-2.4.15-2 from src rpm

7. OS?

8. Problem Re-compiling 2.4.2-2 on RH 7.1

9. installing Pc-tel , I56PSP-F1 on RH 7.1 , kernel version 2.4.2-2

10. Compiling Mozilla with glib-2.x and gtk+-2.x ???

11. 2.4.2-2 kernel compiles-won't load - RH 7.1

12. Compiling Dsniff...problems