This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error cross-compiling glibc-20081013 with connections.c:1831: error: lvalue required as left operand of assignment


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]