On Tue, Apr 16, 2002 at 11:21:58AM +0200, Joachim Schwender wrote:
> changing the PREFIX: in the main Makefile does not compile correctly, as 
> there is another definition in the file iptables.c, line 43:
> 
> IPT_LIB_DIR

this definition is only getting active if IPT_LIB_DIR is not defined.

> which is not defined in the main Makefile. The definition in the Makefile is  
> similar and this seems to be a bug:
> 
> IPT_LIBDIR

no.

see about line 100 in the Makefile:
        $(CC) $(CFLAGS) -DIPT_LIB_DIR=\"$(IPT_LIBDIR)\" -c -o $@ $<

please don't mix up Make variables and C preprocessor definitions.

> compiling with a changed PREFIX generates binaries that still search the 
> modules in /usr/local/iptables.

This needs to be some strange interaction on your system.  I'm regularly
using this feature (as are most of the SPEC files I've seen for iptables).

> -----------
> Another issue is that the compiler (or some subordinated program) complains 
> about syntax in /extensions/owner.c, line 23, a macro cannot be used inside a 
> printf function. 
> -----------
> compiler: gcc 3.0.4, on Linux libc 2.2.2, Kernel 2.4.18

this is a known issue with gcc3 (which is not really considered a standard
compiler on linux systems yet).  The 'bug' has been fixed in CVS recently.

-- 
Live long and prosper
- Harald Welte / [EMAIL PROTECTED]               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ 
V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)

Reply via email to