Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jun 2002 19:28:31 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Gareth Hopkins <gareth@za.uu.net>
Cc:        stable@FreeBSD.org, "Jacques A. Vidrine" <nectar@FreeBSD.org>
Subject:   Re: Problems with make buildworld from 4.3 RELEASE to Current Stable
Message-ID:  <20020603162831.GC84912@sunbay.com>
In-Reply-To: <20020603163151.U59096-100000@gabba.so.cpt1.za.uu.net>
References:  <20020603163151.U59096-100000@gabba.so.cpt1.za.uu.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--bKyqfOwhbdpXa4YI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jun 03, 2002 at 05:14:04PM +0200, Gareth Hopkins wrote:
> Howdie,
>=20
> 	I am trying to upgrade a couple of boxes from 4.3 RELEASE to the
> current stable and am getting the following error (same error on two
> different boxes sofar)
>=20
> cc -O -pipe -I/usr/src/kerberos5/lib/libasn1/../../../crypto/heimdal/incl=
ude  -I/usr/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1 -I/u=
sr/src/kerberos5 /lib/libasn1/../../../crypto/heimdal/lib/roken -I/usr/src/=
kerberos5/lib/libasn1/..  /../include  -I/usr/obj/usr/src/kerberos5/lib/lib=
asn1 -Wall -I/usr/src/kerberos5/li b/libasn1/../../include -I/usr/src/kerbe=
ros5/lib/libasn1/../../include -DHAVE_CONFI G_H -DINET6 /usr/src/kerberos5/=
lib/libasn1/../../../crypto/heimdal/lib/asn1/gen.c /usr/src/kerberos5/lib/l=
ibasn1/../../../crypto/heimdal/lib/asn1/gen_copy.c /usr/src /kerberos5/lib/=
libasn1/../../../crypto/heimdal/lib/asn1/gen_decode.c /usr/src/kerbe ros5/l=
ib/libasn1/../../../crypto/heimdal/lib/asn1/gen_encode.c /usr/src/kerberos5=
/l ib/libasn1/../../../crypto/heimdal/lib/asn1/gen_free.c /usr/src/kerberos=
5/lib/libas n1/../../../crypto/heimdal/lib/asn1/gen_glue.c /usr/src/kerbero=
s5/lib/libasn1/../..  /../crypto/heimdal/lib/asn1/gen_length.c /usr/src/ker=
beros5/lib/libasn1/../../../cr ypto/heimdal/lib/asn1/hash.c /usr/src/kerber=
os5/lib/libasn1/../../../crypto/heimdal /lib/roken/emalloc.c lex.o /usr/src=
/kerberos5/lib/libasn1/../../../crypto/heimdal/l ib/asn1/main.c parse.o /us=
r/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/a sn1/symbol.c /usr=
/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/roken/getar g.c /usr=
/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/roken/warnerr.c prin=
 t_version.o /usr/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/rok=
en/get_wi ndow_size.c /usr/src/kerberos5/lib/libasn1/../../../crypto/heimda=
l/lib/roken/strupr .c -o asn1_compile
> /tmp/cc1kbFDn.o: In function `main': /tmp/cc1kbFDn.o(.text+0x47): undefin=
ed reference to `setprogname'
> /tmp/ccHkcD1A.o: In function `arg_printusage':
> /tmp/ccHkcD1A.o(.text+0x68e): undefined reference to `getprogname'
> /tmp/ccq5EvQS.o: In function `warnerr':
> /tmp/ccq5EvQS.o(.text+0x17): undefined reference to `getprogname'
> print_version.o: In function `print_version':
> print_version.o(.text+0x19): undefined reference to `getprogname'
> *** Error code 1
>=20
> Stop in /usr/src/kerberos5/lib/libasn1.
> *** Error code 1
>=20
> Stop in /usr/src.
> *** Error code 1
>=20
> I have already gone through the make cleandir twice in /usr/src aswell
> as rm -rf /usr/obj/* and then cvsupping again. Still getting the same
> error. I have the following included in the /etc/make.conf
>=20
> MAKE_KERBEROS5=3D yes
> ENABLE_SUID_K5SU=3D yes
>=20
> Anything else that I need to do?
>=20
Please try this patch:

%%%
Index: include/config.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/kerberos5/include/config.h,v
retrieving revision 1.7
diff -u -r1.7 config.h
--- include/config.h	19 Feb 2002 15:53:31 -0000	1.7
+++ include/config.h	3 Jun 2002 16:25:05 -0000
@@ -3,6 +3,8 @@
=20
 /* $FreeBSD: src/kerberos5/include/config.h,v 1.7 2002/02/19 15:53:31 nect=
ar Exp $ */
=20
+#include <osreldate.h>
+
 #ifndef RCSID
 #define RCSID(msg) static /**/const char *const rcsid[] =3D { (const char =
*)rcsid, "\100(#)" msg }
 #endif
@@ -284,7 +286,10 @@
 #define HAVE_GETOPT 1
=20
 /* Define if you have the `getprogname' function. */
+#if (__FreeBSD_version >=3D 430002 && __FreeBSD_version < 500000) || \
+    __FreeBSD_version >=3D 500019
 #define HAVE_GETPROGNAME 1
+#endif
=20
 /* Define if you have the `getpwnam_r' function. */
 /* #undef HAVE_GETPWNAM_R */
@@ -582,7 +587,10 @@
 #define HAVE_SETPROCTITLE 1
=20
 /* Define if you have the `setprogname' function. */
+#if (__FreeBSD_version >=3D 430002 && __FreeBSD_version < 500000) || \
+    __FreeBSD_version >=3D 500019
 #define HAVE_SETPROGNAME 1
+#endif
=20
 /* Define if you have the `setregid' function. */
 #define HAVE_SETREGID 1
Index: lib/libasn1/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/kerberos5/lib/libasn1/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- lib/libasn1/Makefile	14 May 2002 15:27:13 -0000	1.15
+++ lib/libasn1/Makefile	3 Jun 2002 16:25:05 -0000
@@ -106,6 +106,10 @@
 	strupr.c
 	${CC} ${CFLAGS} ${.OODATE} -o ${.TARGET}
=20
+.if defined(BOOTSTRAPPING)
+asn1_compile: getprogname.c setprogname.c
+.endif
+
 parse.o:	parse.c roken.h
=20
 .ORDER: parse.c parse.h
Index: lib/libhdb/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/kerberos5/lib/libhdb/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- lib/libhdb/Makefile	14 May 2002 15:27:13 -0000	1.8
+++ lib/libhdb/Makefile	3 Jun 2002 16:25:05 -0000
@@ -61,6 +61,10 @@
 		get_window_size.c strupr.c
 	${CC} ${CFLAGS} ${.OODATE} -o ${.TARGET}
=20
+.if defined(BOOTSTRAPPING)
+asn1_compile: getprogname.c setprogname.c
+.endif
+
 parse.o:	parse.c
=20
 .ORDER: parse.c parse.h
%%%


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

--bKyqfOwhbdpXa4YI
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE8+5kuUkv4P6juNwoRAsvSAJ9OeSIdlV8lVgCXrSywTHV5x5fHRACeM65H
HRbmTMWDETl97GpNyp+N5pw=
=l09+
-----END PGP SIGNATURE-----

--bKyqfOwhbdpXa4YI--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020603162831.GC84912>