vel21ripn / ipt_iftag

Match "tag" of interface (sysctl net.ipv4.conf.XXX.tag).
GNU General Public License v3.0
7 stars 2 forks source link

Build errors #2

Closed k0ste closed 1 year ago

k0ste commented 1 year ago
/usr/lib/modules/6.4.7-arch1-2/
make -C iptables
make[1]: Entering directory '/srv/raid/filez/trash/ssd_backup/sandbox/AUR/ipt_iftag/src/ipt_iftag/iptables'
cc -fPIC -I../kernel -g -Wall -I -D_INIT=libipt_iftag_init -c -o libipt_iftag.o libipt_iftag.c;
libipt_iftag.c: In function ‘__iftag_mt4_save’:
libipt_iftag.c:66:46: warning: ‘%s’ directive output may be truncated writing up to 31 bytes into a region of size 30 [-Wformat-truncation=]
   66 |                 snprintf(v2m,sizeof(v2m)-1,"(%s & ~0x%x)",v2,info->mask);
      |                                              ^~
libipt_iftag.c:66:17: note: ‘snprintf’ output between 10 and 48 bytes into a destination of size 31
   66 |                 snprintf(v2m,sizeof(v2m)-1,"(%s & ~0x%x)",v2,info->mask);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -shared -o libipt_iftag.so libipt_iftag.o;
/usr/bin/ld: libipt_iftag.o: in function `_init':
/srv/raid/filez/trash/ssd_backup/sandbox/AUR/ipt_iftag/src/ipt_iftag/iptables/libipt_iftag.c:260: multiple definition of `_init'; /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib/crti.o:(.init+0x0): first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:15: libipt_iftag.so] Error 1
rm libipt_iftag.o
make[1]: Leaving directory '/srv/raid/filez/trash/ssd_backup/sandbox/AUR/ipt_iftag/src/ipt_iftag/iptables'
make: *** [Makefile:2: all] Error 2
vel21ripn commented 1 year ago

What version of iptables are you building this module with?

k0ste commented 1 year ago

iptables 1.8.9

vel21ripn commented 1 year ago

See b0d64568602b04edb3c7689ed580678e9d1ddb89

k0ste commented 1 year ago

Fixed