Fix "make release.4" breakage.

src/contrib/isc-dhcp/includes/minires/resolv.h has a 'extern' definition
but it makes an error when linking crunched binary just like this:

	dhclient.lo: In function `MRres_nquery':
	dhclient.lo(.text+0x2dcce): undefined reference to `__h_errno_set'
	dhclient.lo(.text+0x2dd5b): undefined reference to `__h_errno_set'
	dhclient.lo: In function `MRres_nquerydomain':
	dhclient.lo(.text+0x2de53): undefined reference to `__h_errno_set'

The author understands this will be a problem (see comments in resolv.h).
Murray said that the author will fix this, but as a temporary solution,
modifying the source code and not to use __h_errno_set.

BTW, I'm sorry that previous commitlog in src/sbin/dhclient/Makefile should
read "Found by:" instead of "Confirmed by"; I just found that rev 1.15
has a typo so fixed.

Tested on: ushi.jp.FreeBSD.org with today's 5-current source code.
           (belive me, "make release.4" works fine now)
This commit is contained in:
Makoto Matsushita 2002-02-28 16:17:18 +00:00
parent 677bcc872c
commit 0ed8a30f62
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91490
2 changed files with 6 additions and 3 deletions

View File

@ -30,7 +30,7 @@ OBJS+= dst/base64.o dst/dst_api.o dst/dst_support.o dst/hmac_link.o \
OBJS+= minires/ns_date.o minires/ns_name.o minires/ns_parse%FIXED.o \
minires/ns_samedomain.o minires/ns_sign.o minires/ns_verify.o \
minires/res_comp.o minires/res_findzonecut.o minires/res_init.o \
minires/res_mkquery.o minires/res_mkupdate.o minires/res_query.o \
minires/res_mkquery.o minires/res_mkupdate.o minires/res_query%FIXED.o \
minires/res_send.o minires/res_sendsigned.o minires/res_update.o
# omapi

View File

@ -11,15 +11,18 @@ INTERNALSTATICLIB= true
SRCS= ns_date.c ns_name.c ns_parse%FIXED.c ns_samedomain.c ns_sign.c ns_verify.c \
res_comp.c res_findzonecut.c res_init.c res_mkquery.c res_mkupdate.c \
res_query.c res_send.c res_sendsigned.c res_update.c
res_query%FIXED.c res_send.c res_sendsigned.c res_update.c
CFLAGS+= -DHMAC_MD5 -DMINIRES_LIB
NOMAN= true
CLEANFILES+= ns_parse%FIXED.c
CLEANFILES+= ns_parse%FIXED.c res_query%FIXED.c
ns_parse%FIXED.c: ns_parse.c
sed 's/struct _ns_flagdata _ns_flagdata/struct _ns_flagdata _ns_flagdata_DONT/' \
${.ALLSRC} > ${.TARGET}
res_query%FIXED.c: res_query.c
sed -e 's/RES_SET_H_ERRNO(\(.*\),\(.*\))/(h_errno = (\1)->res_h_errno = (\2))/' \
${.ALLSRC} > ${.TARGET}
.include <bsd.lib.mk>