Skip to content

While building vipack during building dependency http the compilation of netSockets.Mod failes with "errror: implicit declaration of function..." for socket, bind, listen, accept, accept4, and connect. #4

Open
@tkurtbond

Description

@tkurtbond

While building vipack during building dependency http the compilation of netSockets.Mod failes with "errror: implicit declaration of function..." for socket, bind, listen, accept, accept4, and connect.

Also, the build does not actually stop after the that error, continuing on until failing later due to missing http dependency.

This is Fedora Linux 40 x86_64 with gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3).

Here are the errors:

cd /usr/local/sw/src/lang/Oberon/voc/vipack/deps/github.com/norayr/mbedtls/deps/github.com/norayr/http/build && voc -s /usr/local/sw/src/lang/Oberon/voc/vipack/deps/github.com/norayr/mbedtls/deps/github.com/norayr/http/deps/github.com/norayr/Internet/src/netSockets.Mod
/usr/local/sw/src/lang/Oberon/voc/vipack/deps/github.com/norayr/mbedtls/deps/github.com/norayr/http/deps/github.com/norayr/Internet/src/netSockets.Mod  Compiling netSockets.  4361 chars.
netSockets.c: In function ‘netSockets_Socket’:
netSockets.c:55:62: error: implicit declaration of function ‘socket’ [-Wimplicit-function-declaration]
   55 | define netSockets_socket(domain, type, protocol)       (int)socket(domain, type, protocol)
      |                                                             ^~~~~~

netSockets.c:59:16: note: in expansion of macro ‘netSockets_socket’
   59 |         return netSockets_socket(domain, type, protocol);
      |                ^~~~~~~~~~~~~~~~~
netSockets.c: In function ‘netSockets_Bind’:
netSockets.c:48:70: error: implicit declaration of function ‘bind’ [-Wimplicit-function-declaration]
   48 | etSockets_bind(sockfd, addr, addr__typ, addrlen)       (int)bind(sockfd, addr, addrlen)
      |                                                             ^~~~

netSockets.c:64:16: note: in expansion of macro ‘netSockets_bind’
   64 |         return netSockets_bind(sockfd, &*addr, addr__typ, addrlen);
      |                ^~~~~~~~~~~~~~~
netSockets.c: In function ‘netSockets_Listen’:
netSockets.c:52:54: error: implicit declaration of function ‘listen’ [-Wimplicit-function-declaration]
   52 | #define netSockets_listen(sockfd, backlog)      (int)listen(sockfd, backlog)
      |                                                      ^~~~~~
netSockets.c:69:16: note: in expansion of macro ‘netSockets_listen’
   69 |         return netSockets_listen(sockfd, backlog);
      |                ^~~~~~~~~~~~~~~~~
netSockets.c: In function ‘netSockets_Accept’:
netSockets.c:46:70: error: implicit declaration of function ‘accept’ [-Wimplicit-function-declaration]
   46 | etSockets_accept(sockfd, addr, addr__typ, addrlen)     (int)accept(sockfd, addr, addrlen)
      |                                                             ^~~~~~

netSockets.c:74:16: note: in expansion of macro ‘netSockets_accept’
   74 |         return netSockets_accept(sockfd, &*addr, addr__typ, &*addrlen);
      |                ^~~~~~~~~~~~~~~~~
netSockets.c: In function ‘netSockets_AcceptNB’:
netSockets.c:47:70: error: implicit declaration of function ‘accept4’ [-Wimplicit-function-declaration]
   47 | etSockets_acceptnb(sockfd, addr, addr__typ, addrlen)   (int)accept4(sockfd, addr, addrlen, O_NONBLOCK)
      |                                                             ^~~~~~~

netSockets.c:79:16: note: in expansion of macro ‘netSockets_acceptnb’
   79 |         return netSockets_acceptnb(sockfd, &*addr, addr__typ, &*addrlen);
      |                ^~~~~~~~~~~~~~~~~~~
netSockets.c: In function ‘netSockets_Connect’:
netSockets.c:49:67: error: implicit declaration of function ‘connect’ [-Wimplicit-function-declaration]
   49 | e netSockets_connect(sockfd, addr, addrlen)       (INTEGER)(connect(sockfd, addr, addrlen))
      |                                                             ^~~~~~~

netSockets.c:84:16: note: in expansion of macro ‘netSockets_connect’
   84 |         return netSockets_connect(sockfd, sockaddr, addrlen);
      |                ^~~~~~~~~~~~~~~~~~
C compile: gcc -fPIC -g -I "/usr/local/sw/versions/voc/git/2/include"   -c netSockets.c
-- failed: status 0, exitcode 1.
Terminated by Halt(1). 
make[3]: *** [/usr/local/sw/src/lang/Oberon/voc/vipack/deps/github.com/norayr/mbedtls/deps/github.com/norayr/http/deps/github.com/norayr/Internet/GNUmakefile:29: buildThis] Error 1
make[3]: Leaving directory '/usr/local/sw/src/lang/Oberon/voc/vipack/deps/github.com/norayr/mbedtls/deps/github.com/norayr/http/build'
make[2]: *** [/usr/local/sw/src/lang/Oberon/voc/vipack/deps/github.com/norayr/mbedtls/deps/github.com/norayr/http/GNUmakefile:37: build_deps] Error 2
make[2]: Leaving directory '/usr/local/sw/src/lang/Oberon/voc/vipack/deps/github.com/norayr/mbedtls/build'
make[1]: *** [/usr/local/sw/src/lang/Oberon/voc/vipack/deps/github.com/norayr/mbedtls/GNUmakefile:51: build_deps] Error 2
make[1]: Leaving directory '/usr/local/sw/src/lang/Oberon/voc/vipack/build'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions