-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
@tkurtbond have you run using |
I don't see any makefile_freebsd in the repository anywhere. |
sorry to hear this. i will see tomorrow if i can repeat this. at the time of the last commit it was building on my gentoo fine. before i was also periodically testing on debian. i think this is something trivial, but need to understand what is happening. |
interesting, i cannot repeat this. for me it builds fine, these are the last lines:
what comes to my mind is that maybe your system doesn't have some development libraries. but you were able to build voc so i guess it has do you have /usr/include/sys/socket.h or /usr/include/netinet/in.h ? |
Yes, my system has both /usr/include/sys/socket.h and /usr/include/netinet/in.h. Puzzling. What system are you building on? |
i build on my gentoo x86_64 but i also tested on arm debian - both armv7 or aarch64. hmmm. i'll think about it. |
i tried to create myself a centos9 chroot to repeat your issue, and so far i am even unable to build voc in it. not sure if that's my chroot or that's something with modern redhat systems. will figure out and let you know. |
so most likely the issue arises because your c compiler is stricter (maybe it requires c11 by default) and it does not tolerate implicit declarations. i am fixing the code of Internet module (https://gihub.com/norayr/Internet) to get rid of warnings, and then it should compile for you. |
i have eliminated all the warnings that appear when building Internet git repository/package, one of deps. i also tested it by using can you try to build vipack now? i am afraid there will be other warnings from other modules so it won't build again. also it depends currently on mbedtls, to be able to download files from https and links to it. current makefile does ugly thing, it downloads my prebuilt version of mbedtls, but we need a good solution in the future. i am saying that you may want to build your version of mbdetls and change the makefile, to have full control over the build. or does fedora have mbedtls packaged? still, perhap's you'll still have other problems. can you try to build vipack again? it should update Internet module from git repo and build again. this time there should be no warnings from that dependency. |
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:
The text was updated successfully, but these errors were encountered: