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!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2010-04-16 19:38:31

  Cobweb - Użytkownik

Cobweb
Użytkownik
Zarejestrowany: 2010-04-02

xtables-addons problem przy tworzeniu paczki

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ę

Kod:

dh_make -s -f ../xtables-addons-1.24.tar.bz2

tutaj jeszcze wszystko ok

następnie daję

Kod:

dpkg-buildpackage -rfakeroot

dostaję takie błędy

Kod:

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

Kod:

./configure
make
make install

nie generuje błędów
byłbym wdzięczny za pomoc

Offline

 

#2  2010-04-17 12:33:33

  siarka2107 - Użyszkodnik DUG

siarka2107
Użyszkodnik DUG
Skąd: Warszawa
Zarejestrowany: 2006-04-05

Re: xtables-addons problem przy tworzeniu paczki

Z tego co pamiętam to musisz przed:

Kod:

dpkg-buildpackage -rfakeroot

odpalić

Kod:

./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

 

#3  2010-04-18 23:52:15

  Cobweb - Użytkownik

Cobweb
Użytkownik
Zarejestrowany: 2010-04-02

Re: xtables-addons problem przy tworzeniu paczki

[quote=siarka2107]Z tego co pamiętam to musisz przed:

Kod:

dpkg-buildpackage -rfakeroot

odpalić

Kod:

./configure

z odpowiednimi opcjami[/quote]
dzięki bardzo za podpowiedź paczka się tworzy ale mam problem jak ją instaluje ponieważ dostaje informacje:

Kod:

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

 

#4  2010-04-19 12:33:35

  siarka2107 - Użyszkodnik DUG

siarka2107
Użyszkodnik DUG
Skąd: Warszawa
Zarejestrowany: 2006-04-05

Re: xtables-addons problem przy tworzeniu paczki

czy czasami na kernel nie nakładasz łatek od linuxbox.pl??

Offline

 

#5  2010-04-19 13:14:45

  Cobweb - Użytkownik

Cobweb
Użytkownik
Zarejestrowany: 2010-04-02

Re: xtables-addons problem przy tworzeniu paczki

[quote=siarka2107]czy czasami na kernel nie nakładasz łatek od linuxbox.pl??[/quote]
Pytanie czy mam? Bo w tej chwili zrobiłem tak pobrałem:

- źródła z [url]http://www.kernel.org/[/url]
- patch netfilter - l7 z [url]http://sourceforge.net/projects/l7-filter/[/url]
- patch IMQ z [url]http://www.linuximq.net/patches.html[/url]
- patch EFSQ z [url]https://dev.openwrt.org/export/18900/trunk/target/linux/generic-2.6/patches-2.6.31[/url]

nałożyłem pobrane łaty skompilowałem kernel według opisu [url]http://yampress.dug.net.pl/doku.php?id=system_kompilacja-kernela[/url], 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 [url]http://sourceforge.net/projects/xtables-addons/files/[/url] i na tym się zatrzymałem

pytanie czy tak to się robi, czy mam skorzystać z łatek z linuxbox.pl

Offline

 

#6  2010-04-20 10:59:08

  siarka2107 - Użyszkodnik DUG

siarka2107
Użyszkodnik DUG
Skąd: Warszawa
Zarejestrowany: 2006-04-05

Re: xtables-addons problem przy tworzeniu paczki

ustaw repozytoria na squeeze albo sida, ściągnij źródła xtables-addons

Kod:

apt-get source xtables-addons

no i porób paczki

Kod:

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

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)

[ Generated in 0.008 seconds, 9 queries executed ]

Informacje debugowania

Time (s) Query
0.00009 SET CHARSET latin2
0.00004 SET NAMES latin2
0.00096 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.149.241.250' WHERE u.id=1
0.00075 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.149.241.250', 1727475553)
0.00061 SELECT * FROM punbb_online WHERE logged<1727475253
0.00070 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=16635 AND t.moved_to IS NULL
0.00007 SELECT search_for, replace_with FROM punbb_censoring
0.00207 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=16635 ORDER BY p.id LIMIT 0,25
0.00095 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=16635
Total query time: 0.00624 s