[strongSwan-dev] StrongSwan with reduced priveleges
meenakshi bangad
mbangad at gmail.com
Fri May 29 19:04:49 CEST 2015
running Strong Swan 5.3.0 on Centos 6.5 box.
Here is the output of the command:
make[4]: Entering directory
`/root/proj/iswan/src/strongswan/strongswan-5.3.0/src/libcharon/plugins/farp'
depbase=`echo farp_spoofer.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../../../../libtool --tag=CC --mode=compile gcc
-DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src/libstrongswan
-I../../../../src/libhydra -I../../../../src/libcharon -rdynamic -g -O2 -Wa
ll -Wno-format -Wno-format-security -Wno-pointer-sign -include
/root/proj/iswan/src/strongswan/strongswan-5.3.0/config.h -MT
farp_spoofer.lo -MD -MP -MF $depbase.Tpo -c -o farp_spoofer.lo
farp_spoofer.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../..
-I../../../../src/libstrongswan -I../../../../src/libhydra
-I../../../../src/libcharon -rdynamic -g -O2 -Wall -Wno-format
-Wno-format-security -Wno-point
er-sign -include /root/proj/iswan/src/strongswan/strongswan-5.3.0/config.h
-MT farp_spoofer.lo -MD -MP -MF .deps/farp_spoofer.Tpo -c farp_spoofer.c
-fPIC -DPIC -o .libs/farp_spoofer.o
In file included from /usr/include/linux/netdevice.h:29,
from /usr/include/linux/if_arp.h:26,
from farp_spoofer.c:21:
/usr/include/linux/if_ether.h:126: error: expected specifier-qualifier-list
before '__be16'
In file included from /usr/include/linux/netdevice.h:30,
from /usr/include/linux/if_arp.h:26,
from farp_spoofer.c:21:
/usr/include/linux/if_packet.h:10: error: expected specifier-qualifier-list
before '__be16'
/usr/include/linux/if_packet.h:16: error: expected specifier-qualifier-list
before '__be16'
/usr/include/linux/if_packet.h:65: error: expected specifier-qualifier-list
before '__u16'
/usr/include/linux/if_packet.h:104: error: expected
specifier-qualifier-list before '__u16'
In file included from /usr/include/linux/if_link.h:5,
from /usr/include/linux/netdevice.h:31,
from /usr/include/linux/if_arp.h:26,
from farp_spoofer.c:21:
/usr/include/linux/netlink.h:44: error: expected specifier-qualifier-list
before '__u16'
/usr/include/linux/netlink.h:134: error: expected specifier-qualifier-list
before '__u16'
In file included from /usr/include/linux/netdevice.h:31,
from /usr/include/linux/if_arp.h:26,
from farp_spoofer.c:21:
/usr/include/linux/if_link.h:42: error: expected specifier-qualifier-list
before '__u64'
/usr/include/linux/if_link.h:76: error: expected specifier-qualifier-list
before '__u64'
/usr/include/linux/if_link.h:303: error: expected specifier-qualifier-list
before '__be16'
/usr/include/linux/if_link.h:331: error: expected specifier-qualifier-list
before '__u8'
/usr/include/linux/if_link.h:429: error: expected specifier-qualifier-list
before '__u8'
In file included from farp_spoofer.c:21:
/usr/include/linux/if_arp.h:138: error: expected specifier-qualifier-list
before '__be16'
In file included from farp_spoofer.c:23:
/usr/include/linux/filter.h:25: error: expected specifier-qualifier-list
before '__u16'
farp_spoofer.c: In function 'send_arp':
farp_spoofer.c:77: error: 'struct sockaddr_ll' has no member named
'sll_ifindex'
farp_spoofer.c: In function 'farp_spoofer_create':
farp_spoofer.c:141: warning: excess elements in struct initializer
[51/1822]
farp_spoofer.c:141: warning: (near initialization for
'arp_request_filter_code[0]')
farp_spoofer.c:141: warning: excess elements in struct initializer
farp_spoofer.c:141: warning: (near initialization for
'arp_request_filter_code[0]')
farp_spoofer.c:141: warning: excess elements in struct initializer
farp_spoofer.c:141: warning: (near initialization for
'arp_request_filter_code[0]')
farp_spoofer.c:141: warning: excess elements in struct initializer
farp_spoofer.c:141: warning: (near initialization for
'arp_request_filter_code[0]')
farp_spoofer.c:142: warning: excess elements in struct initializer
farp_spoofer.c:142: warning: (near initialization for
'arp_request_filter_code[1]')
farp_spoofer.c:142: warning: excess elements in struct initializer
farp_spoofer.c:142: warning: (near initialization for
'arp_request_filter_code[1]')
farp_spoofer.c:142: warning: excess elements in struct initializer
farp_spoofer.c:142: warning: (near initialization for
'arp_request_filter_code[1]')
farp_spoofer.c:142: warning: excess elements in struct initializer
farp_spoofer.c:142: warning: (near initialization for
'arp_request_filter_code[1]')
farp_spoofer.c:143: warning: excess elements in struct initializer
farp_spoofer.c:143: warning: (near initialization for
'arp_request_filter_code[2]')
farp_spoofer.c:143: warning: excess elements in struct initializer
farp_spoofer.c:143: warning: (near initialization for
'arp_request_filter_code[2]')
farp_spoofer.c:143: warning: excess elements in struct initializer
farp_spoofer.c:143: warning: (near initialization for
'arp_request_filter_code[2]')
farp_spoofer.c:143: warning: excess elements in struct initializer
farp_spoofer.c:143: warning: (near initialization for
'arp_request_filter_code[2]')
farp_spoofer.c:144: warning: excess elements in struct initializer
farp_spoofer.c:144: warning: (near initialization for
'arp_request_filter_code[3]')
farp_spoofer.c:144: warning: excess elements in struct initializer
farp_spoofer.c:144: warning: (near initialization for
'arp_request_filter_code[3]')
farp_spoofer.c:144: warning: excess elements in struct initializer
farp_spoofer.c:144: warning: (near initialization for
'arp_request_filter_code[3]')
farp_spoofer.c:144: warning: excess elements in struct initializer
farp_spoofer.c:144: warning: (near initialization for
'arp_request_filter_code[3]')
farp_spoofer.c:145: warning: excess elements in struct initializer
farp_spoofer.c:145: warning: (near initialization for
'arp_request_filter_code[4]')
farp_spoofer.c:145: warning: excess elements in struct initializer
farp_spoofer.c:145: warning: (near initialization for
'arp_request_filter_code[4]')
farp_spoofer.c:145: warning: excess elements in struct initializer
farp_spoofer.c:145: warning: (near initialization for
'arp_request_filter_code[4]')
farp_spoofer.c:145: warning: excess elements in struct initializer
farp_spoofer.c:145: warning: (near initialization for
'arp_request_filter_code[4]')
farp_spoofer.c:146: warning: excess elements in struct initializer
farp_spoofer.c:146: warning: (near initialization for
'arp_request_filter_code[5]')
farp_spoofer.c:146: warning: excess elements in struct initializer
farp_spoofer.c:146: warning: (near initialization for
'arp_request_filter_code[5]')
farp_spoofer.c:146: warning: excess elements in struct initializer
farp_spoofer.c:146: warning: (near initialization for
'arp_request_filter_code[5]')
farp_spoofer.c:146: warning: excess elements in struct initializer
farp_spoofer.c:146: warning: (near initialization for
'arp_request_filter_code[5]')
farp_spoofer.c:147: warning: excess elements in struct initializer
farp_spoofer.c:147: warning: (near initialization for
'arp_request_filter_code[6]')
farp_spoofer.c:147: warning: excess elements in struct initializer
farp_spoofer.c:147: warning: (near initialization for
'arp_request_filter_code[6]')
farp_spoofer.c:147: warning: excess elements in struct initializer
farp_spoofer.c:147: warning: (near initialization for
'arp_request_filter_code[6]')
farp_spoofer.c:147: warning: excess elements in struct initializer
farp_spoofer.c:147: warning: (near initialization for
'arp_request_filter_code[6]')
farp_spoofer.c:152: warning: (near initialization for
'arp_request_filter_code[11]')
farp_spoofer.c:152: warning: excess elements in struct initializer
farp_spoofer.c:152: warning: (near initialization for
'arp_request_filter_code[11]')
farp_spoofer.c:155: warning: division by zero
make[4]: *** [farp_spoofer.lo] Error 1
make[4]: Leaving directory
`/root/proj/iswan/src/strongswan/strongswan-5.3.0/src/libcharon/plugins/farp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/root/proj/iswan/src/strongswan/strongswan-5.3.0/src/libcharon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/root/proj/iswan/src/strongswan/strongswan-5.3.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/proj/iswan/src/strongswan/strongswan-5.3.0'
make: *** [all] Error 2
farp_spoofer.c:148: warning: excess elements in struct initializer
farp_spoofer.c:148: warning: (near initialization for
'arp_request_filter_code[7]')
farp_spoofer.c:148: warning: excess elements in struct initializer
On Mon, May 18, 2015 at 3:50 AM, Martin Willi <martin at strongswan.org> wrote:
> Hi,
>
> > 1) Ran configur as root
> > ./configure [...]
>
> The build works fine here when passing these options.
>
> > 2) Ran make as root, but with these errors:
> >
> > make[4]: *** [farp_spoofer.lo] Error 1
> > make[4]: Leaving directory
>
> I don't see the build error from your excerpt, only the error
> propagation from farp in make. Please include the error output of the
> failing make command (most likely from gcc).
>
> Regards
> Martin
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20150529/1d1a9482/attachment.html>
More information about the Dev
mailing list