This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Error cross-compiling glibc-20081013 with connections.c:1831: error: lvalue required as left operand of assignment
- From: "Jason Pernito" <jpernito at gmail dot com>
- To: "Ryan Arnold" <ryan dot arnold at gmail dot com>
- Cc: libc-help at sourceware dot org
- Date: Thu, 6 Nov 2008 10:56:52 +0800
- Subject: Re: Error cross-compiling glibc-20081013 with connections.c:1831: error: lvalue required as left operand of assignment
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ci1EqNBEHp9ZwNhgZSVbobi2PGnphHG979CqevJ8Irw=; b=LA6pQ4s1iZE2AVWEfNkXigkg5v3b+mwZu6XZVeugfiW5iVpv16uXowj1wc1VgW5Y0v Ps1UHQgbUYpIN5d7PZY/EqsXAdrU+mrRE9W5w5axsPT9hFDEfxYcRasFjBm9CJ+ZQtLH lzqIVc1KR568d8zMtIGO2nSPneA59l2W7QP4I=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=oiBDZWNhkvcDYL7L5JQKTaiTecosrHj/Re0NCuS/hkETaWJ5nmL11Xa38ugA+WePwY AiuWTq0raQFldrSjNtFaFlnj/rLyBfM7mZPvOOVrmkspCJZsS2JCYdlsEGUWsnaAqgq0 zIiMPTzi9cW1X6Cy/yCKWZy0kYRkkAUTY+bss=
- References: <56e4071a0810220156x18da0d0ftcd1a20cfbcbae60f@mail.gmail.com> <56e4071a0810220222u178e2c9an5984d6fabec893e2@mail.gmail.com> <ff4da150810220810y61c71719u9e2b9d8296014653@mail.gmail.com> <56e4071a0810222310y2d219d58w926d73fa85eaa2ce@mail.gmail.com> <56e4071a0811050116q5ae5d964sf2a7d96e4c6dc597@mail.gmail.com> <ff4da150811050731u12e04c69x58a6d44473be3d44@mail.gmail.com>
Hi Ryan,
I don't think it's the connections.c that is having problem this time.
It failed during linking nscd because of multiple definition of
`_res_hconf_init'. I looked at nscd/res_hconf.c and it includes
resolv/res_hconf.c causing the linker to barf that function
`_res_hconf_init' was previously defined (already in libc.a via
resolv/res_hconf.o at this point).
I don't know what's the use of nscd/res_hconf.c but I am able to
worked around the problem by removing res_hconf in nscd/Makefile.
I also read a post describing the same problem in the thread: Trouble
cross compiling glibc 2.7 with powerpc 440FP target. His workaround is
to remove res_hconf.o when linking nscd.
Thanks,
-jason
--
"Regard your soldiers as your children,
and they will follow you into the deepest valleys.
Look on them as your beloved sons,
and they will stand by you even unto death!"
- Sun Tzu, the art of war