Wireshark-bugs: [Wireshark-bugs] [Bug 10301] New: config.h in source tree affects out-of-tree bu
Date: Wed, 23 Jul 2014 09:13:19 +0000
Bug ID 10301
Summary config.h in source tree affects out-of-tree builds (cmake-only?)
Classification Unclassified
Product Wireshark
Version 1.12.0
Hardware x86
OS All
Status UNCONFIRMED
Severity Major
Priority Low
Component Common utilities (libwsutil)
Assignee bugzilla-admin@wireshark.org
Reporter peter@lekensteyn.nl

Build Information:
v1.99.0-rc1-978-g397ce1f
--
While building with -DENABLE_LIBGCRYPT=1, I got these errors:

CMakeFiles/capinfos.dir/capinfos.c.o: In function `main':
capinfos.c:1444: undefined reference to `gcry_check_version'
capinfos.c:1445: undefined reference to `gcry_md_open'
capinfos.c:1447: undefined reference to `gcry_md_enable'
capinfos.c:1448: undefined reference to `gcry_md_enable'
capinfos.c:1467: undefined reference to `gcry_md_write'
capinfos.c:1469: undefined reference to `gcry_md_ctl'
capinfos.c:1470: undefined reference to `gcry_md_read'
capinfos.c:1471: undefined reference to `gcry_md_read'
capinfos.c:1472: undefined reference to `gcry_md_read'
capinfos.c:1475: undefined reference to `gcry_md_reset'
collect2: error: ld returned 1 exit status
CMakeFiles/capinfos.dir/build.make:114: recipe for target 'run/capinfos' failed

Something was defining HAVE_LIBGCRYPT, but I could not locate anything in the
build tree. Using these commands I was able to track down the issue:

make VERBOSE=1
cpp [make's cc command with `-c *.o` removed] | grep -Po '[^"]+\.h(?=")' | sort
-u | xargs grep -Hn HAVE_LIBGCRYPT

Turns out that I had a config.h in my source tree which affected this.


You are receiving this mail because:
  • You are watching all bug changes.