Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136367 - aircrack-2.41: gcc-4.1/linux-headers compile fix patch
Summary: aircrack-2.41: gcc-4.1/linux-headers compile fix patch
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL: http://article.gmane.org/gmane.linux....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-11 02:42 UTC by Andrea Ratto
Modified: 2006-07-18 17:42 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gcc-4 patch (aircrack-2.41-gcc4.diff,455 bytes, patch)
2006-06-11 02:46 UTC, Andrea Ratto
Details | Diff
changes to the ebuild (aircrack-2.41-r1.ebuild.diff,324 bytes, patch)
2006-06-11 02:48 UTC, Andrea Ratto
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Ratto 2006-06-11 02:42:07 UTC
I could not recompile aircrack after the upgrade from gcc-3.4 to gcc 4.1. I investigated the error and found a quick solution, please review and apply.
patches follow.
Comment 1 Andrea Ratto 2006-06-11 02:46:30 UTC
Created attachment 88885 [details, diff]
gcc-4 patch
Comment 2 Andrea Ratto 2006-06-11 02:48:45 UTC
Created attachment 88886 [details, diff]
changes to the ebuild
Comment 3 SpanKY gentoo-dev 2006-06-11 03:23:03 UTC
that looks like a linux-headers bug, not a gcc-4.1 bug
Comment 4 Andrea Ratto 2006-06-11 10:24:30 UTC
so it probably is, i also upgraded linux-headers to 2.6.16.
Should i re-post this or do something?
Anyway theese patches provide a quick and dirty fix and also aircrack-ng suffers the same problem.
Comment 5 Marcelo Goes (RETIRED) gentoo-dev 2006-06-11 10:25:11 UTC
Is this a problem with aircrack-ng too?
Aircrack-ng replaces aircrack, which I intend to remove from the tree eventually.
Comment 6 Andrea Ratto 2006-06-11 10:35:16 UTC
aircrack-ng fails to compile too, it seems to me because of the same linux-headers problem. The error message is very similar if not the same.
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2006-06-11 10:44:46 UTC
Post compile errors please.
Comment 8 Andrea Ratto 2006-06-11 12:13:31 UTC
>>> Compiling source in /var/tmp/portage/aircrack-ng-0.5-r1/work/aircrack-ng-0.5 ...
x86_64-pc-linux-gnu-gcc -Os -falign-jumps -falign-loops -freorder-blocks -frename-registers -fweb -falign-jumps -falign-loops -freorder-blocks -ftree-vectorize -fno-ident -march=k8 -pipe -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 src/aircrack-ng.c src/crypto.c src/sha1-mmx.S src/common.c -o aircrack-ng -lpthread
x86_64-pc-linux-gnu-gcc -Os -falign-jumps -falign-loops -freorder-blocks -frename-registers -fweb -falign-jumps -falign-loops -freorder-blocks -ftree-vectorize -fno-ident -march=k8 -pipe -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 src/airdecap-ng.c src/crypto.c src/common.c -o airdecap-ng
x86_64-pc-linux-gnu-gcc -Os -falign-jumps -falign-loops -freorder-blocks -frename-registers -fweb -falign-jumps -falign-loops -freorder-blocks -ftree-vectorize -fno-ident -march=k8 -pipe -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 src/arpforge-ng.c src/common.c -o arpforge-ng
x86_64-pc-linux-gnu-gcc -Os -falign-jumps -falign-loops -freorder-blocks -frename-registers -fweb -falign-jumps -falign-loops -freorder-blocks -ftree-vectorize -fno-ident -march=k8 -pipe -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 src/aireplay-ng.c src/common.c -o aireplay-ng
In file included from /usr/include/sys/types.h:8,
                 from src/aireplay-ng.c:27:
/usr/include/gentoo-multilib/amd64/sys/types.h:46: error: conflicting types for 
Comment 9 Andrea Ratto 2006-06-11 12:13:31 UTC
>>> Compiling source in /var/tmp/portage/aircrack-ng-0.5-r1/work/aircrack-ng-0.5 ...
x86_64-pc-linux-gnu-gcc -Os -falign-jumps -falign-loops -freorder-blocks -frename-registers -fweb -falign-jumps -falign-loops -freorder-blocks -ftree-vectorize -fno-ident -march=k8 -pipe -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 src/aircrack-ng.c src/crypto.c src/sha1-mmx.S src/common.c -o aircrack-ng -lpthread
x86_64-pc-linux-gnu-gcc -Os -falign-jumps -falign-loops -freorder-blocks -frename-registers -fweb -falign-jumps -falign-loops -freorder-blocks -ftree-vectorize -fno-ident -march=k8 -pipe -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 src/airdecap-ng.c src/crypto.c src/common.c -o airdecap-ng
x86_64-pc-linux-gnu-gcc -Os -falign-jumps -falign-loops -freorder-blocks -frename-registers -fweb -falign-jumps -falign-loops -freorder-blocks -ftree-vectorize -fno-ident -march=k8 -pipe -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 src/arpforge-ng.c src/common.c -o arpforge-ng
x86_64-pc-linux-gnu-gcc -Os -falign-jumps -falign-loops -freorder-blocks -frename-registers -fweb -falign-jumps -falign-loops -freorder-blocks -ftree-vectorize -fno-ident -march=k8 -pipe -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 src/aireplay-ng.c src/common.c -o aireplay-ng
In file included from /usr/include/sys/types.h:8,
                 from src/aireplay-ng.c:27:
/usr/include/gentoo-multilib/amd64/sys/types.h:46: error: conflicting types for loff_t
/usr/include/linux/types.h:74: error: previous declaration of loff_t was here
/usr/include/gentoo-multilib/amd64/sys/types.h:62: error: conflicting types for dev_t
/usr/include/linux/types.h:27: error: previous declaration of dev_t was here
In file included from /usr/include/time.h:8,
                 from /usr/include/gentoo-multilib/amd64/sys/types.h:133,
                 from /usr/include/sys/types.h:8,
                 from src/aireplay-ng.c:27:
/usr/include/gentoo-multilib/amd64/time.h:105: error: conflicting types for timer_t
/usr/include/linux/types.h:45: error: previous declaration of timer_t was hereIn file included from /usr/include/sys/types.h:8,
                 from src/aireplay-ng.c:27:
/usr/include/gentoo-multilib/amd64/sys/types.h:198: error: conflicting types for int64_t
/usr/include/linux/types.h:142: error: previous declaration of int64_t was here
/usr/include/gentoo-multilib/amd64/sys/types.h:204: error: conflicting types for u_int64_t
/usr/include/linux/types.h:141: error: previous declaration of u_int64_t was here
In file included from /usr/include/sys/select.h:8,
                 from /usr/include/gentoo-multilib/amd64/sys/types.h:220,
                 from /usr/include/sys/types.h:8,
                 from src/aireplay-ng.c:27:
/usr/include/gentoo-multilib/amd64/sys/select.h:78: error: conflicting types for fd_set
/usr/include/linux/types.h:24: error: previous declaration of fd_set was here
In file included from /usr/include/stdint.h:8,
                 from /usr/include/gentoo-multilib/amd64/netinet/in.h:23,
                 from /usr/include/netinet/in.h:8,
                 from /usr/include/gentoo-multilib/amd64/arpa/inet.h:23,
                 from /usr/include/arpa/inet.h:8,
                 from src/aireplay-ng.c:32:
/usr/include/gentoo-multilib/amd64/stdint.h:56: error: conflicting types for uint64_t
/usr/include/linux/types.h:140: error: previous declaration of uint64_t was here
make: *** [aireplay-ng] Error 1

!!! ERROR: net-wireless/aircrack-ng-0.5-r1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  aircrack-ng-0.5-r1.ebuild, line 25:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 10 cygeus 2006-06-24 06:53:14 UTC
According to a thread on the aircrack-ng forums[0], this problem is solved in aircrack-ng 0.6. I haven't tested it yet, but I will do after my exams.

[O] http://tinyshell.be/aircrackng/forum/index.php?topic=81.0
Comment 11 Marcelo Goes (RETIRED) gentoo-dev 2006-07-18 17:42:45 UTC
Thanks for your work, but I cannot reproduce your problem with net-analyzer/aircrack-ng and net-analyzer/aircrack is pending removal from the tree, so I am inclined not to apply the patch.
Please reopen this bug if I am made a mistake.