netoptimizer/CPAN-IPTables-libiptc — Issue #5: doesn't compile with iptables 1.4.12
Author: bfg
Created: 2012-02-24 11:05:35+00:00
State: open

```
make
make -C iptables/ all PREFIX="/usr/local" IPTABLES_VERSION="1.4.12.1" XTABLES_LIBDIR="/usr/libexec/xtables" IPTABLES_VERSION_CODE="66572" EXTRALIBS="-liptc -lip4tc -lxtables"
make[1]: Entering directory `/tmp/IPTables-libiptc-0.52/iptables'
cc -O2 -Wall -Wunused -I/include -I/usr/local/include -I../include/ -fPIC -DXTABLES_INTERNAL -g -DIPTABLES_VERSION=\"1.4.12.1\" -DXTABLES_LIBDIR=\"/usr/libexec/xtables\" -DIPTABLES_VERSION_CODE=\66572 -c -o iptables.o iptables-detect-version.c
iptables-detect-version.c:49:2: error: #error "The libxtables is newer than this package support and know of - Sorry!"
iptables-detect-version.c:50:2: error: #error " Please inform the package author of this issue, thanks! "
make[1]: *** [iptables.o] Error 1
make[1]: Leaving directory `/tmp/IPTables-libiptc-0.52/iptables'
make: *** [iptables/iptables.o] Error 2
```

Removing "problematic" ```#elif``` results in linker error:

```

make -C iptables/ all PREFIX="/usr/local" IPTABLES_VERSION="1.4.12.1" XTABLES_LIBDIR="/usr/libexec/xtables" IPTABLES_VERSION_CODE="66572" EXTRALIBS="-liptc -lip4tc -lxtables"
make[1]: Entering directory `/tmp/IPTables-libiptc-0.52/iptables'
cc -O2 -Wall -Wunused -I/include -I/usr/local/include -I../include/ -fPIC -DXTABLES_INTERNAL -g -DIPTABLES_VERSION=\"1.4.12.1\" -DXTABLES_LIBDIR=\"/usr/libexec/xtables\" -DIPTABLES_VERSION_CODE=\66572 -c -o iptables.o iptables-detect-version.c
cc -O2 -Wall -Wunused -I/include -I/usr/local/include -I../include/ -fPIC -DXTABLES_INTERNAL -g -DIPTABLES_VERSION=\"1.4.12.1\" -DXTABLES_LIBDIR=\"/usr/libexec/xtables\" -DIPTABLES_VERSION_CODE=\66572 -L/usr/local/lib -rdynamic -o iptables-standalone iptables-standalone.c iptables.o xshared.o -ldl -liptc -lip4tc -lxtables
/tmp/cc25Dk6e.o: In function `main':
/tmp/IPTables-libiptc-0.52/iptables/iptables-standalone.c:53: undefined reference to `iptables_globals'
/tmp/IPTables-libiptc-0.52/iptables/iptables-standalone.c:65: undefined reference to `do_command'
collect2: ld returned 1 exit status
make[1]: *** [iptables-standalone] Error 1
make[1]: Leaving directory `/tmp/IPTables-libiptc-0.52/iptables'
make: *** [iptables/iptables.o] Error 2
```