Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jul 2022 18:40:25 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        bob prohaska <fbsd@www.zefox.net>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: ld: error: undefined symbol: xdr_domainname in stable/13
Message-ID:  <C00CA8B4-0C57-46AF-81B6-C10BD008C937@yahoo.com>
In-Reply-To: <20220726201450.GA3984@www.zefox.net>
References:  <20220726201450.GA3984@www.zefox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2022-Jul-26, at 13:14, bob prohaska <fbsd@www.zefox.net> wrote:
>=20
> Just had a buildworld stop with=20
>=20
> ld: error: undefined symbol: xdr_domainname
>>>> referenced by yplib.c:471 (/usr/src/lib/libc/yp/yplib.c:471)
>>>>              yplib.o:(_yp_dobind) in archive =
/usr/obj/usr/src/arm64.aarch64/tmp/usr/lib/lib
> c.a
>>>> referenced by yplib.c:471 (/usr/src/lib/libc/yp/yplib.c:471)
>>>>              yplib.o:(_yp_dobind) in archive =
/usr/obj/usr/src/arm64.aarch64/tmp/usr/lib/lib
> c.a
>>>> referenced by yplib.c:0 (/usr/src/lib/libc/yp/yplib.c:0)
>>>>              yplib.o:(yp_maplist) in archive =
/usr/obj/usr/src/arm64.aarch64/tmp/usr/lib/lib
> c.a
>>>> referenced 1 more times
>=20
> A re-run of git pull on July 26 around 1 pm PDT didn't fix it.=20
> I'm using -DWITH_META_MODE, could that matter?

I do not know overall, but the source code for the routine
is generated by a tool. Your build tree should have ended
up with a:

arm64.aarch64/lib/libc/yp_xdr.c

that contains the source code for that routine --and for others.

It is the compiling of that source and linking with the result
that should provide the definition.

For reference:

# grep -r yp_xdr /usr/13S-src/ | more
/usr/13S-src/lib/libc/yp/Makefile.inc:SRCS+=3D    xdryp.c yp.h yp_xdr.c =
yplib.c
/usr/13S-src/lib/libc/yp/Makefile.inc:CLEANFILES+=3D      yp.h yp_xdr.c
/usr/13S-src/lib/libc/yp/Makefile.inc:yp_xdr.c: ${RPCSRC}
/usr/13S-src/lib/libc/rpc/Symbol.map:   /* =46rom yp_xdr.c (generated by =
rpcgen - include/rpcsvc/yp.x) */

# more /usr/13S-src/lib/libc/yp/Makefile.inc
#       from: @(#)Makefile.inc  5.3 (Berkeley) 2/20/91
# $FreeBSD$

# yp sources
.PATH: ${LIBC_SRCTOP}/yp

SRCS+=3D  xdryp.c yp.h yp_xdr.c yplib.c
CLEANFILES+=3D    yp.h yp_xdr.c

SYM_MAPS+=3D      ${LIBC_SRCTOP}/yp/Symbol.map

RPCSRC=3D ${SRCTOP}/include/rpcsvc/yp.x
RPCGEN=3D RPCGEN_CPP=3D${CPP:Q} rpcgen -C

yp_xdr.c: ${RPCSRC}
        ${RPCGEN} -c -o ${.TARGET} ${RPCSRC}

yp.h: ${RPCSRC}
        ${RPCGEN} -h -o ${.TARGET} ${RPCSRC}

=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C00CA8B4-0C57-46AF-81B6-C10BD008C937>