aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-24 19:34:53 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-24 19:34:53 +0000
commitf1d741415d9af284955122c931118f2bca5ba2d0 (patch)
tree23b70808091aa1abaee37614b18647742b4de5c1
parentd26b19c91736433a783ce22b2d95ed490b6d9ca6 (diff)
downloadgnunet-f1d741415d9af284955122c931118f2bca5ba2d0.tar.gz
gnunet-f1d741415d9af284955122c931118f2bca5ba2d0.zip
-make sure to link against right libgcrypt, enable abort of gnunet-revocation even if identity service is not running
-rw-r--r--src/nse/Makefile.am18
-rw-r--r--src/revocation/Makefile.am3
-rw-r--r--src/revocation/gnunet-revocation.c5
-rw-r--r--src/scalarproduct/Makefile.am3
4 files changed, 20 insertions, 9 deletions
diff --git a/src/nse/Makefile.am b/src/nse/Makefile.am
index 155fa9acb..b60d38d80 100644
--- a/src/nse/Makefile.am
+++ b/src/nse/Makefile.am
@@ -1,7 +1,7 @@
1AM_CPPFLAGS = -I$(top_srcdir)/src/include 1AM_CPPFLAGS = -I$(top_srcdir)/src/include
2 2
3if MINGW 3if MINGW
4 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 4 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5endif 5endif
6 6
7if USE_COVERAGE 7if USE_COVERAGE
@@ -30,7 +30,7 @@ libgnunetnse_la_LDFLAGS = \
30 30
31 31
32libexec_PROGRAMS = \ 32libexec_PROGRAMS = \
33 gnunet-service-nse 33 gnunet-service-nse
34 34
35if HAVE_TESTING 35if HAVE_TESTING
36noinst_PROGRAMS = \ 36noinst_PROGRAMS = \
@@ -46,19 +46,20 @@ gnunet_nse_profiler_LDADD = -lm \
46 $(top_builddir)/src/testbed/libgnunettestbed.la \ 46 $(top_builddir)/src/testbed/libgnunettestbed.la \
47 $(GN_LIBINTL) 47 $(GN_LIBINTL)
48gnunet_nse_profiler_DEPENDENCIES = \ 48gnunet_nse_profiler_DEPENDENCIES = \
49 libgnunetnse.la 49 libgnunetnse.la
50 50
51gnunet_service_nse_SOURCES = \ 51gnunet_service_nse_SOURCES = \
52 gnunet-service-nse.c 52 gnunet-service-nse.c
53gnunet_service_nse_LDADD = \ 53gnunet_service_nse_LDADD = \
54 $(top_builddir)/src/nse/libgnunetnse.la \ 54 $(top_builddir)/src/nse/libgnunetnse.la \
55 $(top_builddir)/src/util/libgnunetutil.la \ 55 $(top_builddir)/src/util/libgnunetutil.la \
56 $(top_builddir)/src/core/libgnunetcore.la \ 56 $(top_builddir)/src/core/libgnunetcore.la \
57 $(top_builddir)/src/statistics/libgnunetstatistics.la \ 57 $(top_builddir)/src/statistics/libgnunetstatistics.la \
58 $(LIBGCRYPT_LIBS) \
58 -lm -lgcrypt \ 59 -lm -lgcrypt \
59 $(GN_LIBINTL) 60 $(GN_LIBINTL)
60gnunet_service_nse_DEPENDENCIES = \ 61gnunet_service_nse_DEPENDENCIES = \
61 libgnunetnse.la 62 libgnunetnse.la
62if ENABLE_NSE_HISTOGRAM 63if ENABLE_NSE_HISTOGRAM
63 gnunet_service_nse_LDADD += \ 64 gnunet_service_nse_LDADD += \
64 $(top_builddir)/src/testbed/libgnunettestbedlogger.la 65 $(top_builddir)/src/testbed/libgnunettestbedlogger.la
@@ -79,7 +80,7 @@ check_PROGRAMS = \
79endif 80endif
80 81
81if ENABLE_TEST_RUN 82if ENABLE_TEST_RUN
82TESTS = $(check_PROGRAMS) 83TESTS = $(check_PROGRAMS)
83endif 84endif
84 85
85test_nse_api_SOURCES = \ 86test_nse_api_SOURCES = \
@@ -87,7 +88,7 @@ test_nse_api_SOURCES = \
87test_nse_api_LDADD = \ 88test_nse_api_LDADD = \
88 $(top_builddir)/src/nse/libgnunetnse.la \ 89 $(top_builddir)/src/nse/libgnunetnse.la \
89 $(top_builddir)/src/testing/libgnunettesting.la \ 90 $(top_builddir)/src/testing/libgnunettesting.la \
90 $(top_builddir)/src/util/libgnunetutil.la 91 $(top_builddir)/src/util/libgnunetutil.la
91 92
92test_nse_multipeer_SOURCES = \ 93test_nse_multipeer_SOURCES = \
93 test_nse_multipeer.c 94 test_nse_multipeer.c
@@ -101,7 +102,8 @@ perf_kdf_SOURCES = \
101 perf_kdf.c 102 perf_kdf.c
102perf_kdf_LDADD = \ 103perf_kdf_LDADD = \
103 $(top_builddir)/src/util/libgnunetutil.la \ 104 $(top_builddir)/src/util/libgnunetutil.la \
104 -lgcrypt 105 $(LIBGCRYPT_LIBS) \
106 -lgcrypt
105 107
106EXTRA_DIST = \ 108EXTRA_DIST = \
107 test_nse.conf \ 109 test_nse.conf \
diff --git a/src/revocation/Makefile.am b/src/revocation/Makefile.am
index 25a171001..18d379b0b 100644
--- a/src/revocation/Makefile.am
+++ b/src/revocation/Makefile.am
@@ -34,6 +34,7 @@ libgnunetrevocation_la_SOURCES = \
34 revocation_api.c revocation.h 34 revocation_api.c revocation.h
35libgnunetrevocation_la_LIBADD = \ 35libgnunetrevocation_la_LIBADD = \
36 $(top_builddir)/src/util/libgnunetutil.la \ 36 $(top_builddir)/src/util/libgnunetutil.la \
37 $(LIBGCRYPT_LIBS) \
37 $(GN_LIBINTL) $(XLIB) -lgcrypt 38 $(GN_LIBINTL) $(XLIB) -lgcrypt
38libgnunetrevocation_la_LDFLAGS = \ 39libgnunetrevocation_la_LDFLAGS = \
39 $(GN_LIB_LDFLAGS) $(WINFLAGS) \ 40 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
@@ -66,7 +67,7 @@ test_revocation_LDADD = \
66 $(top_builddir)/src/testbed/libgnunettestbed.la 67 $(top_builddir)/src/testbed/libgnunettestbed.la
67 68
68check_PROGRAMS = \ 69check_PROGRAMS = \
69 test_revocation 70 test_revocation
70 71
71 72
72check_SCRIPTS = \ 73check_SCRIPTS = \
diff --git a/src/revocation/gnunet-revocation.c b/src/revocation/gnunet-revocation.c
index 59f47ab97..5bb7965bf 100644
--- a/src/revocation/gnunet-revocation.c
+++ b/src/revocation/gnunet-revocation.c
@@ -90,6 +90,11 @@ static void
90do_shutdown (void *cls, 90do_shutdown (void *cls,
91 const struct GNUNET_SCHEDULER_TaskContext *tc) 91 const struct GNUNET_SCHEDULER_TaskContext *tc)
92{ 92{
93 if (NULL != el)
94 {
95 GNUNET_IDENTITY_ego_lookup_cancel (el);
96 el = NULL;
97 }
93 if (NULL != q) 98 if (NULL != q)
94 { 99 {
95 GNUNET_REVOCATION_query_cancel (q); 100 GNUNET_REVOCATION_query_cancel (q);
diff --git a/src/scalarproduct/Makefile.am b/src/scalarproduct/Makefile.am
index 11a937378..0bdc76e3e 100644
--- a/src/scalarproduct/Makefile.am
+++ b/src/scalarproduct/Makefile.am
@@ -29,6 +29,7 @@ gnunet_scalarproduct_SOURCES = \
29gnunet_scalarproduct_LDADD = \ 29gnunet_scalarproduct_LDADD = \
30 $(top_builddir)/src/util/libgnunetutil.la \ 30 $(top_builddir)/src/util/libgnunetutil.la \
31 $(top_builddir)/src/scalarproduct/libgnunetscalarproduct.la \ 31 $(top_builddir)/src/scalarproduct/libgnunetscalarproduct.la \
32 $(LIBGCRYPT_LIBS) \
32 -lgcrypt \ 33 -lgcrypt \
33 $(GN_LIBINTL) 34 $(GN_LIBINTL)
34gnunet_scalarproduct_DEPENDENCIES = \ 35gnunet_scalarproduct_DEPENDENCIES = \
@@ -40,6 +41,7 @@ gnunet_service_scalarproduct_LDADD = \
40 $(top_builddir)/src/util/libgnunetutil.la \ 41 $(top_builddir)/src/util/libgnunetutil.la \
41 $(top_builddir)/src/mesh/libgnunetmesh.la \ 42 $(top_builddir)/src/mesh/libgnunetmesh.la \
42 $(top_builddir)/src/set/libgnunetset.la \ 43 $(top_builddir)/src/set/libgnunetset.la \
44 $(LIBGCRYPT_LIBS) \
43 -lgcrypt \ 45 -lgcrypt \
44 $(GN_LIBINTL) 46 $(GN_LIBINTL)
45 47
@@ -49,6 +51,7 @@ libgnunetscalarproduct_la_SOURCES = \
49libgnunetscalarproduct_la_LIBADD = \ 51libgnunetscalarproduct_la_LIBADD = \
50 $(top_builddir)/src/util/libgnunetutil.la \ 52 $(top_builddir)/src/util/libgnunetutil.la \
51 $(top_builddir)/src/statistics/libgnunetstatistics.la \ 53 $(top_builddir)/src/statistics/libgnunetstatistics.la \
54 $(LIBGCRYPT_LIBS) \
52 -lgcrypt \ 55 -lgcrypt \
53 $(LTLIBINTL) 56 $(LTLIBINTL)
54libgnunetscalarproduct_la_LDFLAGS = \ 57libgnunetscalarproduct_la_LDFLAGS = \