#67 l7-filter-2.21 fails to build with iptables-1.4.3

closed-fixed
nobody
iptables (3)
5
2009-07-13
2009-03-24
No

Attempt to build l7-filter with iptables fails with the following error:

i686-pc-linux-gnu-gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DXTABLES_LIBDIR=\"/lib/xtables\" -DXTABLES_INTERNAL -I./include -I./include -I /usr/src/linux/include -I /usr/src/linux/include -O2 -march=i686 -pipe -mtune=i686 -march=pentium-m -ggdb -U_FORTIFY_SOURCE -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -o .libs/iptables-static iptables_static-iptables-multi.o iptables_static-iptables-save.o iptables_static-iptables-restore.o iptables_static-iptables-xml.o iptables_static-iptables-standalone.o iptables_static-iptables.o iptables_static-xtables.o libiptc/.libs/libiptc.so extensions/libext4.a -lm
extensions/libext4.a(libxt_layer7.o): In function `final_check':
/var/tmp/portage/net-firewall/iptables-1.4.3/work/iptables-1.4.3/extensions/libxt_layer7.c:322: undefined reference to `exit_error'
extensions/libext4.a(libxt_layer7.o): In function `parse_protocol_file':
/var/tmp/portage/net-firewall/iptables-1.4.3/work/iptables-1.4.3/extensions/libxt_layer7.c:113: undefined reference to `exit_error'
extensions/libext4.a(libxt_layer7.o): In function `parse_layer7_protocol':
/var/tmp/portage/net-firewall/iptables-1.4.3/work/iptables-1.4.3/extensions/libxt_layer7.c:266: undefined reference to `exit_error'
extensions/libext4.a(libxt_layer7.o): In function `hex2dec':
/var/tmp/portage/net-firewall/iptables-1.4.3/work/iptables-1.4.3/extensions/libxt_layer7.c:132: undefined reference to `exit_error'
/var/tmp/portage/net-firewall/iptables-1.4.3/work/iptables-1.4.3/extensions/libxt_layer7.c:132: undefined reference to `exit_error'
extensions/libext4.a(libxt_layer7.o):/var/tmp/portage/net-firewall/iptables-1.4.3/work/iptables-1.4.3/extensions/libxt_layer7.c:279: more undefined references to `exit_error' follow
collect2: ld returned 1 exit status
make[2]: *** [iptables-static] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-firewall/iptables-1.4.3/work/iptables-1.4.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-firewall/iptables-1.4.3/work/iptables-1.4.3'
make: *** [all] Error 2

Discussion

  • cilly

    cilly - 2009-07-06

    Solution:

    Replace all occurrences of exit_error() with xtables_error() in libxt_layer7.c.

     
  • Matthew Strait

    Matthew Strait - 2009-07-13
    • status: open --> closed
     
  • Matthew Strait

    Matthew Strait - 2009-07-13
    • status: closed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks