-   Debian (
-   -   there is a bug in glibc's heeder ??(gcc 4.1) (

unixnovice 08-20-2007 01:14 AM

there is a bug in glibc's heeder ??(gcc 4.1)
hi ,everybody

today I update my OS to debian-40r0
and install the gcc-4.1 (use the official cd),but I encounter a proble

When I compile thevsftpd-2.0.5.


gcc -c sysutil.c -O2 -Wall -W -Wshadow -march=i586 -mtune=i686 -idirafter
sysutil.c: In function 'vsf_sysutil_wait_exited_normally':
sysutil.c:604: error: assignment of read-only member '__in'
sysutil.c: In function 'vsf_sysutil_wait_get_exitcode':
sysutil.c:614: error: assignment of read-only member '__in'
make: *** [sysutil.o] Error 1

I google it ,but no answer for it ,somebody know it ?

some one tell me to edit the wait.h
replace the code blow

# define __WAIT_INT(status) \
(__extension__ ({ union { __typeof(status) __in; int __i; } __u; \
__u.__in = (status); __u.__i; }))


# define __WAIT_INT(status) \
(__extension__ (((union { __typeof(status) __in; int __i; }) \
{ .__in = (status) }).__i))
but It doesn't work
and appear new error when compile sysdeputil.c

I'm a new ,need you help!!

kaz2100 08-23-2007 03:25 PM


I have no way to trace this situation, but I rather recommend to install vsftpd package. It is available on etch.

Happy Penguins!

knobby67 08-24-2007 04:42 AM

To be honest I went back to 3.4, I had a lot of intergration problems with other peoples code. Apt-get install gcc-3.4, rm /usr/bin/gcc, ln /usr/bin/gcc-3.4 /usr/bin/gcc, will start a lot of problomatic code working.

All times are GMT -5. The time now is 10:10 AM.