zoulasc / racoon2

The Racoon2 project is a joint effort which provides an implementation of key management system for IPsec. The implementation is called Racoon2, a successor of Racoon, which was developed by the KAME project. It supports IKEv1, IKEv2, and KINK protocols. It works on FreeBSD, NetBSD, Linux, and Mac OS X. Racoon2 is provided under a BSD-style license. To support various environments that use IPsec, we will develop various functions.
Other
22 stars 11 forks source link

Error while running "make" #1

Closed ARao0123 closed 4 years ago

ARao0123 commented 5 years ago

I'm running the following commands in racoon dir (outside iked,kinkd):

make distclean
CFLAGS=-D_GNU_SOURCE ./configure
make

I see the following error. Any idea what I'm doing wrong?

vmbuf.c: In function ‘vmemcmp’:
vmbuf.c:145:6: error: pointer targets in assignment differ in signedness [-Werror=pointer-sign]
   p1 = s1->v;
      ^
vmbuf.c:146:6: error: pointer targets in assignment differ in signedness [-Werror=pointer-sign]
   p2 = s2->v;
      ^
cc1: all warnings being treated as errors
zoulasc commented 5 years ago

What OS and compiler is that?

zoulasc commented 5 years ago

And the assignment lines have a cast....

ARao0123 commented 5 years ago

This is on Ubuntu and compiler is gcc.

gcc (Ubuntu 4.9.4-2ubuntu1~14.04.1) 4.9.4

zoulasc commented 5 years ago

Ok, I think I fixed it, tested with on an odroidc1... gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)

zoulasc commented 4 years ago

Tested on linux