Date: Tue, 1 Sep 1998 17:53:19 -0700 (PDT) From: John Polstra <jdp@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/lib/libc/net Makefile.inc inet_addr.c inet_lnaof.c inet_makeaddr.c inet_net_ntop.c inet_net_pton.c inet_neta.c inet_netof.c inet_network.c inet_ntoa.c inet_ntop.c inet_pton.c nsap_addr.c res_comp.c res_debug.c res_init.c res_mkquery.c ... Message-ID: <199809020053.RAA24407@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jdp 1998/09/01 17:53:19 PDT Modified files: lib/libc/net Makefile.inc inet_addr.c inet_lnaof.c inet_makeaddr.c inet_net_ntop.c inet_net_pton.c inet_neta.c inet_netof.c inet_network.c inet_ntoa.c inet_ntop.c inet_pton.c nsap_addr.c res_comp.c res_debug.c res_init.c res_mkquery.c res_query.c res_send.c Removed files: lib/libc/net res_stubs.c Log: Implement the weak aliases for private entry points in the inet_* and res_* modules in a way that works for ELF. I moved the aliases out of res_stubs.c and into the individual modules where the entry points are defined. Weak aliases don't work in ELF unless that is the case. (Actually, I'm surprised it worked for a.out.) This should fix the undefined "inet_addr" and related symbols in various applications that fail to include <arpa/inet.h> or <resolv.h> as they are supposed to do. Revision Changes Path 1.28 +2 -2 src/lib/libc/net/Makefile.inc 1.6 +10 -1 src/lib/libc/net/inet_addr.c 1.2 +7 -0 src/lib/libc/net/inet_lnaof.c 1.2 +7 -0 src/lib/libc/net/inet_makeaddr.c 1.4 +8 -1 src/lib/libc/net/inet_net_ntop.c 1.5 +8 -1 src/lib/libc/net/inet_net_pton.c 1.5 +8 -1 src/lib/libc/net/inet_neta.c 1.2 +7 -0 src/lib/libc/net/inet_netof.c 1.5 +7 -0 src/lib/libc/net/inet_network.c 1.3 +7 -0 src/lib/libc/net/inet_ntoa.c 1.5 +8 -1 src/lib/libc/net/inet_ntop.c 1.5 +8 -1 src/lib/libc/net/inet_pton.c 1.6 +10 -1 src/lib/libc/net/nsap_addr.c 1.15 +10 -1 src/lib/libc/net/res_comp.c 1.16 +22 -1 src/lib/libc/net/res_debug.c 1.16 +8 -1 src/lib/libc/net/res_init.c 1.14 +8 -1 src/lib/libc/net/res_mkquery.c 1.17 +12 -1 src/lib/libc/net/res_query.c 1.25 +10 -1 src/lib/libc/net/res_send.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809020053.RAA24407>