https://bugs.openldap.org/show_bug.cgi?id=9739

--- Comment #7 from [email protected] <[email protected]> ---
1. error of "symbol not defined" reported by ld.ldd can be fixed by add ldflags
"-Wl,--undefined-version", i.e., restore the old behavior that undefined
symbols in shared libraries are allowed.

2.undefined reference to `ber_sockbuf_io_udp' can be fixed by patch below,
enclosed the ber_sockbuf_io_udp by #ifdef, I search the code, all the user of
ber_sockbuf_io_udp are enclosed by #ifdef, so it make no sense to not include
it too.

diff --git a/include/lber.h b/include/lber.h
index 530359dc92..fd4957ddcd 100644
--- a/include/lber.h
+++ b/include/lber.h
@@ -590,7 +590,9 @@ LBER_V( Sockbuf_IO ) ber_sockbuf_io_tcp;
 LBER_V( Sockbuf_IO ) ber_sockbuf_io_readahead;
 LBER_V( Sockbuf_IO ) ber_sockbuf_io_fd;
 LBER_V( Sockbuf_IO ) ber_sockbuf_io_debug;
+#ifdef LDAP_CONNECTIONLESS
 LBER_V( Sockbuf_IO ) ber_sockbuf_io_udp;
+#endif

 /*
  * LBER memory.c

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to