Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2015 09:39:32 -0800
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Manfred Antar <null@pozo.com>, freebsd-current@freebsd.org
Cc:        adrian@freebsd.org
Subject:   Re: build world broken amd64 current at ifconfig if WITHOUT_DYNAMICROOT=yes is set in src.conf
Message-ID:  <565DDB54.80705@FreeBSD.org>
In-Reply-To: <565DD897.1040106@FreeBSD.org>
References:  <1B1A1A0C-56A9-40D6-B3DC-2B36F7409E3C@pozo.com> <565DD897.1040106@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--SmQodgbm0rALkcVwxAKbM9em7UjuUCC4U
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 12/1/2015 9:27 AM, Bryan Drewery wrote:
> On 12/1/2015 8:08 AM, Manfred Antar wrote:
>> make build world is broken at /usr/src/sbin/ifconfig if you have WITHO=
UT_DYNAMICROOT=3Dyes in src.conf:
>>
>> cc -O2 -pipe -DINET6 -DINET -DJAIL -Wall -Wmissing-prototypes -Wcast-q=
ual -Wwrite-strings -Wnested-externs -std=3Dgnu99 -fstack-protector-stron=
g -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-=
sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno=
-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-un=
used-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch =
-Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-arguments  -static =
-o ifconfig ifconfig.o af_link.o af_inet.o af_inet6.o af_nd6.o ifclone.o =
ifmac.o ifmedia.o iffib.o ifvlan.o ifvxlan.o ifgre.o ifgif.o sfp.o ifieee=
80211.o carp.o ifgroup.o ifpfsync.o ifbridge.o iflagg.o   -lm  -lbsdxml  =
-lsbuf  -l80211  -ljail
>> /usr/lib/lib80211.a(lib80211_regdomain.o): In function `lib80211_regdo=
main_readconfig':
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x4d): undefined ref=
erence to `XML_ParserCreate'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x5b): undefined ref=
erence to `XML_SetUserData'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x6d): undefined ref=
erence to `XML_SetElementHandler'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x7a): undefined ref=
erence to `XML_SetCharacterDataHandler'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x8c): undefined ref=
erence to `XML_Parse'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x9d): undefined ref=
erence to `XML_ParserFree'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x497): undefined re=
ference to `XML_GetErrorCode'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x49e): undefined re=
ference to `XML_ErrorString'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x4a9): undefined re=
ference to `XML_GetCurrentLineNumber'
>> /usr/lib/lib80211.a(lib80211_regdomain.o): In function `start_element'=
:
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x5ac): undefined re=
ference to `sbuf_new'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x779): undefined re=
ference to `XML_GetCurrentLineNumber'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x7ec): undefined re=
ference to `XML_GetCurrentLineNumber'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x99b): undefined re=
ference to `XML_GetCurrentLineNumber'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x9ae): undefined re=
ference to `XML_GetCurrentLineNumber'
>> /usr/lib/lib80211.a(lib80211_regdomain.o): In function `end_element':
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xa4e): undefined re=
ference to `sbuf_finish'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xa5c): undefined re=
ference to `sbuf_data'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xa6d): undefined re=
ference to `sbuf_len'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xbfb): undefined re=
ference to `XML_GetCurrentLineNumber'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xd1b): undefined re=
ference to `XML_GetCurrentLineNumber'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xdee): undefined re=
ference to `XML_GetCurrentLineNumber'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xe31): undefined re=
ference to `XML_GetCurrentLineNumber'
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xe9a): undefined re=
ference to `XML_GetCurrentLineNumber'
>> /usr/lib/lib80211.a(lib80211_regdomain.o):/usr/src/lib/lib80211/lib802=
11_regdomain.c:(.text+0xebf): more undefined references to `XML_GetCurren=
tLineNumber' follow
>> /usr/lib/lib80211.a(lib80211_regdomain.o): In function `end_element':
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xfcc): undefined re=
ference to `sbuf_delete'
>> /usr/lib/lib80211.a(lib80211_regdomain.o): In function `char_data':
>> /usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x1155): undefined r=
eference to `sbuf_bcat'
>> cc: error: linker command failed with exit code 1 (use -v to see invoc=
ation)
>> *** Error code 1
>>
>> Stop.
>> make: stopped in /usr/src/sbin/ifconfig
>>
>> The order of the library linking needs to be changed from:
>> LIBADD+=3D	bsdxml sbuf 80211
>> to
>> LIBADD+=3D	80211 bsdxml sbuf
>>
>=20
> The fix is worse than that, it is an obscure thing in src.libnames.mk.
> Dependencies are supposed to be duplicated there for this exact case.
> I'll fix it there.
>=20

lib80211 was also underlinked.

Fixed in r291600.


--=20
Regards,
Bryan Drewery


--SmQodgbm0rALkcVwxAKbM9em7UjuUCC4U
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJWXdtVAAoJEDXXcbtuRpfP3m8IAJimdi4cJXHqqIpEmdtVqKXC
UPbUfec19o3lWY4sq99LZgL4w8M/IejSj3ldnVAD58ovSJ2XiOzAqQSyThiNVDja
cKQMuj9UaSxGt4XfizG9owpCUxgSSiF2gM77gBSl5UgXnwa91z4Jmrek1OAzC/hx
AoTogrQQvJA3NeMVzGXvXEJU1JubUsEDVczEASa2BGLjuv6lwddjjC2NU+JpLTmG
5qAJh0yRhAuH/pBCMlCbiTwCv9VW5kYVSikUbredJT4tZsUvq1t7OfPDzZdTX6J9
f7NF66CPWHAntt0q7nfgE/5jzV2n+UzLYCytX5gneOT7geum0yi5+6uN7pLhiV8=
=SDee
-----END PGP SIGNATURE-----

--SmQodgbm0rALkcVwxAKbM9em7UjuUCC4U--



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