[nos-bbs] JNOS compile problems on Ubuntu 18.04

M Langelaar maiko at pcsinternet.ca
Thu Aug 8 17:59:46 EDT 2019


Not this again, I need to modify the code so that it properly recognizes
the different headers and such. In the meantime, you will have to replace
the existing tun.c with a new one.

Sorry this one is imbedded deep in the notes. Read the very top item
on this link -> https://www.langelaar.net/jnos2/archive/news

There is a link to a source file to replace the existing tun.c with ...

Maiko

On 08/08/2019 4:42 p.m., Michael Fox - N6MEF wrote:
> 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
> $
>
>
>
>
> _______________________________________________
> nos-bbs mailing list
> nos-bbs at lists.tapr.org
> http://lists.tapr.org/mailman/listinfo/nos-bbs_lists.tapr.org



More information about the nos-bbs mailing list