Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witam
Chciałby zbudować paczkę deb ze źródeł xtables-addons-1.24. No więc pobieram źródła rozpakowuje wchodzę do katalogu i daję
dh_make -s -f ../xtables-addons-1.24.tar.bz2
tutaj jeszcze wszystko ok
następnie daję
dpkg-buildpackage -rfakeroot
dostaję takie błędy
dpkg-buildpackage: ostrzeżenie: używanie polecenia-uzysk-praw-admin podczas bycia administratorem fakeroot debian/rules clean dpkg-source -b xtables-addons-1.24 dpkg-source: ostrzeżenie: zignorowano usunięcie pliku config.guess dpkg-source: ostrzeżenie: zignorowano usunięcie pliku config.sub debian/rules build libipset_iphash.oo: In function `iphash_init': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:277: undefined reference to `settype_register' libipset_iphash.oo: In function `iphash_printips': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:203: undefined reference to `ip_tostring' libipset_iphash.oo: In function `iphash_saveips': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:232: undefined reference to `ip_tostring' libipset_iphash.oo: In function `iphash_adt_parser': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:139: undefined reference to `parse_ip' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:141: undefined reference to `exit_error' libipset_iphash.oo: In function `iphash_create_parse': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:63: undefined reference to `string_to_number' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:98: undefined reference to `string_to_number' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:74: undefined reference to `string_to_number' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:86: undefined reference to `string_to_number' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:64: undefined reference to `exit_error' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:87: undefined reference to `exit_error' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:75: undefined reference to `exit_error' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:99: undefined reference to `exit_error' collect2: ld returned 1 exit status make[6]: *** [libipset_iphash.so] Błąd 1 make[5]: *** [user-all-local] Błąd 2 fakeroot debian/rules binary libipset_iphash.oo: In function `iphash_init': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:277: undefined reference to `settype_register' libipset_iphash.oo: In function `iphash_printips': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:203: undefined reference to `ip_tostring' libipset_iphash.oo: In function `iphash_saveips': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:232: undefined reference to `ip_tostring' libipset_iphash.oo: In function `iphash_adt_parser': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:139: undefined reference to `parse_ip' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:141: undefined reference to `exit_error' libipset_iphash.oo: In function `iphash_create_parse': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:63: undefined reference to `string_to_number' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:98: undefined reference to `string_to_number' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:74: undefined reference to `string_to_number' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:86: undefined reference to `string_to_number' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:64: undefined reference to `exit_error' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:87: undefined reference to `exit_error' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:75: undefined reference to `exit_error' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:99: undefined reference to `exit_error' collect2: ld returned 1 exit status make[5]: *** [libipset_iphash.so] Błąd 1 make[4]: *** [user-all-local] Błąd 2 WARNING: /usr/src/xtables-addons-1.24/debian/xtables-addons/lib/modules/2.6.31.13-router/extra/ip6table_rawpost.ko needs unknown symbol ip6t_unregister_table WARNING: /usr/src/xtables-addons-1.24/debian/xtables-addons/lib/modules/2.6.31.13-router/extra/ip6table_rawpost.ko needs unknown symbol ip6t_register_table WARNING: /usr/src/xtables-addons-1.24/debian/xtables-addons/lib/modules/2.6.31.13-router/extra/ip6table_rawpost.ko needs unknown symbol ip6t_do_table WARNING: /usr/src/xtables-addons-1.24/debian/xtables-addons/lib/modules/2.6.31.13-router/extra/xt_RAWNAT.ko needs unknown symbol ipv6_find_hdr WARNING: /usr/src/xtables-addons-1.24/debian/xtables-addons/lib/modules/2.6.31.13-router/extra/xt_TEE.ko needs unknown symbol ip6_route_output WARNING: /usr/src/xtables-addons-1.24/debian/xtables-addons/lib/modules/2.6.31.13-router/extra/xt_SYSRQ.ko needs unknown symbol ipv6_find_hdr WARNING: /usr/src/xtables-addons-1.24/debian/xtables-addons/lib/modules/2.6.31.13-router/extra/xt_pknock.ko needs unknown symbol cn_netlink_send WARNING: /usr/src/xtables-addons-1.24/debian/xtables-addons/lib/modules/2.6.31.13-router/extra/xt_length2.ko needs unknown symbol ipv6_find_hdr libtool: install: warning: remember to run `libtool --finish /usr/lib' libtool: install: warning: `libxt_ACCOUNT_cl.la' has not been installed in `/usr/lib' libipset_iphash.oo: In function `iphash_init': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:277: undefined reference to `settype_register' libipset_iphash.oo: In function `iphash_printips': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:203: undefined reference to `ip_tostring' libipset_iphash.oo: In function `iphash_saveips': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:232: undefined reference to `ip_tostring' libipset_iphash.oo: In function `iphash_adt_parser': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:139: undefined reference to `parse_ip' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:141: undefined reference to `exit_error' libipset_iphash.oo: In function `iphash_create_parse': /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:63: undefined reference to `string_to_number' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:98: undefined reference to `string_to_number' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:74: undefined reference to `string_to_number' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:86: undefined reference to `string_to_number' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:64: undefined reference to `exit_error' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:87: undefined reference to `exit_error' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:75: undefined reference to `exit_error' /usr/src/xtables-addons-1.24/extensions/ipset/ipset_iphash.c:99: undefined reference to `exit_error' collect2: ld returned 1 exit status make[6]: *** [libipset_iphash.so] Błąd 1 make[5]: *** [user-all-local] Błąd 2 dpkg-shlibdeps: niepowodzenie: nie znaleziono informacji o zależnościach dla /usr/lib/libxtables.so.2 (używanego przez debian/xtables-addons/usr/libexec/xtables/libxt_ACCOUNT.so). dh_shlibdeps: command returned error code 512 make: *** [binary-arch] Błąd 1 dpkg-buildpackage: niepowodzenie: fakeroot debian/rules binary zwrócił status błędu 2
dodam tylko że robię to na wcześniej skompilowanym kernelu 2.6.31.13, metoda
./configure make make install
nie generuje błędów
byłbym wdzięczny za pomoc
Offline
Z tego co pamiętam to musisz przed:
dpkg-buildpackage -rfakeroot
odpalić
./configure
z odpowiednimi opcjami
---edit---
a najlepiej pociągnij źródła xtables-addons z repo sida czy squeeze i robienie paczki będzie bezproblemowe :P
Ostatnio edytowany przez siarka2107 (2010-04-17 12:35:39)
Offline
siarka2107 napisał(-a):
Z tego co pamiętam to musisz przed:
Kod:
dpkg-buildpackage -rfakerootodpalić
Kod:
./configurez odpowiednimi opcjami
dzięki bardzo za podpowiedź paczka się tworzy ale mam problem jak ją instaluje ponieważ dostaje informacje:
cobweb:/usr/src# dpkg -i xtables-addons_1.24-1_i386.deb (Odczytywanie bazy danych ... 45953 plików i katalogów obecnie zainstalowanych.) Rozpakowanie xtables-addons (z xtables-addons_1.24-1_i386.deb) ... dpkg: błąd przetwarzania xtables-addons_1.24-1_i386.deb (--install): próba nadpisania "/lib/modules/2.6.31.13-router/modules.seriomap", który istnieje także w pakiecie linux-image-2.6.31.13-router Przetwarzanie wyzwalaczy dla man-db... Wystąpiły błędy podczas przetwarzania: xtables-addons_1.24-1_i386.deb
czy jest jakiś sposób aby nie nadpisywać a dopisać do w/w pliku?
czy jest może jakiś inny sposób stworzenia paczki którą można by instalować na różnych komputerach, bo jak skompiluje make install to wszystko ładnie się instaluje i mogę korzystać z xtables do budowania reguł w iptables ale niestety nie da się tego ponownie wykorzystać bez kompilacji?
Offline
czy czasami na kernel nie nakładasz łatek od linuxbox.pl??
Offline
siarka2107 napisał(-a):
czy czasami na kernel nie nakładasz łatek od linuxbox.pl??
Pytanie czy mam? Bo w tej chwili zrobiłem tak pobrałem:
- źródła z http://www.kernel.org/
- patch netfilter - l7 z http://sourceforge.net/projects/l7-filter/
- patch IMQ z http://www.linuximq.net/patches.html
- patch EFSQ z https://dev.openwrt.org/export/18900/trunk/target/l … atches-2.6.31
nałożyłem pobrane łaty skompilowałem kernel według opisu http://yampress.dug.net.pl/doku.php?id=system_kompilacja-kernela, następnie iptables z w/w łatami poza efsq stworzyłem paczkę w podobny sposób jak próbuję z xtables
pobrałem xtables-addons z http://sourceforge.net/projects/xtables-addons/files/ i na tym się zatrzymałem
pytanie czy tak to się robi, czy mam skorzystać z łatek z linuxbox.pl
Offline
ustaw repozytoria na squeeze albo sida, ściągnij źródła xtables-addons
apt-get source xtables-addons
no i porób paczki
fakeroot debian/rules binary
, jak tak bardzo zależy Ci na wersji 1.24 (aktualnie w repo debiana jest 1.23) pościągaj poszczególne diffy ze strony projektu i ponakładaj na debianowe źródła, zmień numer i wtedy porób paczki
Offline