Nowe posty

Autor Wątek: Pomocy ipp2p bledy przy instalacji make  (Przeczytany 1767 razy)

Kuwert

  • Gość
Pomocy ipp2p bledy przy instalacji make
« dnia: 2005-11-02, 19:05:09 »
bash-2.05b# make
// blablabla
gcc -g -O2 -D_BSD_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -DDSNIFF_LIBDIR=\\"/usr/local/lib/\\" -I. -I/usr/local/include     -I/usr/X11R6/include -I./missing -c ./record.c
record.c: In function `record_save\\':
record.c:130: error: `R_NOOVERWRITE\\' undeclared (first use in this function)
record.c:130: error: (Each undeclared identifier is reported only once
record.c:130: error: for each function it appears in.)
record.c:130: warning: passing arg 2 of pointer to function from incompatible pointer type
record.c:130: error: too few arguments to function
record.c: In function `record_dump\\':
record.c:143: error: structure has no member named `seq\\'
record.c:143: error: `R_NEXT\\' undeclared (first use in this function)
record.c: In function `record_init\\':
record.c:167: warning: assignment makes pointer from integer without a cast
record.c: In function `record_close\\':
record.c:206: error: too few arguments to function

OS Slack 10
Jadro 2.4.26
Czemu sie tak dzieje ? Wszystkie wymagane biblioteki zainstalowane...


renepl

  • Gość
Pomocy ipp2p bledy przy instalacji make
« Odpowiedź #1 dnia: 2005-11-02, 18:14:04 »
witam mam problemy ze zainstalowaniem modulu ipp2p

oto bledy

gcc -O3 -Wall -I/lib/modules/2.4.20-8smp/build/include -c ipt_ipp2p.c -D__KERNEL__ -DMODULE -DMODVERSIONS
In file included from /lib/modules/2.4.20-8smp/build/include/linux/spinlock.h:56,
                 from /lib/modules/2.4.20-8smp/build/include/linux/module.h:11,
                 from ipt_ipp2p.c:4:
/lib/modules/2.4.20-8smp/build/include/asm/spinlock.h:9: invalid suffix on integer constant
/lib/modules/2.4.20-8smp/build/include/asm/spinlock.h:9: parse error before numeric constant
/lib/modules/2.4.20-8smp/build/include/asm/spinlock.h:10: `printk_R_ver_str' declared as function returning a function
In file included from /lib/modules/2.4.20-8smp/build/include/linux/prefetch.h:13,
                 from /lib/modules/2.4.20-8smp/build/include/linux/list.h:6,
                 from /lib/modules/2.4.20-8smp/build/include/linux/module.h:12,
                 from ipt_ipp2p.c:4:
/lib/modules/2.4.20-8smp/build/include/asm/processor.h:60: warning: parameter names (without types) in function declaration
/lib/modules/2.4.20-8smp/build/include/asm/processor.h:60: field `loops_per_jiffy_R_ver_str' declared as a function
/lib/modules/2.4.20-8smp/build/include/asm/processor.h:82: invalid suffix on integer constant
/lib/modules/2.4.20-8smp/build/include/asm/processor.h:82: parse error before numeric constant
In file included from /lib/modules/2.4.20-8smp/build/include/linux/prefetch.h:13,
                 from /lib/modules/2.4.20-8smp/build/include/linux/list.h:6,
                 from /lib/modules/2.4.20-8smp/build/include/linux/module.h:12,
                 from ipt_ipp2p.c:4:
/lib/modules/2.4.20-8smp/build/include/asm/processor.h:267:1: warning: "EISA_bus" redefined
In file included from /lib/modules/2.4.20-8smp/build/include/linux/modversions.h:132,
                 from ipt_ipp2p.c:2:
/lib/modules/2.4.20-8smp/build/include/linux/modules/i386_ksyms.ver:92:1: warning: this is the location of the previous definition
/lib/modules/2.4.20-8smp/build/include/asm/processor.h:269: warning: parameter names (without types) in function declaration
In file included from ipt_ipp2p.c:4:
/lib/modules/2.4.20-8smp/build/include/linux/module.h:183: invalid suffix on integer constant
/lib/modules/2.4.20-8smp/build/include/linux/module.h:183: parse error before numeric constant
/lib/modules/2.4.20-8smp/build/include/linux/module.h:183: `inter_module_register_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8smp/build/include/linux/module.h:184: invalid suffix on integer constant
/lib/modules/2.4.20-8smp/build/include/linux/module.h:184: parse error before numeric constant
/lib/modules/2.4.20-8smp/build/include/linux/module.h:184: `inter_module_unregister_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8smp/build/include/linux/module.h:185: `inter_module_get_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8smp/build/include/linux/module.h:185: warning: parameter names (without types) in function declaration
/lib/modules/2.4.20-8smp/build/include/linux/module.h:186: `inter_module_get_request_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8smp/build/include/linux/module.h:186: warning: parameter names (without types) in function declaration
/lib/modules/2.4.20-8smp/build/include/linux/module.h:187: invalid suffix on integer constant
/lib/modules/2.4.20-8smp/build/include/linux/module.h:187: parse error before numeric constant
/lib/modules/2.4.20-8smp/build/include/linux/module.h:187: `inter_module_put_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8smp/build/include/linux/module.h:196: `try_inc_mod_count_R_ver_str' declared as function returning a function
/lib/modules/2.4.20-8smp/build/include/linux/module.h:196: warning: parameter names (without types) in function declaration
make: *** [ipt_ipp2p.o] Error 1


jak zrobie make -i to nie utworzy mi ipt_ipp2p.o i nie umiem zaladowac modulu :-( Moze ktos wie co jest przyczyna modul iptables-p2p mi dziala instaluje sie normalnie a  ten nie uzywam rh 9.0

feaber

  • Gość
Pomocy ipp2p bledy przy instalacji make
« Odpowiedź #2 dnia: 2005-12-29, 14:08:38 »
Po pierwsze musisz mieć zainstalowane takie rzeczy jak:

linux-source (lub jak to dawniej nazywali 'kernel-source') z wersją kernela którego aktualnie uzywasz..
np.
/usr/src/linux-source-2.6.14
i dowiązanie do tego katalogu:
/usr/src/linux

oraz

iptables współpracujące z twoim kernelem
np. w
/usr/src/iptables-
i dowiązanie
/usr/src/iptables

Teraz wejdź do katalogu z ipp2p i wyszukaj deklaracje
IPTABLES_SRC
i ustaw na
IPTABLES_SRC=/usr/src/iptables

z kernelem powinno byc ok.. ale jak by nie dzialalo mozesz pokombinowac z KERNEL_SRC=/usr/src/linux

innym sposobem moze byc odpalenie 'make' w ten sposób

# IPTABLES=/usr/src/iptables KERNEL_SRC=/usr/src/linux make

Gdyby mimo to moduł IPP2P nie chciał się skompilować to skompiluj wcześniej jądro i iptables.. i powinno ruszyć

Pozdro.