]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[#80] Fixed unresolved symbol errors linking relay_unittests with libtool
authorThomas Markwalder <tmark@isc.org>
Fri, 17 Jan 2020 14:08:29 +0000 (09:08 -0500)
committerThomas Markwalder <tmark@isc.org>
Fri, 17 Jan 2020 14:08:29 +0000 (09:08 -0500)
modified: RELNOTES
modified: relay/tests/relay_unittests.c

RELNOTES
relay/tests/relay_unittests.c

index 3f30db2b191edc81350d3de7dec6f4a1af8920ee..30c8a48bf19d0e2581fcaba02a4ca08077d785ab 100644 (file)
--- 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
index dd30bf2fcfd3d4932f944432ffdff885eed63195..2297050aeb4f653e8905d723391cd08b76a92ed1 100644 (file)
@@ -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);
+}