-
Notifications
You must be signed in to change notification settings - Fork 139
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
linux_syscall.c:67:13: error: implicit declaration of function 'setresgid' is invalid in C99 #88
Comments
Ok, I made a few modifications. Using the Docker build file above, I created the following standalone app which does the same thing.
I then set the following environment variables
I have the following go.mod file in the root of my project
I then downloaded the libraries
I then built the .go file from an interactive session with the docker container. So all the code was in the container.
and this is the error I get now
|
It would be nice to find out why this is occurring, but in the mean time I switched to keybase/go-keychain. There are no compile issues with it. |
I'm building in a docker ubuntu 20.04 Linux container.
Below is a snippet of the code I'm using, the the relevant part of the Docker build file that I'm using to run my server in.
My server compiles code on demand for different environments. The code shown is part of that file that is being compiled when the error is thrown.
I have it working
The last thing I need is to be ale to compile on Linux for Darwin. Since I'm running in Docker it is a must have, the other combinations make development easy.
I can build other go files that doesn't use this library.
The code is fairly straight forward. Here is the portion that uses this library
[some code redacted]
I have built the container with
Since the server is building this code, I log much of the environment settings in place in order to debug issues like this:
FIX FOR THIS ERROR
EDIT : Note to fix the above error I had found a thread that suggested adding the following line to the go.mod.
so the output of that is noted below.
The text was updated successfully, but these errors were encountered: