I am running RedHat 6.2 on many of my servers and am receiving the following errors when compiling Rsync 2.5.2: [root@wrapguy rsync-2.5.2]# make gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c rsync.c -o rsync.o In file included from rsync.c:23: rsync.h:339: warning: no semicolon at end of struct or union rsync.h:339: parse error before `inode' rsync.h:341: parse error before `dev' rsync.h:341: warning: type defaults to `int' in declaration of `dev' rsync.h:341: warning: data definition has no type or storage class rsync.h:344: parse error before `rdev' rsync.h:344: warning: type defaults to `int' in declaration of `rdev' rsync.h:344: warning: data definition has no type or storage class rsync.h:347: `basename' redeclared as different kind of symbol /usr/include/string.h:317: previous declaration of `basename' rsync.h:350: `link' redeclared as different kind of symbol /usr/include/unistd.h:678: previous declaration of `link' rsync.h:352: parse error before `}' rsync.h: In function `flist_up': rsync.h:420: dereferencing pointer to incomplete type rsync.c: In function `set_perms': rsync.c:165: dereferencing pointer to incomplete type rsync.c:168: dereferencing pointer to incomplete type rsync.c:178: dereferencing pointer to incomplete type rsync.c:179: dereferencing pointer to incomplete type rsync.c:179: dereferencing pointer to incomplete type rsync.c:184: dereferencing pointer to incomplete type rsync.c:188: dereferencing pointer to incomplete type rsync.c:189: dereferencing pointer to incomplete type rsync.c:206: dereferencing pointer to incomplete type rsync.c:208: dereferencing pointer to incomplete type rsync.c:152: warning: `change_uid' might be used uninitialized in this function rsync.c:152: warning: `change_gid' might be used uninitialized in this function rsync.c: In function `finish_transfer': rsync.c:245: dereferencing pointer to incomplete type make: *** [rsync.o] Error 1 I really do not want to use an RPMs, I have searched but only found one person with the same problem - no answers, though. Any help would be greatly appreciated. Thanks Matt
For what it's worth I saw the same error. 2.5.1 worked fine however. I never found a solution. -- Scott In mailinglists.external.rsync, you wrote:> I am running RedHat 6.2 on many of my servers and am receiving the following > errors when compiling Rsync 2.5.2: > > [root@wrapguy rsync-2.5.2]# make > gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c rsync.c -o rsync.o > In file included from rsync.c:23: > rsync.h:339: warning: no semicolon at end of struct or union > rsync.h:339: parse error before `inode' > rsync.h:341: parse error before `dev' > rsync.h:341: warning: type defaults to `int' in declaration of `dev' > rsync.h:341: warning: data definition has no type or storage class > rsync.h:344: parse error before `rdev' > rsync.h:344: warning: type defaults to `int' in declaration of `rdev' > rsync.h:344: warning: data definition has no type or storage class > rsync.h:347: `basename' redeclared as different kind of symbol > /usr/include/string.h:317: previous declaration of `basename' > rsync.h:350: `link' redeclared as different kind of symbol > /usr/include/unistd.h:678: previous declaration of `link' > rsync.h:352: parse error before `}' > rsync.h: In function `flist_up': > rsync.h:420: dereferencing pointer to incomplete type > rsync.c: In function `set_perms': > rsync.c:165: dereferencing pointer to incomplete type > rsync.c:168: dereferencing pointer to incomplete type > rsync.c:178: dereferencing pointer to incomplete type > rsync.c:179: dereferencing pointer to incomplete type > rsync.c:179: dereferencing pointer to incomplete type > rsync.c:184: dereferencing pointer to incomplete type > rsync.c:188: dereferencing pointer to incomplete type > rsync.c:189: dereferencing pointer to incomplete type > rsync.c:206: dereferencing pointer to incomplete type > rsync.c:208: dereferencing pointer to incomplete type > rsync.c:152: warning: `change_uid' might be used uninitialized in this > function > rsync.c:152: warning: `change_gid' might be used uninitialized in this > function > rsync.c: In function `finish_transfer': > rsync.c:245: dereferencing pointer to incomplete type > make: *** [rsync.o] Error 1 >-- Regards, Scott Russell (lnxgeek@us.ibm.com) Linux Technology Center, System Admin, RHCE. T/L 441-9289 / External 919-543-9289 http://bzimage.raleigh.ibm.com/webcam
OK - that's 3 individuals with Redhat 6.2 installs who have encountered this. I'm pretty sure it's a real problem (ie I can duplicate it and others have had it, too). Is there a more appropriate place to submit this bug or something that I can do to help have it fixed? I am not competent to debug the C code, but I am willing and able to provide any debugging info. Thanks! Matt On Thursday 07 March 2002 03:19 pm, Scott Russell wrote:> For what it's worth I saw the same error. 2.5.1 worked fine however. > I never found a solution. > > -- Scott > > In mailinglists.external.rsync, you wrote: > > I am running RedHat 6.2 on many of my servers and am receiving the > > following errors when compiling Rsync 2.5.2: > > > > [root@wrapguy rsync-2.5.2]# make > > gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c rsync.c -o rsync.o > > In file included from rsync.c:23: > > rsync.h:339: warning: no semicolon at end of struct or union > > rsync.h:339: parse error before `inode' > > rsync.h:341: parse error before `dev' > > rsync.h:341: warning: type defaults to `int' in declaration of `dev' > > rsync.h:341: warning: data definition has no type or storage class > > rsync.h:344: parse error before `rdev' > > rsync.h:344: warning: type defaults to `int' in declaration of `rdev' > > rsync.h:344: warning: data definition has no type or storage class > > rsync.h:347: `basename' redeclared as different kind of symbol > > /usr/include/string.h:317: previous declaration of `basename' > > rsync.h:350: `link' redeclared as different kind of symbol > > /usr/include/unistd.h:678: previous declaration of `link' > > rsync.h:352: parse error before `}' > > rsync.h: In function `flist_up': > > rsync.h:420: dereferencing pointer to incomplete type > > rsync.c: In function `set_perms': > > rsync.c:165: dereferencing pointer to incomplete type > > rsync.c:168: dereferencing pointer to incomplete type > > rsync.c:178: dereferencing pointer to incomplete type > > rsync.c:179: dereferencing pointer to incomplete type > > rsync.c:179: dereferencing pointer to incomplete type > > rsync.c:184: dereferencing pointer to incomplete type > > rsync.c:188: dereferencing pointer to incomplete type > > rsync.c:189: dereferencing pointer to incomplete type > > rsync.c:206: dereferencing pointer to incomplete type > > rsync.c:208: dereferencing pointer to incomplete type > > rsync.c:152: warning: `change_uid' might be used uninitialized in this > > function > > rsync.c:152: warning: `change_gid' might be used uninitialized in this > > function > > rsync.c: In function `finish_transfer': > > rsync.c:245: dereferencing pointer to incomplete type > > make: *** [rsync.o] Error 1-------------------------------------------------------