Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 272295

Summary: net-analyzer/ettercap uses -Werror (with USE=debug maybe?)
Product: Gentoo Linux Reporter: M Cordingley <goldenmouse>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 260867    
Attachments: emerge --info

Description M Cordingley 2009-06-02 17:23:21 UTC
gcc spits out a number of errors and then aborts the process:

ec_text.c: In function 'text_stats':
ec_text.c:468: error: format '%llu' expects type 'long long unsigned int', but argument 3 has type 'u_int64'
ec_text.c:468: error: format '%llu' expects type 'long long unsigned int', but argument 4 has type 'u_int64'
ec_text.c:468: error: format '%llu' expects type 'long long unsigned int', but argument 5 has type 'u_int64'
ec_text.c:482: error: format '%8lld' expects type 'long long int', but argument 3 has type 'u_int64'
ec_text.c:484: error: format '%8lld' expects type 'long long int', but argument 3 has type 'u_int64'
ec_text.c:485: error: format '%8lld' expects type 'long long int', but argument 3 has type 'u_int64'
ec_text.c:485: error: format '%8lld' expects type 'long long int', but argument 4 has type 'u_int64'
ec_text.c:491: error: format '%8lld' expects type 'long long int', but argument 3 has type 'u_int64'
ec_text.c:491: error: format '%8lld' expects type 'long long int', but argument 4 has type 'u_int64'
ec_text.c:493: error: format '%8lld' expects type 'long long int', but argument 3 has type 'u_int64'
ec_text.c:493: error: format '%8lld' expects type 'long long int', but argument 4 has type 'u_int64'

...

ec_text_display.c: In function 'text_print_packet':
ec_text_display.c:57: error: pointer targets in passing argument 2 of 'regexec' differ in signedness


Reproducible: Always

Steps to Reproduce:
1. set features="nostrip" CFLAGS to "-march=nocona -g2 -ggdb -O0 -pipe" and USE="debug" (all other use flags on, too)
2. emerge ettercap
3. watch it die

Actual Results:  
emake failed

Expected Results:  
compiled and installed normally

I have an installed copy of ettercap without the configuration settings described which crashes when I uncomment the iptables options in the conf file and try to start unified sniffing on device wlan0 in GTK mode.  I enabled these options to try to get a better trace on what was going on with the crashes, but I cannot compile it now.
Comment 1 M Cordingley 2009-06-02 17:25:24 UTC
Created attachment 193314 [details]
emerge --info

portage information
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-06-04 18:34:49 UTC
This is due to -Werror usage upstream it seems to me...
Comment 3 M Cordingley 2009-06-04 19:20:30 UTC
Extra notes:  I killed the package-specific make.conf.  No change.  I flipped off the debug use flag...and it worked.  That flag seems to be the main determinant of whether it dies or not.
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2009-06-05 14:01:01 UTC
Thank you for report guys, but this bug was already repored and fixed some time ago.

*** This bug has been marked as a duplicate of bug 260840 ***