[Winpcap-users] building pcaplib & rpcap in Linux

Gianluca Varenni gianluca.varenni at cacetech.com
Tue Apr 27 14:00:08 PDT 2010


4.0 definitely worked, and I'm pretty sure that most of the 4.1 beta's did.

GV


From: Patrick Masotta 
Sent: Tuesday, April 27, 2010 12:18 PM
To: winpcap-users at winpcap.org 
Subject: Re: [Winpcap-users] building pcaplib & rpcap in Linux


      it fails building pcaplib ! the whole thing is broken under Linux...
      is there any starting point where both components (pcaplib / rpcapd) compiled under Linux?

      thanks for your answer
      Pat

      --- On Tue, 4/27/10, Gianluca Varenni <gianluca.varenni at cacetech.com> wrote:


        From: Gianluca Varenni <gianluca.varenni at cacetech.com>
        Subject: Re: [Winpcap-users] building pcaplib & rpcap in Linux
        To: winpcap-users at winpcap.org
        Date: Tuesday, April 27, 2010, 8:26 AM


        Patric,

        we are aware of the issue with compiling rpcapd and winpcap under linux.  Unfortunately at the moment we do not have an official maintainer for the remote capture features, so bugs in this area take a long time to be fixed. Are you able to provide a fix to the issue?

        Have a nice day
        GV


        From: Patrick Masotta 
        Sent: Tuesday, April 27, 2010 4:09 AM
        To: winpcap-users at winpcap.org 
        Subject: [Winpcap-users] building pcaplib & rpcap in Linux


              compiling pcaplib & rpcap in Linux (Ubuntu) from the 4.1.1 sources
              http://www.winpcap.org/install/bin/WpcapSrc_4_1_1.zip
              also tried the one with 64bit support...
              http://www.winpcap.org/install/bin/WpcapSrc_4_1_build_1327.zip

              building pcaplib
              ./configure (OK, no problems)

              I change in the generated Makefile

              @V_HAVE_REMOTE@ |-> -DHAVE_REMOTE
              REMOTESRC = @V_REMOTE_FILES@ |-> REMOTESRC = pcap-new.c pcap-remote.c sockutils.c

              make (gives errors)

              gcc -O2 -fPIC -I.  -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))" -DHAVE_REMOTE -c ./pcap-linux.c
              ./pcap-linux.c: In function ‘pcap_create’:
              ./pcap-linux.c:322: warning: passing argument 1 of ‘pcap_opensource_remote’ from incompatible pointer type
              ./pcap-linux.c:322: error: too many arguments to function ‘pcap_opensource_remote’
              ./pcap-linux.c:322: warning: assignment makes pointer from integer without a cast
              ./pcap-linux.c:327: error: ‘snaplen’ undeclared (first use in this function)
              ./pcap-linux.c:327: error: (Each undeclared identifier is reported only once
              ./pcap-linux.c:327: error: for each function it appears in.)
              ./pcap-linux.c:328: error: ‘to_ms’ undeclared (first use in this function)
              ./pcap-linux.c:329: error: ‘promisc’ undeclared (first use in this function)
              ./pcap-linux.c:339: error: ‘p’ undeclared (first use in this function)
              make: *** [pcap-linux.o] Error 1

              I read the reason could be:
              WinPcap's modified pcap-linux.c has been updated for the new libpcap  
              1.0 APIs; its modified pcap-bpf.c has not been.


              where can I find sources not broken for compiling pcaplib & rpcap in Linux???
              thanks a lot
              Pat

             




------------------------------------------------------------------------


        _______________________________________________
        Winpcap-users mailing list
        Winpcap-users at winpcap.org
        https://www.winpcap.org/mailman/listinfo/winpcap-users


        -----Inline Attachment Follows-----


        _______________________________________________
        Winpcap-users mailing list
        Winpcap-users at winpcap.org
        https://www.winpcap.org/mailman/listinfo/winpcap-users
     




--------------------------------------------------------------------------------


_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20100427/f6f98e41/attachment.htm 


More information about the Winpcap-users mailing list