From 0ed8a30f6201b6bf4e44d00bb7e2f27520ca497f Mon Sep 17 00:00:00 2001 From: Makoto Matsushita Date: Thu, 28 Feb 2002 16:17:18 +0000 Subject: [PATCH] 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) --- sbin/dhclient/Makefile | 2 +- sbin/dhclient/minires/Makefile | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sbin/dhclient/Makefile b/sbin/dhclient/Makefile index dadebf7b9d04..a59f73bbcdd3 100644 --- a/sbin/dhclient/Makefile +++ b/sbin/dhclient/Makefile @@ -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 diff --git a/sbin/dhclient/minires/Makefile b/sbin/dhclient/minires/Makefile index 32e72a30b76b..046740e1dd9c 100644 --- a/sbin/dhclient/minires/Makefile +++ b/sbin/dhclient/minires/Makefile @@ -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