Development discussion of WireGuard
 help / color / mirror / Atom feed
* centos 6 build error
@ 2017-01-02 21:40 Lucian Cristian
  2017-01-02 21:42 ` Jason A. Donenfeld
  0 siblings, 1 reply; 4+ messages in thread
From: Lucian Cristian @ 2017-01-02 21:40 UTC (permalink / raw)
  To: wireguard

i'm trying to make a centos 6 peer and I'm blocked by this error

   CC [M]  /WireGuard/src/socket.o
/WireGuard/src/socket.c: In function ‘socket_init’:
/WireGuard/src/socket.c:343: error: unknown field ‘local_ip’ specified 
in initializer
/WireGuard/src/socket.c:343: warning: missing braces around initializer
/WireGuard/src/socket.c:343: warning: (near initialization for 
‘port4.<anonymous>’)
/WireGuard/src/socket.c:350: error: unknown field ‘local_ip6’ specified 
in initializer
/WireGuard/src/socket.c:350: warning: braces around scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
/WireGuard/src/socket.c:350: warning: excess elements in scalar initializer
/WireGuard/src/socket.c:350: warning: (near initialization for 
‘port6.<anonymous>.local_ip.s_addr’)
make[2]: *** [/WireGuard/src/socket.o] Error 1
make[1]: *** [_module_/WireGuard/src] Error 2

I'm missing some dependencies ?

regards

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: centos 6 build error
  2017-01-02 21:40 centos 6 build error Lucian Cristian
@ 2017-01-02 21:42 ` Jason A. Donenfeld
  2017-01-02 22:11   ` Lucian Cristian
  0 siblings, 1 reply; 4+ messages in thread
From: Jason A. Donenfeld @ 2017-01-02 21:42 UTC (permalink / raw)
  To: Lucian Cristian; +Cc: WireGuard mailing list

Your compiler is ancient.

Either update your compiler, or just remove lines 343 & 350 (which are
no-ops anyway).

Jason

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: centos 6 build error
  2017-01-02 21:42 ` Jason A. Donenfeld
@ 2017-01-02 22:11   ` Lucian Cristian
  2017-01-03  1:51     ` Jason A. Donenfeld
  0 siblings, 1 reply; 4+ messages in thread
From: Lucian Cristian @ 2017-01-02 22:11 UTC (permalink / raw)
  To: WireGuard mailing list

On 02.01.2017 23:42, Jason A. Donenfeld wrote:
> Your compiler is ancient.
>
> Either update your compiler, or just remove lines 343 & 350 (which are
> no-ops anyway).
>
> Jason

thanks!

I used the devtoolset-2 from scientific linux CERN and now I have this:

wireguard: loading out-of-tree module taints kernel.
wireguard: Unknown symbol __fentry__ (err 0)

and it seems that I have more work to do so I'll try without those lines

http://unix.stackexchange.com/questions/259591/linux-kernel-missing-fentry-symbol

the kernel is 4.9.0-1.el6.elrepo.x86_64

regards

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: centos 6 build error
  2017-01-02 22:11   ` Lucian Cristian
@ 2017-01-03  1:51     ` Jason A. Donenfeld
  0 siblings, 0 replies; 4+ messages in thread
From: Jason A. Donenfeld @ 2017-01-03  1:51 UTC (permalink / raw)
  To: Lucian Cristian; +Cc: WireGuard mailing list

Hi Lucian,

This is because your kernel is also built with an old gcc. Either
rebuild the kernel and the module with a new gcc, or just make the
source change I suggested and use your old gcc.

Jason

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-03  1:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-02 21:40 centos 6 build error Lucian Cristian
2017-01-02 21:42 ` Jason A. Donenfeld
2017-01-02 22:11   ` Lucian Cristian
2017-01-03  1:51     ` Jason A. Donenfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).