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.
Quote:
...
gcc -c sysutil.c -O2 -Wall -W -Wshadow -march=i586 -mtune=i686 -idirafter
dummyinc
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
Quote:
# define __WAIT_INT(status) \
(__extension__ ({ union { __typeof(status) __in; int __i; } __u; \
__u.__in = (status); __u.__i; }))
|
to
Quote:
# 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!!