static linking, libc multiple definitions

Sean Bruno sbruno at ignoranthack.me
Sun Apr 6 15:55:28 UTC 2014


Doing static linking of qemu bsd user applications and I seem to get a
lot of warnings about multiple symbols in libc.  What's going on here?


/usr/lib/libc.a(svc_simple.o): warning: multiple common of
`__svc_maxrec'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(svc_simple.o): warning: multiple common of
`__svc_xports'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(svc_generic.o): warning: multiple common of
`__svc_maxrec'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(svc_generic.o): warning: multiple common of
`__svc_xports'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(svc_dg.o): warning: multiple common of `__svc_maxrec'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(svc_dg.o): warning: multiple common of `__svc_xports'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(clnt_bcast.o): warning: multiple common of
`__svc_maxrec'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(clnt_bcast.o): warning: multiple common of
`__svc_xports'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(svc_vc.o): warning: multiple common of `__svc_maxrec'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(svc_vc.o): warning: multiple common of `__svc_xports'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(svc.o): warning: multiple common of `__svc_maxrec'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(svc.o): warning: multiple common of `__svc_xports'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(pmap_clnt.o): warning: multiple common of `__svc_maxrec'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(pmap_clnt.o): warning: multiple common of `__svc_xports'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(clnt_generic.o): warning: multiple common of
`__svc_maxrec'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(clnt_generic.o): warning: multiple common of
`__svc_xports'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(clnt_dg.o): warning: multiple common of `__svc_maxrec'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(clnt_dg.o): warning: multiple common of `__svc_xports'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(clnt_vc.o): warning: multiple common of `__svc_maxrec'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(clnt_vc.o): warning: multiple common of `__svc_xports'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(xdr_rec.o): warning: multiple common of `__svc_maxrec'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(xdr_rec.o): warning: multiple common of `__svc_xports'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(rpc_generic.o): warning: multiple common of
`__svc_maxrec'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(rpc_generic.o): warning: multiple common of
`__svc_xports'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(getnetconfig.o): warning: multiple common of
`__svc_maxrec'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(getnetconfig.o): warning: multiple common of
`__svc_xports'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(rpcb_clnt.o): warning: multiple common of `__svc_maxrec'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here
/usr/lib/libc.a(rpcb_clnt.o): warning: multiple common of `__svc_xports'
/usr/lib/libc.a(rpc_soc.o): warning: previous common is here

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20140406/5ad916a9/attachment.sig>


More information about the freebsd-current mailing list