summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2020-01-17 09:08:29 -0500
committerThomas Markwalder <tmark@isc.org>2020-01-17 09:08:29 -0500
commit39788b3dac39881f456d7aa1b6147ae7459ea4e3 (patch)
tree718ed81b73bc9983d54ea6e8d25b2762b2467905
parent31e68e5e3b863a4859562e0bb808888d74af7497 (diff)
downloadisc-dhcp-39788b3dac39881f456d7aa1b6147ae7459ea4e3.tar.gz
[#80] Fixed unresolved symbol errors linking relay_unittests with libtool80-new-relay-unit-test-code-fails-to-link-using-libtool-under-fedora-30-centos-8
modified: RELNOTES modified: relay/tests/relay_unittests.c
-rw-r--r--RELNOTES4
-rw-r--r--relay/tests/relay_unittests.c26
2 files changed, 30 insertions, 0 deletions
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);
+}