From 39788b3dac39881f456d7aa1b6147ae7459ea4e3 Mon Sep 17 00:00:00 2001 From: Thomas Markwalder Date: Fri, 17 Jan 2020 09:08:29 -0500 Subject: [#80] Fixed unresolved symbol errors linking relay_unittests with libtool modified: RELNOTES modified: relay/tests/relay_unittests.c --- RELNOTES | 4 ++++ relay/tests/relay_unittests.c | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/RELNOTES b/RELNOTES index 3f30db2b..30c8a48b 100644 --- a/RELNOTES +++ b/RELNOTES @@ -124,6 +124,10 @@ by Eric Young (eay@cryptsoft.com). & Mitigations for reporting the issue. [#71] +- Corrected unresolved symbol errors building relay_unittests when + configured to build using libtool. + [#80] + Changes since 4.4.1 (New Features) - A new configuration parameter, ping-cltt-secs (v4 operation only), has diff --git a/relay/tests/relay_unittests.c b/relay/tests/relay_unittests.c index dd30bf2f..2297050a 100644 --- a/relay/tests/relay_unittests.c +++ b/relay/tests/relay_unittests.c @@ -406,3 +406,29 @@ ATF_TP_ADD_TCS(tp) { return (atf_no_error()); } + +/* Below are dummy function definitions to satisfy "required" symbols */ +isc_result_t find_class (struct class **c, const char *s, + const char *file, int line) { + return 0; +} + +int check_collection (struct packet *packet, struct lease *lease, + struct collection *collection) { + return 0; +} + +void classify (struct packet *packet, struct class *class){} +void bootp(struct packet *packet){} +void dhcp(struct packet *packet){} +void dhcpv6(struct packet *packet){} + +int parse_allow_deny (struct option_cache **oc, struct parse *cfile, + int flag) { + return 0; +} + +isc_result_t dhcp_set_control_state (control_object_state_t oldstate, + control_object_state_t newstate) { + return (ISC_R_SUCCESS); +} -- cgit v1.2.1