All of lore.kernel.org
 help / color / mirror / Atom feed
* 'Cross' Compiling iptables
@ 2005-03-15  8:31 Marcus Mikolaiczyk
  2005-03-15  9:14 ` Marcus Mikolaiczyk
  0 siblings, 1 reply; 3+ messages in thread
From: Marcus Mikolaiczyk @ 2005-03-15  8:31 UTC (permalink / raw)
  To: netfilter

Greetings list users,

I got a problem compiling iptables for an embedded system (kernel 
2.4.19, ported gcc version 2.95.3 ). I use the folowing make command 
which stops in compiling extensions/libipt_TCPMSS.o

bash# make NO_SHARED_LIBS=1 KERNEL_DIR=/opt/embedded/kernel
Extensions found:
tricore-gcc -O2 -mtc13 -mall-errata -Wa,-mdmi12 -s -static  -Wall 
-Wunused -I/opt/embedded/kernel/include -Iinclude/ 
-DIPTABLES_VERSION=\"1.3.1\"  -DNO_SHARED_LIBS=1 
-DIPT_LIB_DIR=\"/usr/local/lib/iptables\" -c -o iptables.o iptables.c
...
...
tricore-gcc -O2 -mtc13 -mall-errata -Wa,-mdmi12 -s -static  -Wall 
-Wunused -I/opt/embedded/kernel/include -Iinclude/ 
-DIPTABLES_VERSION=\"1.3.1\"  -DNO_SHARED_LIBS=1 -D_INIT=ipt_TCPMSS_init 
-c -o extensions/libipt_TCPMSS.o extensions/libipt_TCPMSS.c
extensions/libipt_TCPMSS.c:16: field `mss' has incomplete type
extensions/libipt_TCPMSS.c: In function `parse':
extensions/libipt_TCPMSS.c:62: dereferencing pointer to incomplete type
extensions/libipt_TCPMSS.c:70: dereferencing pointer to incomplete type
extensions/libipt_TCPMSS.c:70: `IPT_TCPMSS_CLAMP_PMTU' undeclared (first 
use in this function)
extensions/libipt_TCPMSS.c:70: (Each undeclared identifier is reported 
only once
extensions/libipt_TCPMSS.c:70: for each function it appears in.)
extensions/libipt_TCPMSS.c: In function `print':
extensions/libipt_TCPMSS.c:97: dereferencing pointer to incomplete type
extensions/libipt_TCPMSS.c:97: `IPT_TCPMSS_CLAMP_PMTU' undeclared (first 
use in this function)
extensions/libipt_TCPMSS.c:100: dereferencing pointer to incomplete type
extensions/libipt_TCPMSS.c: In function `save':
extensions/libipt_TCPMSS.c:110: dereferencing pointer to incomplete type
extensions/libipt_TCPMSS.c:110: `IPT_TCPMSS_CLAMP_PMTU' undeclared 
(first use in this function)
extensions/libipt_TCPMSS.c:113: dereferencing pointer to incomplete type
extensions/libipt_TCPMSS.c: At top level:
extensions/libipt_TCPMSS.c:120: sizeof applied to an incomplete type
extensions/libipt_TCPMSS.c:121: sizeof applied to an incomplete type
make: *** [extensions/libipt_TCPMSS.o] Error 1

When I use
make NO_SHARED_LIBS=1
I can compile libipt_TCPMSS.o but get an error with the next:
extensions/libipt_TOS.o
cause it cannot find
linux/netfilter_ipv4/ipt_TOS.h
which does not exist in my kerneltree.

Anybody an idea. I'm clueless in the moment.

Regards Marcus


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 'Cross' Compiling iptables
  2005-03-15  8:31 'Cross' Compiling iptables Marcus Mikolaiczyk
@ 2005-03-15  9:14 ` Marcus Mikolaiczyk
  2005-03-15 10:14   ` Marcus Mikolaiczyk
  0 siblings, 1 reply; 3+ messages in thread
From: Marcus Mikolaiczyk @ 2005-03-15  9:14 UTC (permalink / raw)
  To: netfilter

Ok I found some differences in the ported linux sources.

 > I got a problem compiling iptables for an embedded system (kernel
 > 2.4.19, ported gcc version 2.95.3 ). I use the folowing make command
 > which stops in compiling extensions/libipt_TCPMSS.o

linux/netfilter_ipv4/ipt_TCPMSS.h is different to the original one from 
kernel.org.
linux/netfilter_ipv4/ipt_TOS.h is missing but there is a 
linux/netfilter_ipv4/ipt_tos.h

Can anyone explain the differences between the 'capital'(uppercase) 
ipt_TCPMSS.h and the lowercase ipt_tcpmss.h ?

Greetings Marcus


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 'Cross' Compiling iptables
  2005-03-15  9:14 ` Marcus Mikolaiczyk
@ 2005-03-15 10:14   ` Marcus Mikolaiczyk
  0 siblings, 0 replies; 3+ messages in thread
From: Marcus Mikolaiczyk @ 2005-03-15 10:14 UTC (permalink / raw)
  To: marcus.mikolaiczyk; +Cc: netfilter

Should be solved,

I just asked the poeple who ported the Linux about this problem, the 
told me that the partly used Windows for some ?whatever? and Windows is 
not casesensitve so it might have been Windows who 'deleted' the *TCPMSS 
*tcpmss and so on.
I just take the headers from the original Sources.

Thanks so far.

Marcus



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-15 10:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-15  8:31 'Cross' Compiling iptables Marcus Mikolaiczyk
2005-03-15  9:14 ` Marcus Mikolaiczyk
2005-03-15 10:14   ` Marcus Mikolaiczyk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.