我刚刚从git-repository中克隆了最新的清漆2.1。 网站上列出的所有依赖关系都已安装。 我运行以下命令:
./autogen.sh -> works fine ./configure -> works fine too
但
make -> fails
出现以下错误:
make[2]: Entering directory `/tmp/Varnish-Cache-2.1/bin/varnishd' if gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include - DVARNISH_STATE_DIR='"/usr/local/var/varnish"' -g -O2 -MT varnishd-instance.o -MD -MP - MF ".deps/varnishd-instance.Tpo" -c -o varnishd-instance.o `test -f 'instance.c' || echo './'`instance.c; \ then mv -f ".deps/varnishd-instance.Tpo" ".deps/varnishd-instance.Po"; else rm -f ".deps/varnishd-instance.Tpo"; exit 1; fi instance.c:1: error: expected identifier or '(' before '.' token instance.c:1:35: warning: no newline at end of file make[2]: *** [varnishd-instance.o] Error 1 make[2]: Leaving directory `/tmp/Varnish-Cache-2.1/bin/varnishd' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/tmp/Varnish-Cache-2.1/bin' make: *** [install-recursive] Error 1
我正在build立在相当老的SUSE 10.3上; 不要问为什么。 有任何想法吗?
目前我不明白我做了什么,但它取代了内容后的工作
斌/ varnishd / instance.c
(其中只包含lib / libvarnishapi / instance.c的path,不包含任何内容)
由的内容
LIB / libvarnishapi / instance.c
在这之后,制作成功完成