[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: make cannot find file



Hi,

Danny wrote:
> In file included from /usr/include/i386-linux-gnu/sys/socket.h:38:0,
>                  from /root/git/svxlink/src/async/core/AsyncIpAddress.cpp:40:
> /usr/include/i386-linux-gnu/bits/socket.h:345:24: fatal error: asm/socket.h: No such file or directory

Is there a file
  /usr/include/i386-linux-gnu/asm/socket.h
?

Obviously the preprocessor finds <sys/socket.h> as
  /usr/include/i386-linux-gnu/sys/socket.h
and <bits/sockets.h> as
  /usr/include/i386-linux-gnu/bits/socket.h

On my system it is
  /usr/include/x86_64-linux-gnu/sys/socket.h
and includes <bits/socket.h>, which i assume is
  /usr/include/x86_64-linux-gnu/bits/socket.h
which includes <asm/socket.h>
  /usr/include/x86_64-linux-gnu/asm/socket.h
All three files exist on my Debian 8 "amd64".

---------------------------------------------------------------------

Maybe unrelated idea:

  https://github.com/sm0svx/svxlink/blob/master/src/async/core/AsyncIpAddress.cpp
is a C++ file which includes C headers.
At other occasions i had to surround C code by

  extern "C" {

  ... C code ...

  } /* extern "C" */

in order to get C++ compilation to succeed.
But that was about syntax incompatibilities, iirc.

---------------------------------------------------------------------

Have a nice day :)

Thomas


Reply to: