{subsection: Link error} Mar, 9 : resolved some errors. condor_getaddrinfo, condor_getnameinfo +Mar, 12 : most of errors are resolved. get_full_hostname should be converted. {code} -../condor_daemon_core.V6/daemon_core.a(daemon_core.o): In function `DaemonCore::InitDCCommandSocket(int)': -/u/m/_/m/ron_ws/src/condor_daemon_core.V6/daemon_core.cpp:8676: undefined reference to `Sock::get_addr()' -../condor_util_lib/util_lib.a(internet.o): In function `getSockAddr': /u/m/_/m/ron_ws/src/condor_util_lib/internet.c:1024: undefined reference to `my_ip_addr' ../condor_c++_util/cplus_lib.a(my_hostname.o): In function `init_full_hostname': /u/m/_/m/ron_ws/src/condor_c++_util/my_hostname.cpp:140: undefined reference to `get_full_hostname_ipv6(char const*, ipaddr&)' ../condor_c++_util/cplus_lib.a(my_hostname.o): In function `init_ipaddr': -/u/m/_/m/ron_ws/src/condor_c++_util/my_hostname.cpp:176: undefined reference to `ipv6_is_ipaddr(char const*, ipaddr&)' /u/m/_/m/ron_ws/src/condor_c++_util/my_hostname.cpp:209: undefined reference to `get_full_hostname_ipv6(char const*, ipaddr&)' ../condor_io/libcedar.a(sock.o): In function `Sock::get_port()': /u/m/_/m/ron_ws/src/condor_io/sock.cpp:1952: undefined reference to `condor_getsockname(int, ipaddr&)' @@ -83,18 +80,10 @@ ../condor_io/libcedar.a(sock.o): In function `Sock::bind(bool, int, bool)': /u/m/_/m/ron_ws/src/condor_io/sock.cpp:579: undefined reference to `ipv6_my_ip_addr()' ../condor_io/libcedar.a(sock.o): In function `Sock::do_connect(char const*, int, bool)': -/u/m/_/m/ron_ws/src/condor_io/sock.cpp:734: undefined reference to `ipv6_is_ipaddr(char const*, ipaddr&)' /u/m/_/m/ron_ws/src/condor_io/sock.cpp:752: undefined reference to `ipaddr::ipaddr(sockaddr*)' -../condor_io/libcedar.a(safe_sock.o): In function `SafeSock::connect(char const*, int, bool)': -/u/m/_/m/ron_ws/src/condor_io/safe_sock.cpp:277: undefined reference to `ipv6_is_ipaddr(char const*, ipaddr&)' -../condor_io/libcedar.a(condor_ipv6.o): In function `condor_gethostbyaddr_ipv6(ipaddr const&)': -/u/m/_/m/ron_ws/src/condor_io/condor_ipv6.cpp:129: undefined reference to `ipaddr::get_socklen() const' -../condor_io/libcedar.a(condor_ipv6.o): In function `condor_getnameinfo(ipaddr const&, char*, unsigned int, char*, unsigned int, unsigned int)': -/u/m/_/m/ron_ws/src/condor_io/condor_ipv6.cpp:108: undefined reference to `ipaddr::get_socklen() const' ../condor_io/libcedar.a(condor_auth_x509.o): In function `getDaemonList(ReliSock*)': -/u/m/_/m/ron_ws/src/condor_io/condor_auth_x509.cpp:478: undefined reference to `ipv6_to_hostname(ipaddr const&, char*, int)' +/u/m/_/m/ron_ws/src/condor_io/condor_auth_x509.cpp:480: undefined reference to `ipaddr::to_hostname(char*, int) const' collect2: ld returned 1 exit status -make: *** [condor_dcskel] Error 1 {endcode} {section: Note for constants} @@ -102,6 +91,16 @@ MAXMACHNAME : seen in file_transfer_db.c, stores the result of sin_to_hostname. +{section: Converting utility functions} + +{subsection: get_full_hostname} + +It uses gethostbyname() which has been obsoleted. It should call getaddrinfo() instead. The function has about 150-200 lines of code. At the end of function, it tail-calls get_full_hostname_from_hostent(). struct hostent is also deprecated structure. + +It requires overhaul from interface to implementation. + +Importance: ? + {section: IpVerify} [zach] implemented by mostly Todd, and little bit by Zach and Dan.