Skip to content
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

Build errors (mhash redefinitions) #9

Closed
gdlx opened this issue Jun 16, 2015 · 3 comments
Closed

Build errors (mhash redefinitions) #9

gdlx opened this issue Jun 16, 2015 · 3 comments

Comments

@gdlx
Copy link

gdlx commented Jun 16, 2015

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
Copy link

michbsd commented Nov 11, 2015

I have the same issue on FreeBSD...

@rezan
Copy link
Contributor

rezan commented Dec 14, 2015

Please see this comment:

#10 (comment)

fgsch added a commit that referenced this issue Dec 14, 2015
mhash.h pulls mhash_config.h, which clashes with config.h.

Fixes #9 and #10
fgsch added a commit that referenced this issue Dec 14, 2015
Fix #9 and #10 for real.
@fgsch
Copy link
Contributor

fgsch commented Dec 14, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants