Went through some of the archives, but couldn't find any answers to this. I'm trying to compile the latest rsync on Solaris 9 SPARC. I'm using gcc 2.95.3 supplied by Sun on the Companion CD. I get the following error: sun> gmake 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:353: warning: no semicolon at end of struct or union rsync.h:353: parse error before `inode' rsync.h:354: parse error before `dev' rsync.h:354: warning: type defaults to `int' in declaration of `dev' rsync.h:354: warning: data definition has no type or storage class gmake: *** [rsync.o] Error 1 TIA, -john
On Wed, May 05, 2004 at 11:59:30AM -0700, John Martinez wrote:> > Went through some of the archives, but couldn't find any answers to > this. > > I'm trying to compile the latest rsync on Solaris 9 SPARC. I'm using > gcc 2.95.3 supplied by Sun on the Companion CD. > > I get the following error: > > sun> gmake > 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:353: warning: no semicolon at end of struct or union > rsync.h:353: parse error before `inode' > rsync.h:354: parse error before `dev' > rsync.h:354: warning: type defaults to `int' in declaration of `dev' > rsync.h:354: warning: data definition has no type or storage class > gmake: *** [rsync.o] Error 1Works fine with the Sun C compiler. Is your 2.95.3 build specifically for Solaris 9? GCC include files are specific to the platform it was built on. -- albert chin (china@thewrittenword.com)
On May 5, 2004, at 12:13 PM, Albert Chin wrote:> > Works fine with the Sun C compiler. Is your 2.95.3 build specifically > for Solaris 9? GCC include files are specific to the platform it was > built on.Thanks for replying. I installed GCC 3.3.3 from Blastwave and the compile worked. -john