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: libc-help at sourceware dot org
- Date: Wed, 22 Oct 2008 17:22:06 +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:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=klKT1KYveZW78nCUFIl6p2ERXkFWqOeZlfP66Gukkfs=; b=OFOZ+vCqQuSJ0rPSqpuYywkI+18c2pA3oZf1189VsYMoMPRybVGKeloTg7b5Ke0PJD sDoTYmfWjyK514ebIr7S+0zOUtxSX26keaJqUX43pT81KGm1DjbrwWT8yMgdbuVaL/8H EN9yclipXY25XvlMGuT5e+rejDeynxJzNOXLI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=WJYGlRyyeSXc7L3lBGRCHJrUdx0XGjpVkXmWYSnmVghuGBt+C13EEwv9vp9O2cSZAs fyGshp2gzMOLjRf0RitRg0SMGjQJ4WJ/2P6Hq2bEkleJz2pyxRikpJ3FEGtRAxm1gYGN A0cEW8Ro8EGLbHh59qy2Knpko97Uv7I87EC0M=
- References: <56e4071a0810220156x18da0d0ftcd1a20cfbcbae60f@mail.gmail.com>
On Wed, Oct 22, 2008 at 4:56 PM, Jason Pernito <jpernito@gmail.com> wrote:
> Here's the last part of the log:
> /bonus/scratch/jpernito/btools-builds/wip-4486/ix86-Linux-RHEL4/powerpc-750-linux-gnu_gcc-4.3.2/bin/powerpc-750-linux-gnu-gcc
> connections.c -c -std=gnu99 -fgnu89-inline -O -Wall -Winline
> -Wwrite-strings -fmerge-all-constants -g -mnew-mnemonics
> -Wstrict-prototypes -mlong-double-128 -DHAVE_EPOLL -DHAVE_SENDFILE
> -DHAVE_INOTIFY -DIS_IN_nscd=1 -D_FORTIFY_SOURCE=2 -I../include
> -I/bonus/scratch/jpernito/btools/build_temp/powerpc-750-linux-gnu_gcc-4.3.2_glibc-20081013_pass2/nscd
> -I/bonus/scratch/jpernito/btools/build_temp/powerpc-750-linux-gnu_gcc-4.3.2_glibc-20081013_pass2
> -I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf
> -I../sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu
> -I../sysdeps/powerpc/powerpc32/fpu
> -I../nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32
> -I../sysdeps/unix/sysv/linux/powerpc/powerpc32
> -I../nptl/sysdeps/unix/sysv/linux/powerpc
> -I../sysdeps/unix/sysv/linux/powerpc -I../sysdeps/ieee754/ldbl-128ibm
> -I../sysdeps/ieee754/ldbl-opt -I../nptl/sysdeps/unix/sysv/linux
> -I../nptl/sysdeps/pthread -I../sysdeps/pthread
> -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
> -I../sysdeps/unix/mman -I../sysdeps/unix/inet
> -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv
> -I../sysdeps/unix/powerpc -I../nptl/sysdeps/unix -I../sysdeps/unix
> -I../sysdeps/posix -I../sysdeps/powerpc/powerpc32
> -I../sysdeps/wordsize-32 -I../sysdeps/powerpc/fpu
> -I../nptl/sysdeps/powerpc -I../sysdeps/powerpc
> -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32
> -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic
> -I../nptl -I.. -I../libio -I. -nostdinc -isystem
> /bonus/scratch/jpernito/btools-builds/wip-4486/ix86-Linux-RHEL4/powerpc-750-linux-gnu_gcc-4.3.2/lib/gcc/powerpc-750-linux-gnu/4.3.2/include
> -isystem /bonus/scratch/jpernito/btools-builds/wip-4486/ix86-Linux-RHEL4/powerpc-750-linux-gnu_gcc-4.3.2/lib/gcc/powerpc-750-linux-gnu/4.3.2/include-fixed
> -isystem /bonus/scratch/jpernito/btools-builds/wip-4486/ix86-Linux-RHEL4/powerpc-750-linux-gnu_gcc-4.3.2/include
> -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DNOT_IN_libc=1
> -o /bonus/scratch/jpernito/btools/build_temp/powerpc-750-linux-gnu_gcc-4.3.2_glibc-20081013_pass2/nscd/connections.o
> -MD -MP -MF /bonus/scratch/jpernito/btools/build_temp/powerpc-750-linux-gnu_gcc-4.3.2_glibc-20081013_pass2/nscd/connections.o.dt
> -MT /bonus/scratch/jpernito/btools/build_temp/powerpc-750-linux-gnu_gcc-4.3.2_glibc-20081013_pass2/nscd/connections.o
> connections.c: In function 'main_loop_poll':
> connections.c:1827: warning: implicit declaration of function 'paccept'
> connections.c:1831: error: lvalue required as left operand of assignment
> make[3]: *** [/bonus/scratch/jpernito/btools/build_temp/powerpc-750-linux-gnu_gcc-4.3.2_glibc-20081013_pass2/nscd/connections.o]
> Error 1
> make[3]: Leaving directory `/bonus/scratch/jpernito/btools/glibc-20081013/nscd'
> make[2]: *** [nscd/others] Error 2
> make[2]: Leaving directory `/bonus/scratch/jpernito/btools/glibc-20081013'
> make[1]: *** [all] Error 2
>
>
I am able to get rid of the problem by changing nscd/connection.c line
242 from this:
# define have_paccept -1 // XXX For the time being there is no such call
to this:
static int have_paccept = -1;
But I am getting this instead:
/bonus/scratch/jpernito/btools/build_temp/powerpc-750-linux-gnu_gcc-4.3.2_glibc-20081013_pass2/nscd/connections.o:
In function `nscd_init':
/bonus/scratch/jpernito/btools/glibc-20081013/nscd/connections.c:845:
warning: warning: inotify_add_watch is not implemented and will always
fail
/bonus/scratch/jpernito/btools/glibc-20081013/nscd/connections.c:532:
warning: warning: inotify_init is not implemented and will always fail
/bonus/scratch/jpernito/btools/glibc-20081013/nscd/connections.c:528:
warning: warning: inotify_init1 is not implemented and will always
fail
/bonus/scratch/jpernito/btools/build_temp/powerpc-750-linux-gnu_gcc-4.3.2_glibc-20081013_pass2/nscd/connections.o:
In function `main_loop_poll':
connections.c:(.text+0xfb0): undefined reference to `paccept'
collect2: ld returned 1 exit status
make[3]: *** [/bonus/scratch/jpernito/btools/build_temp/powerpc-750-linux-gnu_gcc-4.3.2_glibc-20081013_pass2/nscd/nscd]
Error 1
-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