-
Notifications
You must be signed in to change notification settings - Fork 39
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
Compilation error trying in Docker container #56
Comments
hi, we are going to need a full log here, if |
I suspect a race, did you try a serial build with |
Getting the same, not in Docker but on a Ubuntu 22 Jammy server. I'm running 7.4 OSS there; I downloaded 0f91123 and ran
I get the exact same error.
Please find it attached: varnish-vmod-curl-install.txt |
@gquintard @dridi Sorry to mention you, but maybe this is just a couple of edits away from being installable again (at least I hope so). |
I'll have a look at this this week |
it works on my FROM varnish:7.3
# set the user to root, and install build dependencies
USER root
RUN set -e; \
apt-get update; \
apt-get -y install $VMOD_DEPS /pkgs/*.deb libcurl4-openssl-dev; \
\
# install one, possibly multiple vmods
install-vmod https://github.com/varnish/libvmod-curl/archive/refs/heads/master.tar.gz; \
\
# clean up and set the user back to varnish
apt-get -y purge --auto-remove $VMOD_DEPS varnish-dev; \
rm -rf /var/lib/apt/lists/*
USER varnish please provide a reproducer so we can look at this further. Also, I would recommend using vmod-reqwest as it's more modern and probably easier to compile (and I feel obligated that Varnish Enterprise has vmod-http already packaged) |
Wait, is this only compatible with 7.3 and not with 7.4? I'm running the latter.
Yes, already saw that (from maybe another issue here), though at v0.0.10 feels a little... bleeding-edge ATM; this one instead looked more stable - I'm installing severals VMODs just for experiments, when I have a better definition of my requirements, I'll surely take a look at that one too. |
Hmmm... I peeked at https://github.com/varnish/toolbox/blob/master/install-vmod/install-vmod and - if I understood it - it should run (for me):
apart from not running
Retrying with I'm not that keen on Docker, maybe I could try to put together something during the next weekend. In case it can be of help, this issue didn't come up when I installed: |
anyway, I can reproduce with |
Hello
I have the following error while compiling from Varnish 7.3 docker container (see https://hub.docker.com/_/varnish)
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish -I/usr/include/x86_64-linux-gnu -g -O2 -MT libvmod_curl_la-vmod_curl.lo -MD -MP -MF .deps/libvmod_curl_la-vmod_curl.Tpo -c vmod_curl.c -fPIC -DPIC -o .libs/libvmod_curl_la-vmod_curl.o
vmod_curl.c:21:10: fatal error: vcc_curl_if.h: No such file or directory
21 | #include "vcc_curl_if.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
Any suggestions? Thanks!
The text was updated successfully, but these errors were encountered: