ArgusSource.c:310:15: error: ‘PCAP_ERROR_PROMISC_PERM_DENIED’ undeclared (first use in this function)

Carter Bullard carter at qosient.com
Mon Jun 1 07:21:48 EDT 2015


Hey Monah,
This patch fixes your compile error:

==== //depot/argus/argus/argus/ArgusSource.c#132 - /Users/carter/argus/argus/argus/ArgusSource.c ====
309a310
> #if defined(PCAP_ERROR_PROMISC_PERM_DENIED)
310a312
> #endif
320a323
> #if defined(PCAP_WARNING_TSTAMP_TYPE_NOTSUP)
321a325
> #endif

I’ve also included a new ArgusSource.c in case you’re not familiar with patch.1.
Send email if this does or does not fix your problem,

Carter

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ArgusSource.c
Type: application/octet-stream
Size: 152324 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20150601/5ace5386/attachment.obj>
-------------- next part --------------


> On Jun 1, 2015, at 6:00 AM, Monah Baki <monahbaki at gmail.com> wrote:
> 
> Morning Carter,
> 
> Any updates on the patch?
> 
> Thanks
> Monah
> 
> On Fri, May 29, 2015 at 3:35 PM, Carter Bullard <carter at qosient.com> wrote:
> Hey Monah,
> There should be #ifdef's for these variables.  I'm traveling until Sun ... And can send a patch then. 
> Carter
> 
> 
> On May 29, 2015, at 8:37 PM, Monah Baki <monahbaki at gmail.com> wrote:
> 
>> Hi All,
>> 
>> 
>> Compiling Argus in a virtualbox environment on Ubuntu 12.04.5 LTS
>> 
>> Linux devsrvr 3.13.0-32-generic #57~precise1-Ubuntu SMP Tue Jul 15 03:50:54 UTC 2014 i686 i686 i386 GNU/Linux
>> 
>> When running make:
>> ### Making in /home/mbaki/argus-3.0.8.1/common
>> make[1]: Entering directory `/home/mbaki/argus-3.0.8.1/common'
>> make[1]: Nothing to be done for `all'.
>> make[1]: Leaving directory `/home/mbaki/argus-3.0.8.1/common'
>> ### Done with /home/mbaki/argus-3.0.8.1/common
>> ### Making in /home/mbaki/argus-3.0.8.1/argus
>> make[1]: Entering directory `/home/mbaki/argus-3.0.8.1/argus'
>> gcc -O -I. -I/usr/include -I./../include  -DHAVE_CONFIG_H -c ArgusSource.c
>> ArgusSource.c: In function ‘ArgusOpenInterface’:
>> ArgusSource.c:310:15: error: ‘PCAP_ERROR_PROMISC_PERM_DENIED’ undeclared (first use in this function)
>> ArgusSource.c:310:15: note: each undeclared identifier is reported only once for each function it appears in
>> ArgusSource.c:321:15: error: ‘PCAP_WARNING_TSTAMP_TYPE_NOTSUP’ undeclared (first use in this function)
>> make[1]: *** [ArgusSource.o] Error 1
>> make[1]: Leaving directory `/home/mbaki/argus-3.0.8.1/argus'
>> ### Done with /home/mbaki/argus-3.0.8.1/argus
>> ### Making in /home/mbaki/argus-3.0.8.1/events
>> make[1]: Entering directory `/home/mbaki/argus-3.0.8.1/events'
>> make[1]: Nothing to be done for `all'.
>> make[1]: Leaving directory `/home/mbaki/argus-3.0.8.1/events'
>> ### Done with /home/mbaki/argus-3.0.8.1/events
>> 
>> 
>> eth0      Link encap:Ethernet  HWaddr 08:00:27:cc:04:80  
>>           inet addr:10.254.100.246  Bcast:10.254.100.255  Mask:255.255.255.0
>>           inet6 addr: fe80::a00:27ff:fecc:480/64 Scope:Link
>>           UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
>>           RX packets:625231 errors:0 dropped:422 overruns:0 frame:0
>>           TX packets:554068 errors:0 dropped:0 overruns:0 carrier:0
>>           collisions:0 txqueuelen:1000 
>>           RX bytes:162240718 (162.2 MB)  TX bytes:132712698 (132.7 MB)
>> 
>> 
>> 
>> Thank you
>> Monah
>> 
> 



More information about the argus mailing list