sf3978
IPPF-Promi
Anhang anzeigen 48519Im Anhang ein Patch für ettercap (binary only), ein Netzwerktool für die performante Box. Die libnet gibt es mit dem 2. Patch aus dem Anhang.
Anhänge
Zuletzt bearbeitet:
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
Making all in src
make[2]: Betrete Verzeichnis '/home/andreas2/freetz/freetz-stable-1.2/source/target-mipsel_uClibc-0.9.29/libnet-1.1.4/src'
/bin/bash ../libtool --tag=CC --mode=compile /home/andreas2/freetz/freetz-stable-1.2/toolchain/build/mipsel_gcc-4.4.6_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../include -march=4kc -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o libnet_asn1.lo libnet_asn1.c
/bin/bash ../libtool --tag=CC --mode=compile /home/andreas2/freetz/freetz-stable-1.2/toolchain/build/mipsel_gcc-4.4.6_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../include -march=4kc -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o libnet_build_802.1q.lo libnet_build_802.1q.c
/home/andreas2/freetz/freetz-stable-1.2/toolchain/build/mipsel_gcc-4.4.6_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../include -march=4kc -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c libnet_asn1.c -fPIC -DPIC -o .libs/libnet_asn1.o
/home/andreas2/freetz/freetz-stable-1.2/toolchain/build/mipsel_gcc-4.4.6_uClibc-0.9.29/mipsel-linux-uclibc/bin/mipsel-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../include -march=4kc -Os -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c libnet_build_802.1q.c -fPIC -DPIC -o .libs/libnet_build_802.1q.o
In file included from ../include/libnet.h:122,
from libnet_build_802.1q.c:37:
../include/./libnet/libnet-headers.h:665: error: duplicate member 'ip_v'
../include/./libnet/libnet-headers.h:666: error: duplicate member 'ip_hl'
../include/./libnet/libnet-headers.h:1110: error: duplicate member 'isl_user'
../include/./libnet/libnet-headers.h:1111: error: duplicate member 'isl_type'
../include/./libnet/libnet-headers.h:1546: error: duplicate member 'th_off'
../include/./libnet/libnet-headers.h:1547: error: duplicate member 'th_x2'
../include/./libnet/libnet-headers.h:1657: error: duplicate member 'vrrp_t'
../include/./libnet/libnet-headers.h:1658: error: duplicate member 'vrrp_v'
../include/./libnet/libnet-headers.h:1658: error: duplicate member '({anonymous})'
make[2]: *** [libnet_build_802.1q.lo] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
In file included from ../include/libnet.h:122,
from libnet_asn1.c:60:
../include/./libnet/libnet-headers.h:665: error: duplicate member 'ip_v'
../include/./libnet/libnet-headers.h:666: error: duplicate member 'ip_hl'
../include/./libnet/libnet-headers.h:1110: error: duplicate member 'isl_user'
../include/./libnet/libnet-headers.h:1111: error: duplicate member 'isl_type'
../include/./libnet/libnet-headers.h:1546: error: duplicate member 'th_off'
../include/./libnet/libnet-headers.h:1547: error: duplicate member 'th_x2'
../include/./libnet/libnet-headers.h:1657: error: duplicate member 'vrrp_t'
../include/./libnet/libnet-headers.h:1658: error: duplicate member 'vrrp_v'
../include/./libnet/libnet-headers.h:1658: error: duplicate member '({anonymous})'
make[2]: *** [libnet_asn1.lo] Fehler 1
make[2]: Verlasse Verzeichnis '/home/andreas2/freetz/freetz-stable-1.2/source/target-mipsel_uClibc-0.9.29/libnet-1.1.4/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/home/andreas2/freetz/freetz-stable-1.2/source/target-mipsel_uClibc-0.9.29/libnet-1.1.4'
ERROR: Build failed.
make: *** [source/target-mipsel_uClibc-0.9.29/libnet-1.1.4/src/.libs/libnet.so.1.5.0] Fehler 1
Warum die Lib-Patches angepasst? Gibt es die eine oder andere library nocht nicht im Freetz-stable-1.2, denn immerhin ist schon mehr als ein Jahr ins Land gezogen? Schau mal nach (http://svn.freetz.org/branches/freetz-stable-1.2/make/libs/libnet.mk).Nachdem ich die Lib-Patches an freetz-stable-1.2 angepasst habe (Anhang anzeigen 58938), versuchte ich das ganze zu kompilieren, aber leider ...
Hast Du die uClibc-Version auch angepasst?Code:Making all in src make[2]: Betrete Verzeichnis '/home/andreas2/freetz/freetz-stable-1.2/source/target-mipsel_uClibc-0.9.2[COLOR=red][B]9[/B][/COLOR]/libnet-1.1.4/src' ...
Es müssen nicht alle Pakete in Freetz integriert sein. Ich habe noch 161 Pakete, die nicht in Freetz integriert sind und auch nicht integriert werden. Das eine oder andere Paket, kannst Du aber im Trac und/oder im Forum finden. Nein, rechtliche Probleme gibt es nicht.BTW: Wieso ist das nicht gleich direkt in freetz integriert? Gibt's da rechtlich Probleme?
War bzw. ist das von Hand reinkopieren, noch erforderlich?Das hab ich dann einfach nur von Hand reinkopiert.
:~/myfreetz/freetz112/freetz-1.2-preview> make ettercap-precompiled
...
...
Making install in tests
---> library/openssl: preparing... configuring... building... done.
---> library/ncurses: preparing... configuring... building... done.
---> library/libnet: preparing... configuring... building... done.
---> library/pcre: preparing... configuring... building... done.
---> library/libpcap: preparing... configuring... building... done.
---> library/zlib: preparing... configuring... building... done.
---> library/libtool: preparing... configuring... building... done.
---> [B][COLOR=red]package/ettercap[/COLOR][/B]: preparing... configuring... building...[COLOR=red][B] done[/B][/COLOR].
:~/myfreetz/freetz112/freetz-1.2-preview> [COLOR=red][B]file[/B][/COLOR] packages/target-mipsel_uClibc-0.9.29/ettercap-NG-0.7.3/root/usr/bin/[COLOR=red][B]ettercap[/B][/COLOR] packages/target-mipsel_uClibc-0.9.29/ettercap-NG-0.7.3/root/usr/bin/ettercap: [COLOR=red]ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), dynamically linked (uses shared libs)[/COLOR], with unknown capability 0xf41 = 0x756e6700, with unknown capability 0x70100 = 0x3040000, stripped
Configuring ettercap NG-0.7.3...
...
Checking for required libraries...
checking for library containing gethostbyname... (cached) none required
checking for library containing socket... (cached) none required
checking for library containing poll... none required
checking for library containing gzopen... -lz
checking for library containing dn_expand... no
Checking for missing functions...
checking for strlcpy... (cached) yes
checking for strlcat... yes
checking for strsep... yes
checking for memmem... yes
checking for memcmp... yes
checking for basename... yes
checking for getopt_long... yes
checking for strcasestr... yes
checking for scandir... yes
checking for inet_aton... yes
checking for inet_aton in -lresolv... yes
Checking user defined options...
checking if --enable-debug option was specified... no
checking if --enable-plugins option was specified... yes
checking for libpcap... /home/andreas2/freetz/freetz-trunk/toolchain/build/mipsel_gcc-4.4.6_uClibc-0.9.29/mipsel-linux-uclibc/include/pcap
checking for pcap_datalink_val_to_description in -lpcap... yes
checking for libnet... no
configure: error: libnet.h not found in /home/andreas2/freetz/freetz-trunk/toolchain/build/mipsel_gcc-4.4.6_uClibc-0.9.29/mipsel-linux-uclibc/include
ERROR: Build failed.
make: *** [source/target-mipsel_uClibc-0.9.29/ettercap-NG-0.7.3/.configured] Fehler 1
Nein, für "make ettercap-precompiled" braucht man keinen Eintrag in der make/Config.in. Welche trunk revision benutzt Du?... Deshalb vermute ich, dass es dort noch irgend etwas zu beachten gibt. Ist dem so?
freetz-trunk> [B]find toolchain/build/mipsel_gcc-4.4.6_uClibc-0.9.29/mipsel-linux-uclibc/include -iname 'libnet.h'[/B]
toolchain/build/mipsel_gcc-4.4.6_uClibc-0.9.29/mipsel-linux-uclibc/include/libnet.h
svn co http://svn.freetz.org/trunk freetz-trunk
cd freetz-trunk
patch -p0 < ../ettercap.patch.txt (aus dem ersten Beitrag)
make menuconfig (Fon WLAN 7112 und Patch web menu signed message)
make ettercap-precompiled
Welche trunk revision benutzt Du?
Code:svn co http://svn.freetz.org/trunk freetz-trunk
Welchen Patch hast Du für ettercap benutzt?
Code:patch -p0 < ../ettercap.patch.txt (aus dem ersten Beitrag)
Ja, sowohl als auch. Aber mit deinem neuen Patch scheint es korrekt zu funktionieren. Vielen Dank dafür.Hast Du den aktuellen trunk (7415) neu ausgecheckt und eine neue .config erstellt?
*** Gentoo sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.18, ltmain.sh = ) ***
Please run:
libtoolize --copy --force
if appropriate, please contact the maintainer of this
package (or your distribution) for help.
Versuch mal mit dem Paket (patch) von er13. Siehe Link: http://www.ip-phone-forum.de/showthread.php?t=211897&p=1541905&viewfull=1#post1541905Getestet mit 2.0 und Trunk. Kommt immer derselbe Fehler.
libtoolize --copy --force ändert nichts an der Sache!
Versuch mal mit dem Paket (patch) von er13. Siehe Link: http://www.ip-phone-forum.de/showthread.php?t=211897&p=1541905&viewfull=1#post1541905
elysium@elysium-VirtualBox:~/freetz-stable-2.0$ sudo patch -p0 < ../Downloads/ettercap_proper.patch.txt
[sudo] password for elysium:
patching file CHANGELOG
Hunk #1 FAILED at 63.
1 out of 1 hunk FAILED -- saving rejects to file CHANGELOG.rej
patching file make/Config.in
Hunk #1 FAILED at 106.
1 out of 1 hunk FAILED -- saving rejects to file make/Config.in.rej
patching file make/external.in
Hunk #1 FAILED at 11.
1 out of 1 hunk FAILED -- saving rejects to file make/external.in.rej
patching file make/ettercap/Makefile.in
patching file make/ettercap/external.files
patching file make/ettercap/external.in
patching file make/ettercap/patches/200-NS_GET32.patch
patching file make/ettercap/patches/100-iconv_cross.patch
patching file make/ettercap/Config.in
patching file make/ettercap/ettercap.mk
elysium@elysium-VirtualBox:~/freetz-trunk$ sudo patch -p0 < ettercap_proper.patch.txt
patching file CHANGELOG
Hunk #1 FAILED at 63.
1 out of 1 hunk FAILED -- saving rejects to file CHANGELOG.rej
can't find file to patch at input line 17
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: make/Config.in
|===================================================================
|--- make/Config.in (revision 4892)
|+++ make/Config.in (working copy)
--------------------------
File to patch: make/Config.in
make/Config.in: No such file or directory
Skip this patch? [y] n
File to patch: