[nos-bbs] JNOS compile problems on Ubuntu 18.04

Michael Fox - N6MEF n6mef at mefox.org
Thu Aug 8 17:42:15 EDT 2019


All,

I've been compiling JNOS on Ubuntu 16.04, 14.04, 12.04 with no problem.

Today, I updated a machine to Ubuntu 18.04 and was unsuccessful trying to
compile the same source that compiles just fine on 16.04.  Details below.  I
have no idea what to do.  Suggestions?

Michael


Here's what I'm getting:

...

gcc -DUNIX -g3   -DDEBUG -Wall   -c -o tun.o tun.c
In file included from netuser.h:38:0,
                 from tcp.h:26,
                 from iface.h:25,
                 from tun.c:26:
socket.h:85:21: error: expected identifier before numeric constant
 #define SOCK_STREAM 0
                     ^
In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:33:0,
                 from /usr/include/linux/if.h:28,
                 from tun.c:41:
/usr/include/x86_64-linux-gnu/bits/socket.h:175:8: error: redefinition of
'struct sockaddr'
 struct sockaddr
        ^~~~~~~~
In file included from socket.h:22:0,
                 from netuser.h:38,
                 from tcp.h:26,
                 from iface.h:25,
                 from tun.c:26:
sockaddr.h:13:8: note: originally defined here
 struct sockaddr {
        ^~~~~~~~
<builtin>: recipe for target 'tun.o' failed
make: *** [tun.o] Error 1
$






More information about the nos-bbs mailing list