DO NOT REPLY [Bug 5022] New: FreeBSD 4.11 - Compilation Fails - uidlist.c - gcc2 / gcc3

samba-bugs at samba.org samba-bugs at samba.org
Wed Oct 17 11:38:25 GMT 2007


https://bugzilla.samba.org/show_bug.cgi?id=5022

           Summary: FreeBSD 4.11 - Compilation Fails - uidlist.c  - gcc2 /
                    gcc3
           Product: rsync
           Version: 3.0.0
          Platform: x86
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: support at reverse.net
         QAContact: rsync-qa at samba.org


Attempting to compile the latest version, compilation fails at uidlist.c. I
tried both gcc versions, and they both fail at the same point.

gcc version 2.95.4 20020320 [FreeBSD]

gcc -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -o mkrounding -I. ./mkrounding.c
./mkrounding >rounding.h
No rounding needed for file_extras (EXTRA_LEN=4, FILE_STRUCT_LEN=16)
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c flist.c -o flist.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c rsync.c -o rsync.o
rsync.c: In function `read_ndx_and_attrs':
rsync.c:215: warning: `flist' might be used uninitialized in this function
rsync.c: In function `set_file_attrs':
rsync.c:341: warning: unused parameter `fnamecmp'
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c generator.c -o
generator.o
generator.c: In function `unchanged_attrs':
generator.c:518: warning: unused parameter `fname'
generator.c: In function `itemize':
generator.c:549: warning: unused parameter `fnamecmp'
generator.c: In function `try_dests_non':
generator.c:943: warning: `type' might be used uninitialized in this function
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c receiver.c -o
receiver.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c cleanup.c -o cleanup.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c sender.c -o sender.o
sender.c: In function `write_ndx_and_attrs':
sender.c:150: warning: unused parameter `fname'
sender.c:150: warning: unused parameter `file'
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c exclude.c -o exclude.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c util.c -o util.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c main.c -o main.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c checksum.c -o
checksum.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c match.c -o match.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c syscall.c -o syscall.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c log.c -o log.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c backup.c -o backup.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c options.c -o options.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c io.c -o io.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c compat.c -o compat.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c hlink.c -o hlink.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c token.c -o token.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt  -c uidlist.c -o uidlist.o
uidlist.c:47: syntax error before `id_t'
uidlist.c:54: syntax error before `id_t'
uidlist.c: In function `add_to_list':
uidlist.c:60: `root' undeclared (first use in this function)
uidlist.c:60: (Each undeclared identifier is reported only once
uidlist.c:60: for each function it appears in.)
uidlist.c:61: `name' undeclared (first use in this function)
uidlist.c:62: structure has no member named `id'
uidlist.c:62: `id' undeclared (first use in this function)
uidlist.c:63: structure has no member named `id2'
uidlist.c:63: `id2' undeclared (first use in this function)
uidlist.c:64: `flags' undeclared (first use in this function)
uidlist.c: In function `match_uid':
uidlist.c:210: structure has no member named `id'
uidlist.c:211: structure has no member named `id2'
uidlist.c: In function `match_gid':
uidlist.c:222: structure has no member named `id'
uidlist.c:226: structure has no member named `id'
uidlist.c:236: structure has no member named `id2'
uidlist.c:237: warning: control reaches end of non-void function
uidlist.c: In function `add_uid':
uidlist.c:249: structure has no member named `id'
uidlist.c: In function `add_gid':
uidlist.c:267: structure has no member named `id'
uidlist.c: In function `send_id_list':
uidlist.c:287: structure has no member named `id'
uidlist.c:303: structure has no member named `id'
uidlist.c: In function `recv_user_name':
uidlist.c:320: structure has no member named `id2'
uidlist.c:321: warning: control reaches end of non-void function
uidlist.c: In function `recv_group_name':
uidlist.c:334: structure has no member named `id2'
uidlist.c:335: warning: control reaches end of non-void function
uidlist.c: In function `recv_id_list':
uidlist.c:341: syntax error before `id'
uidlist.c:346: `id' undeclared (first use in this function)
gmake: *** [uidlist.o] Error 1


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list