2.2.0-alpha2 - inet_aton missing on ReliantUNIX
Toomas Soome
tsoome at ut.ee
Thu Feb 1 07:13:20 GMT 2001
Andrej Borsenkow wrote:
>
> Linking bin/smbd
> Undefined first referenced
> symbol in file
> inet_aton smbd/password.o
> ld: bin/smbd: fatal error: Symbol referencing errors. No output written to
> bin/smbd
>
> inet_aton was not used in alpha1 (or 2.0.x). Is it really needed? In this case
> some fallback implementation would be nice.
>
same for solaris. I replaced it with inet_pton.
diff -u -r1.186.2.11 password.c
--- password.c 2001/01/25 02:59:04 1.186.2.11
+++ password.c 2001/02/01 07:12:34
@@ -1214,7 +1214,7 @@
if (is_ipaddress(server)) {
struct in_addr to_ip;
- if (!inet_aton(server, &to_ip) ||
+ if (!inet_pton(AF_INET, server, &to_ip) ||
!name_status_find(0x20, to_ip, remote_machine)) {
DEBUG(1, ("connect_to_domain_password_server: Can't "
"resolve name for IP %s\n", server));
toomas
--
Vote anarchist.
More information about the samba-technical
mailing list