[Openswan Users] openswan 2.6.51 Build error

Juan Manuel Gómez López greenlean at gmail.com
Thu May 21 05:01:00 EDT 2020


Dear

I am not able to build the openswan on Archlinux with gcc 10.
]$ gcc --version
gcc (GCC) 10.1.0

When I make the target programs, ld fails with error:
]$ make programs
...
/usr/bin/ld:
/home/**/Workspace/openswan/openswan-2.6.51.5/OBJ.linux.x86_64/lib/libwhack/libwhack.a(aliascomp.o):/home/
** Workspace/openswan/openswan-2.6.51.5/include/pluto_constants.h:650:
multiple definition of `kw_host_list';
connections.o:/home/**/Workspace/openswan/openswan-2.6.51.5/include/pluto_constants.h:650:
first defined here
collect2: error: ld returned 1 exit status
make[3]: ***
[/home/**/Workspace/openswan/openswan-2.6.51.5/programs/pluto/Makefile:227:
pluto] Error 1

The pluto_constants.h file, which is included everywhere, defines:
/* keyword_name(&kw_host_list, type, buffer[KEYWORD_NAME_BUFLEN]) */
struct keyword_enum_values kw_host_list;

Any suggestions or Workoround to build?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openswan.org/pipermail/users/attachments/20200521/f90953fe/attachment.html>


More information about the Users mailing list