varnish / varnish-modules

Collection of Varnish Cache modules (vmods) by Varnish Software
Other
185 stars 86 forks source link

Missing headers? #29

Closed ghost closed 8 years ago

ghost commented 8 years ago

Trying to build/package this for FreeBSD. These header files are not in your git repo:

===>  Building for varnish-modules-0.9.1
gmake[1]: Entering directory
'/wrkdirs/usr/ports/www/varnish-modules/work/varnish-modules-varnish-modules-0.9.1'
gmake  all-recursive
gmake[2]: Entering directory
'/wrkdirs/usr/ports/www/varnish-modules/work/varnish-modules-varnish-modules-0.9.1'
Making all in src
gmake[3]: Entering directory
'/wrkdirs/usr/ports/www/varnish-modules/work/varnish-modules-varnish-modules-0.9.1/src'
/usr/local/share/varnish/vmodtool.py -w ../docs/ -o vcc_cookie_if
../src/vmod_cookie.vcc
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I.
-I..  -I/usr/local/include/varnish -I../src/foreign -Wall -Werror
-Wunused-parameter -Wmissing-prototypes -I/usr/local/include
-I/usr/local/include/varnish  -O2 -pipe  -I/usr/local/include
-I/usr/local/include/varnish -fstack-protector -fno-strict-aliasing -MT
vmod_cookie.lo -MD -MP -MF .deps/vmod_cookie.Tpo -c -o vmod_cookie.lo
vmod_cookie.c
/usr/local/share/varnish/vmodtool.py -w ../docs/ -o vcc_header_if
../src/vmod_header.vcc
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I.
-I..  -I/usr/local/include/varnish -I../src/foreign -Wall -Werror
-Wunused-parameter -Wmissing-prototypes -I/usr/local/include
-I/usr/local/include/varnish  -O2 -pipe  -I/usr/local/include
-I/usr/local/include/varnish -fstack-protector -fno-strict-aliasing -MT
vmod_header.lo -MD -MP -MF .deps/vmod_header.Tpo -c -o vmod_header.lo
vmod_header.c
/usr/local/share/varnish/vmodtool.py -w ../docs/ -w ../docs/ -o
vcc_saintmode_if ../src/vmod_saintmode.vcc
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I.
-I..  -I/usr/local/include/varnish -I../src/foreign -Wall -Werror
-Wunused-parameter -Wmissing-prototypes -I/usr/local/include
-I/usr/local/include/varnish  -O2 -pipe  -I/usr/local/include
-I/usr/local/include/varnish -fstack-protector -fno-strict-aliasing -MT
vmod_saintmode.lo -MD -MP -MF .deps/vmod_saintmode.Tpo -c -o
vmod_saintmode.lo vmod_saintmode.c
/usr/local/share/varnish/vmodtool.py -w ../docs/ -o vcc_softpurge_if
../src/vmod_softpurge.vcc
/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I.
-I..  -I/usr/local/include/varnish -I../src/foreign -Wall -Werror
-Wunused-parameter -Wmissing-prototypes -I/usr/local/include
-I/usr/local/include/varnish  -O2 -pipe  -I/usr/local/include
-I/usr/local/include/varnish -fstack-protector -fno-strict-aliasing -MT
vmod_softpurge.lo -MD -MP -MF .deps/vmod_softpurge.Tpo -c -o
vmod_softpurge.lo vmod_softpurge.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I..
-I/usr/local/include/varnish -I../src/foreign -Wall -Werror
-Wunused-parameter -Wmissing-prototypes -I/usr/local/include
-I/usr/local/include/varnish -O2 -pipe -I/usr/local/include
-I/usr/local/include/varnish -fstack-protector -fno-strict-aliasing -MT
vmod_cookie.lo -MD -MP -MF .deps/vmod_cookie.Tpo -c vmod_cookie.c  -fPIC
-DPIC -o .libs/vmod_cookie.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I..
-I/usr/local/include/varnish -I../src/foreign -Wall -Werror
-Wunused-parameter -Wmissing-prototypes -I/usr/local/include
-I/usr/local/include/varnish -O2 -pipe -I/usr/local/include
-I/usr/local/include/varnish -fstack-protector -fno-strict-aliasing -MT
vmod_header.lo -MD -MP -MF .deps/vmod_header.Tpo -c vmod_header.c  -fPIC
-DPIC -o .libs/vmod_header.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I..
-I/usr/local/include/varnish -I../src/foreign -Wall -Werror
-Wunused-parameter -Wmissing-prototypes -I/usr/local/include
-I/usr/local/include/varnish -O2 -pipe -I/usr/local/include
-I/usr/local/include/varnish -fstack-protector -fno-strict-aliasing -MT
vmod_softpurge.lo -MD -MP -MF .deps/vmod_softpurge.Tpo -c
vmod_softpurge.c  -fPIC -DPIC -o .libs/vmod_softpurge.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I..
-I/usr/local/include/varnish -I../src/foreign -Wall -Werror
-Wunused-parameter -Wmissing-prototypes -I/usr/local/include
-I/usr/local/include/varnish -O2 -pipe -I/usr/local/include
-I/usr/local/include/varnish -fstack-protector -fno-strict-aliasing -MT
vmod_saintmode.lo -MD -MP -MF .deps/vmod_saintmode.Tpo -c
vmod_saintmode.c  -fPIC -DPIC -o .libs/vmod_saintmode.o
vmod_header.c:36:10: fatal error: 'vcc_header_if.h' file not found
#include "vcc_header_if.h"
         ^
vmod_softpurge.c:34:10: fatal error: 'vcc_softpurge_if.h' file not found
#include "vcc_softpurge_if.h"
         ^
1 error generated.
1 error generated.
vmod_saintmode.c:39:10: fatal error: 'vcc_saintmode_if.h' file not found
#include "vcc_saintmode_if.h"
         ^
gmake[3]: *** [Makefile:572: vmod_header.lo] Error 1
vmod_cookie.c:gmake[3]: *** Waiting for unfinished jobs....
39:10: fatal error: 'vcc_cookie_if.h' file not found
#include "vcc_cookie_if.h"
         ^
gmake[3]: *** [Makefile:572: vmod_softpurge.lo] Error 1
1 error generated.
gmake[3]: *** [Makefile:572: vmod_saintmode.lo] Error 1
1 error generated.
gmake[3]: *** [Makefile:572: vmod_cookie.lo] Error 1
gmake[3]: Leaving directory
'/wrkdirs/usr/ports/www/varnish-modules/work/varnish-modules-varnish-modules-0.9.1/src'
gmake[2]: *** [Makefile:472: all-recursive] Error 1
gmake[2]: Leaving directory
'/wrkdirs/usr/ports/www/varnish-modules/work/varnish-modules-varnish-modules-0.9.1'
gmake[1]: *** [Makefile:383: all] Error 2
gmake[1]: Leaving directory
'/wrkdirs/usr/ports/www/varnish-modules/work/varnish-modules-varnish-modules-0.9.1'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure
to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/www/varnish-modules
fgsch commented 8 years ago

Which varnish version? The modules need 4.1.3 as per https://github.com/varnish/varnish-modules/blob/master/CHANGES.rst

ghost commented 8 years ago

I am using varnish 4.1.3, which is what we have in the ports tree now. Those headers aren't included in varnish 4.1.3 either:

root@skeletor:/usr/ports/www/varnish4/work/varnish-4.1.3 # find . -name '*.h'
./include/vev.h
./include/vend.h
./include/vcurses.h
./include/vsb.h
./include/vin.h
./include/flopen.h
./include/vct.h
./include/vut.h
./include/tbl/vsl_tags_http.h
./include/tbl/sess_close.h
./include/tbl/vcc_types.h
./include/tbl/http_response.h
./include/tbl/vsl_tags.h
./include/tbl/vsc_levels.h
./include/tbl/req_body.h
./include/tbl/locks.h
./include/tbl/vsc_types.h
./include/tbl/vsc_f_main.h
./include/tbl/debug_bits.h
./include/tbl/obj_attr.h
./include/tbl/vrt_stv_var.h
./include/tbl/vsc_all.h
./include/tbl/vsc_fields.h
./include/tbl/http_headers.h
./include/tbl/ban_vars.h
./include/tbl/symbol_kind.h
./include/tbl/steps.h
./include/tbl/acct_fields_bereq.h
./include/tbl/params.h
./include/tbl/req_flags.h
./include/tbl/vcl_returns.h
./include/tbl/feature_bits.h
./include/tbl/bo_flags.h
./include/tbl/body_status.h
./include/tbl/sess_attr.h
./include/tbl/backend_poll.h
./include/tbl/acct_fields_req.h
./include/vrt_obj.h
./include/vcs_version.h
./include/vapi/voptget.h
./include/vapi/vsl_int.h
./include/vapi/vsm_int.h
./include/vapi/vsl.h
./include/vapi/vapi_options.h
./include/vapi/vsc_int.h
./include/vapi/vsm.h
./include/vapi/vsc.h
./include/vut_options.h
./include/vtcp.h
./include/miniobj.h
./include/vsm_priv.h
./include/vsa.h
./include/vrt.h
./include/binary_heap.h
./include/vnum.h
./include/vav.h
./include/vsl_priv.h
./include/vre.h
./include/vcs.h
./include/vcl.h
./include/compat/daemon.h
./include/compat/execinfo.h
./include/vbm.h
./include/vrnd.h
./include/vlu.h
./include/vas.h
./include/vcli_common.h
./include/libvcc.h
./include/vcli.h
./include/vss.h
./include/vmb.h
./include/vcli_priv.h
./include/vsha256.h
./include/vfil.h
./include/vcli_serve.h
./include/vtree.h
./include/vmod_abi.h
./include/vqueue.h
./include/vdef.h
./include/vpf.h
./include/vtim.h
./include/vsub.h
./lib/libvgz/deflate.h
./lib/libvgz/inflate.h
./lib/libvgz/zconf.h
./lib/libvgz/inffast.h
./lib/libvgz/trees.h
./lib/libvgz/inffixed.h
./lib/libvgz/crc32.h
./lib/libvgz/inftrees.h
./lib/libvgz/gzguts.h
./lib/libvgz/zutil.h
./lib/libvgz/vgz.h
./lib/libvarnishapi/vxp_tokens.h
./lib/libvarnishapi/vsm_api.h
./lib/libvarnishapi/vsl_api.h
./lib/libvarnishapi/vxp.h
./lib/libvcc/vcc_compile.h
./lib/libvcc/vcc_token_defs.h
./lib/libvmod_directors/vdir.h
./bin/varnishtop/varnishtop_options.h
./bin/varnishd/storage/storage_persistent.h
./bin/varnishd/storage/storage.h
./bin/varnishd/builtin_vcl.h
./bin/varnishd/cache/cache_filter.h
./bin/varnishd/cache/cache_backend.h
./bin/varnishd/cache/cache_pool.h
./bin/varnishd/cache/cache_esi.h
./bin/varnishd/cache/cache.h
./bin/varnishd/cache/cache_director.h
./bin/varnishd/cache/cache_ban.h
./bin/varnishd/cache/cache_priv.h
./bin/varnishd/waiter/waiter.h
./bin/varnishd/waiter/waiter_priv.h
./bin/varnishd/waiter/mgt_waiter.h
./bin/varnishd/hash/hash_slinger.h
./bin/varnishd/http1/cache_http1.h
./bin/varnishd/mgt/mgt_cli.h
./bin/varnishd/mgt/mgt_param.h
./bin/varnishd/mgt/mgt.h
./bin/varnishd/common/params.h
./bin/varnishd/common/common.h
./bin/varnishd/common/heritage.h
./bin/varnishncsa/base64.h
./bin/varnishncsa/varnishncsa_options.h
./bin/varnishhist/varnishhist_options.h
./bin/varnishtest/vtc.h
./bin/varnishtest/vmods.h
./bin/varnishtest/programs.h
./bin/varnishlog/varnishlog_options.h
./bin/varnishstat/varnishstat.h
fgsch commented 8 years ago

Those headers are created by vmodtool.py when running against the respective .vcc file.

ghost commented 8 years ago

Correct, needed to disable parallel make jobs.