Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2015 08:08:26 -0800
From:      Manfred Antar <null@pozo.com>
To:        freebsd-current@freebsd.org
Cc:        adrian@freebsd.org
Subject:   build world broken amd64 current at ifconfig if WITHOUT_DYNAMICROOT=yes is set in src.conf
Message-ID:  <1B1A1A0C-56A9-40D6-B3DC-2B36F7409E3C@pozo.com>

next in thread | raw e-mail | index | archive | help
make build world is broken at /usr/src/sbin/ifconfig if you have WITHOUT_DY=
NAMICROOT=3Dyes in src.conf:

cc -O2 -pipe -DINET6 -DINET -DJAIL -Wall -Wmissing-prototypes -Wcast-qual -=
Wwrite-strings -Wnested-externs -std=3Dgnu99 -fstack-protector-strong -Wsys=
tem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno=
-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautologic=
al-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function=
 -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enu=
m -Wno-knr-promoted-parameter -Qunused-arguments  -static -o ifconfig ifcon=
fig.o af_link.o af_inet.o af_inet6.o af_nd6.o ifclone.o ifmac.o ifmedia.o i=
ffib.o ifvlan.o ifvxlan.o ifgre.o ifgif.o sfp.o ifieee80211.o carp.o ifgrou=
p.o ifpfsync.o ifbridge.o iflagg.o   -lm  -lbsdxml  -lsbuf  -l80211  -ljail
/usr/lib/lib80211.a(lib80211_regdomain.o): In function `lib80211_regdomain_=
readconfig':
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x4d): undefined referenc=
e to `XML_ParserCreate'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x5b): undefined referenc=
e to `XML_SetUserData'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x6d): undefined referenc=
e to `XML_SetElementHandler'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x7a): undefined referenc=
e to `XML_SetCharacterDataHandler'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x8c): undefined referenc=
e to `XML_Parse'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x9d): undefined referenc=
e to `XML_ParserFree'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x497): undefined referen=
ce to `XML_GetErrorCode'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x49e): undefined referen=
ce to `XML_ErrorString'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x4a9): undefined referen=
ce to `XML_GetCurrentLineNumber'
/usr/lib/lib80211.a(lib80211_regdomain.o): In function `start_element':
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x5ac): undefined referen=
ce to `sbuf_new'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x779): undefined referen=
ce to `XML_GetCurrentLineNumber'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x7ec): undefined referen=
ce to `XML_GetCurrentLineNumber'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x99b): undefined referen=
ce to `XML_GetCurrentLineNumber'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x9ae): undefined referen=
ce to `XML_GetCurrentLineNumber'
/usr/lib/lib80211.a(lib80211_regdomain.o): In function `end_element':
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xa4e): undefined referen=
ce to `sbuf_finish'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xa5c): undefined referen=
ce to `sbuf_data'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xa6d): undefined referen=
ce to `sbuf_len'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xbfb): undefined referen=
ce to `XML_GetCurrentLineNumber'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xd1b): undefined referen=
ce to `XML_GetCurrentLineNumber'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xdee): undefined referen=
ce to `XML_GetCurrentLineNumber'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xe31): undefined referen=
ce to `XML_GetCurrentLineNumber'
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xe9a): undefined referen=
ce to `XML_GetCurrentLineNumber'
/usr/lib/lib80211.a(lib80211_regdomain.o):/usr/src/lib/lib80211/lib80211_re=
gdomain.c:(.text+0xebf): more undefined references to `XML_GetCurrentLineNu=
mber' follow
/usr/lib/lib80211.a(lib80211_regdomain.o): In function `end_element':
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0xfcc): undefined referen=
ce to `sbuf_delete'
/usr/lib/lib80211.a(lib80211_regdomain.o): In function `char_data':
/usr/src/lib/lib80211/lib80211_regdomain.c:(.text+0x1155): undefined refere=
nce to `sbuf_bcat'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** 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

Then it works:
(ifconfig)5076}make
cc -O2 -pipe -DINET6 -DINET -DJAIL -Wall -Wmissing-prototypes -Wcast-qual -=
Wwrite-strings -Wnested-externs -std=3Dgnu99 -fstack-protector-strong -Wsys=
tem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno=
-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautologic=
al-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function=
 -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enu=
m -Wno-knr-promoted-parameter -Qunused-arguments  -static -o ifconfig ifcon=
fig.o af_link.o af_inet.o af_inet6.o af_nd6.o ifclone.o ifmac.o ifmedia.o i=
ffib.o ifvlan.o ifvxlan.o ifgre.o ifgif.o sfp.o ifieee80211.o carp.o ifgrou=
p.o ifpfsync.o ifbridge.o iflagg.o   -lm  -l80211  -lbsdxml  -lsbuf  -ljail
gzip -cn /usr/src/sbin/ifconfig/ifconfig.8 > ifconfig.8.gz




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1B1A1A0C-56A9-40D6-B3DC-2B36F7409E3C>