varnish / libvmod-digest

Digest and HMAC vmod
Other
50 stars 27 forks source link

Build errors (mhash redefinitions) #9

Closed gdlx closed 8 years ago

gdlx commented 9 years ago

When building the master branch with gcc 4.8.3 on CentOS 7.1 with Varnish 4.0.3, I get the following errors:

In file included from vmod_digest.c:50:0:
../config.h:51:0: error: "PACKAGE" redefined [-Werror]
 #define PACKAGE "libvmod-digest"
 ^
In file included from /usr/include/mutils/mhash.h:30:0,
                 from /usr/include/mhash.h:10,
                 from vmod_digest.c:42:
/usr/local/include/mutils/mhash_config.h:186:0: note: this is the location of the previous definition
 #define PACKAGE "mhash"
 ^
In file included from vmod_digest.c:50:0:
../config.h:54:0: error: "PACKAGE_BUGREPORT" redefined [-Werror]
 #define PACKAGE_BUGREPORT ""
 ^
In file included from /usr/include/mutils/mhash.h:30:0,
                 from /usr/include/mhash.h:10,
                 from vmod_digest.c:42:
/usr/local/include/mutils/mhash_config.h:189:0: note: this is the location of the previous definition
 #define PACKAGE_BUGREPORT "mhash-devel@sourceforge.net"
 ^
In file included from vmod_digest.c:50:0:
../config.h:57:0: error: "PACKAGE_NAME" redefined [-Werror]
 #define PACKAGE_NAME "libvmod-digest"
 ^
In file included from /usr/include/mutils/mhash.h:30:0,
                 from /usr/include/mhash.h:10,
                 from vmod_digest.c:42:
/usr/local/include/mutils/mhash_config.h:192:0: note: this is the location of the previous definition
 #define PACKAGE_NAME "MHASH"
 ^
In file included from vmod_digest.c:50:0:
../config.h:60:0: error: "PACKAGE_STRING" redefined [-Werror]
 #define PACKAGE_STRING "libvmod-digest trunk"
 ^
In file included from /usr/include/mutils/mhash.h:30:0,
                 from /usr/include/mhash.h:10,
                 from vmod_digest.c:42:
/usr/local/include/mutils/mhash_config.h:195:0: note: this is the location of the previous definition
 #define PACKAGE_STRING "MHASH 0.9.9"
 ^
In file included from vmod_digest.c:50:0:
../config.h:63:0: error: "PACKAGE_TARNAME" redefined [-Werror]
 #define PACKAGE_TARNAME "libvmod-digest"
 ^
In file included from /usr/include/mutils/mhash.h:30:0,
                 from /usr/include/mhash.h:10,
                 from vmod_digest.c:42:
/usr/local/include/mutils/mhash_config.h:198:0: note: this is the location of the previous definition
 #define PACKAGE_TARNAME "mhash"
 ^
In file included from vmod_digest.c:50:0:
../config.h:69:0: error: "PACKAGE_VERSION" redefined [-Werror]
 #define PACKAGE_VERSION "trunk"
 ^
In file included from /usr/include/mutils/mhash.h:30:0,
                 from /usr/include/mhash.h:10,
                 from vmod_digest.c:42:
/usr/local/include/mutils/mhash_config.h:201:0: note: this is the location of the previous definition
 #define PACKAGE_VERSION "0.9.9"
 ^
In file included from vmod_digest.c:50:0:
../config.h:97:0: error: "VERSION" redefined [-Werror]
 #define VERSION "trunk"
 ^
In file included from /usr/include/mutils/mhash.h:30:0,
                 from /usr/include/mhash.h:10,
                 from vmod_digest.c:42:
/usr/local/include/mutils/mhash_config.h:213:0: note: this is the location of the previous definition
 #define VERSION "0.9.9"
 ^

I had no problem building with Varnish 4.0.2/CentOS 7.0 a few months ago... Tried to un/re-install mhash + mhash-devel with no effect.

michbsd commented 8 years ago

I have the same issue on FreeBSD...

rezan commented 8 years ago

Please see this comment:

https://github.com/varnish/libvmod-digest/issues/10#issuecomment-164536977

fgsch commented 8 years ago

Sorry for the delay. It should be fixed now. If you still ran into any issues please raise a new bug. Thanks!