libwrap: hosts_ctl undefined reference.
Code:
build@ws1:/tmp/gophernicus-2.5$ make |
I think this happens because the static library containing the symbol is on the commandline (-lwrap) before the object that needs it (gophernicus.o). If you reverse the two, it should work.
|
Quote:
There's a patch for "shared libwrap": tcp_wrappers-7.6-shared_lib_plus_plus-1.patch http://www.linuxfromscratch.org/patc...s_plus-1.patch Example, tcp_wrappers-7.6 Code:
tar xvf tcp_wrappers_7.6.tar.gz - |
Quote:
Code:
/usr/lib64/gcc/x86_64-slackware-linux/7.1.0/../../../../lib64/libwrap.a(hosts_access.o): In function `host_match': I'm afraid the author of this isn't very good at makefiles, in fact it's pretty damn horrid. aside: Does one get away with this mis-ordering when using .so's? because it's not something I've ever run into before, and I'm pretty sure I've commonly seen libraries listed first on compiler invocations. |
This is typical when using code from static libraries.
|
All times are GMT -5. The time now is 12:33 PM. |