nigoroll / libvmod-dynamic

The Varnish dns/named director continued
BSD 2-Clause "Simplified" License
95 stars 34 forks source link

Compilation error on Debian bullseye (testing) #69

Closed huiser closed 3 years ago

huiser commented 3 years ago

I try to compile tag v2.3.0 in a Debian bullseye docker container, but it fails with the following error:

root@8a81ad28d485:/src/libvmod-dynamic# make 
make  all-recursive
make[1]: Entering directory '/src/libvmod-dynamic'
Making all in src
make[2]: Entering directory '/src/libvmod-dynamic/src'
  CCLD     libvmod_dynamic.la
/usr/bin/ld: .libs/vmod_dynamic_service.o:/src/libvmod-dynamic/src/vmod_dynamic.h:181: multiple definition of `objects'; .libs/vmod_dynamic.o:/src/libvmod-dynamic/src/vmod_dynamic.h:181: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:667: libvmod_dynamic.la] Error 1
make[2]: Leaving directory '/src/libvmod-dynamic/src'
make[1]: *** [Makefile:499: all-recursive] Error 1
make[1]: Leaving directory '/src/libvmod-dynamic'
make: *** [Makefile:410: all] Error 2

Command to start container:

docker run -ti --rm --name debian debian:bullseye-20210311-slim
nigoroll commented 3 years ago

dup #68