From: Thomas Markwalder Date: Fri, 17 Jan 2020 14:08:29 +0000 (-0500) Subject: [#80] Fixed unresolved symbol errors linking relay_unittests with libtool X-Git-Tag: v4_4_2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39788b3dac39881f456d7aa1b6147ae7459ea4e3;p=thirdparty%2Fdhcp.git [#80] Fixed unresolved symbol errors linking relay_unittests with libtool modified: RELNOTES modified: relay/tests/relay_unittests.c --- diff --git a/RELNOTES b/RELNOTES index 3f30db2b1..30c8a48bf 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 dd30bf2fc..2297050ae 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); +}