-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
Build failure: curl version is too low
#320
Comments
Thanks for opening this issue, this shows that Ullaakut/go-curl is outdated, and after looking into it it seems that the fix I did on go-curl in my fork has been done on the original repo as well, so we can use go-curl instead of my version of it, and that should fix it. If someone wants to pick this up, feel free to update the dependency, otherwise I'll do it when I have some time 👍 |
### Please help me to fix this issue @Ullaakut 🙏️🙏️🙏️ |
If you want to fix it, all you need to do is replace the dependency from Have a good day! |
I also encountered such a problem.. However, we will try |
Thanks for your reply new Logssudo docker build -t test:001 .
I think @simsmith007 's comment is correct |
My version of go-curl is even older than that, the main branch of andelf indeed fixes the thing I tried to fix in my fork, on top of also making further changes, so either way we should replace the dependency. However indeed, it seems like there is a problem with the curl version. Likely what would fix it then is to change the version of libcurl that is installed in the first step of the Dockerfile: # Build stage
FROM golang:alpine AS build-env
COPY . /go/src/github.com/Ullaakut/cameradar
WORKDIR /go/src/github.com/Ullaakut/cameradar/cmd/cameradar
RUN apk update && \
apk upgrade && \
apk add nmap nmap-nselibs nmap-scripts \
curl curl-dev \ # <------------------------------------------------------ Here.
gcc \
libc-dev \
git \
pkgconfig
ENV GO111MODULE=on
RUN go version
RUN go build -o cameradar In the last stage, we specify the version of curl we want to get a very specific one, but it looks like the build stage now fails due to the curl version that matches the package manager in the I can't look into it at the moment unfortunately. |
OK @Ullaakut Maybe we need to find the latest version that compile correctly. But this one seems to do the job. |
Great that you were able to build this way 👍 At least this gives a temporary solution until we find a way to get the specific version we need of go curl while also having a recent golang image. Thank you! |
Don't know how anyone would discover any similarities in potential issues with the issue labeled as ambiguously as it is. It might be a good idea to change this... just saying. I don't really have the time to troubleshoot a resolution to this issue at the moment, but the resolution to downgrade to As for simply replacing I will have to look at this when I have more time. |
curl version is too low
@anoduck Thanks, indeed it wasn't very clear from the title. It should be better now. I don't have much time for open source work these days so I won't take a look at this for now unfortunately. May I ask, why you want to build your own image instead of using a docker image? I should start including compiled binaries in releases again, my bad on this. I thought it was automated but it looks like it's not/no longer the case. |
You might want to mention this in the
Because I thought by building a new image it would provide more up-to-date stream patterns to scan with. Sadly, this was not the case.
It is no worries, github has changed a lot recently. |
How so? I still maintain my repositories and can help guide people through investigating and fixing issues, I just don't have time to work on them many hours per week like I used to. That doesn't mean the repositories are abandonned (besides https://github.com/Ullaakut/RTSPAllTheThings which I archived, deprecated and suggested an alternative.)
If you have suggestions for routes or credentials to be added, feel free to contribute to the dictionaries. They were mostly compiled back in 2016 and have not been modified much, since I no longer work in the videosurveillance business and therefore no longer have access to new hardware to tinker with :) |
It would provide users a clearer understanding of what their expectations should be about the project. There is no shame in informing users up front that the project is still maintained, but not currently under development due to time constraints. By being up front about it, you may even find a group of go programmers willing to assist in development of the project. As a matter of fact, if not one of a kind, any other alternatives to this project are quite few.
I came across a goldmine of pattern listings a few days ago attempting to discover how to access my own cheap security camera stream. When I come across it again, I will share the link. |
Here is a Dockerfile that allow you to get a successful build.
|
@dordyan What you have just posted, will be of great help to me and my personal life. I will be sure to run this later on tonight, and see if I can tap the output of my cameras. Sincerely, Thank You. |
@dordyan I had to modify your Dockerfile source code in order to get it working for me. It will be found to be more simplistic, but running it this way allowed the achievement of a successful build, where otherwise it proved unsuccessful. FROM golang:alpine3.13
RUN mkdir -p /go
RUN mkdir -p /app
COPY . /go/src/github.com/Ullaakut/cameradar
COPY ./dictionaries /app/dictionaries
WORKDIR /go/src/github.com/Ullaakut/cameradar/cmd/cameradar
RUN apk upgrade && \
apk add nmap \
nmap-nselibs \
nmap-scripts \
gcc \
libc-dev \
git \
curl==7.79.1-r3 \
curl-dev==7.79.1-r3
ENV GO111MODULE=on
RUN go version
RUN go build -o cameradar
# Necessary to install curl v7.64.0-r3.
# Fix for https://github.com/Ullaakut/cameradar/issues/247
RUN sed -i 's/v3.13/v3.9/g' /etc/apk/repositories
RUN apk add --no-cache nmap \
nmap-nselibs \
nmap-scripts \
curl-dev==7.64.0-r5 \
curl==7.64.0-r5
WORKDIR /app
RUN cp /go/src/github.com/Ullaakut/cameradar/cmd/cameradar /app/cameradar
ENV CAMERADAR_CUSTOM_ROUTES="/app/dictionaries/routes"
ENV CAMERADAR_CUSTOM_CREDENTIALS="/app/dictionaries/credentials.json"
ENTRYPOINT ["/app/cameradar"] |
Hy..
I when getting image from dockerfile clone source code github
The program encounters the following problem
Context
Please select one:
Please select one:
Environment
My operating system:
OS version: <Ubuntu 22.10>
Issue
#0 27.23 # github.com/Ullaakut/go-curl
#0 27.23 In file included from /go/pkg/mod/github.com/!ullaakut/[email protected]/const.go:5:
#0 27.23 ./compat.h:423:2: error: #error your version is TOOOOOOOO low
#0 27.23 423 | #error your version is TOOOOOOOO low
#0 27.23 | ^~~~~
What was expected
What happened
when clone project from github and builde dockerfile without changing the source code dockerfile
Logs
sudo docker build -t test:001 .
The text was updated successfully, but these errors were encountered: