On Monday, April 28, 2003, at 06:21 PM, jw schultz
wrote:> You mean that you edited config.h and changed
> "#define HAVE_SETGROUPS 1" to "#define HAVE_SETGROUPS
0"
> and rebuilt but still get "@ERROR: setgroups failed"?
Yup.
> If that is the case run make clean.
I did.
Here's the log:
-----------------------------------------------------
[max:~/rsync-2.5.6] steve% grep HAVE_SETGROUPS config.h
#define HAVE_SETGROUPS 0
[max:~/rsync-2.5.6] steve% make clean
rm -rf ./testtmp*
rm -f *~ rsync.o generator.o receiver.o cleanup.o sender.o exclude.o
util.o main.o checksum.o match.o syscall.o log.o backup.o options.o
flist.o io.o compat.o hlink.o token.o uidlist.o socket.o fileio.o
batch.o clientname.o progress.o pipe.o params.o loadparm.o
clientserver.o access.o connection.o authenticate.o lib/fnmatch.o
lib/compat.o lib/snprintf.o lib/mdfour.o lib/permstring.o
zlib/deflate.o zlib/infblock.o zlib/infcodes.o zlib/inffast.o
zlib/inflate.o zlib/inftrees.o zlib/infutil.o zlib/trees.o zlib/zutil.o
zlib/adler32.o popt/findme.o popt/popt.o popt/poptconfig.o
popt/popthelp.o popt/poptparse.o tls.o syscall.o lib/permstring.o rsync
tls getgroups trimslash t_unsafe getgroups.o t_stub.o t_unsafe.o
trimslash.o
[max:~/rsync-2.5.6] steve% make
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c rsync.c -o
rsync.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c generator.c -o
generator.o
generator.c: In function `generate_and_send_sums':
generator.c:193: warning: int format, size_t arg (arg 3)
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
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
log.c: In function `log_transfer':
log.c:579: warning: unused parameter `file'
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
In file included from options.c:22:
./popt/popt.h:377: warning: type qualifiers ignored on function return
type
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 io.c -o io.o
io.c: In function `read_unbuffered':
io.c:320: warning: int format, size_t arg (arg 3)
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
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c socket.c -o
socket.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c fileio.c -o
fileio.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c batch.c -o
batch.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c clientname.c
-o clientname.o
clientname.c: In function `compare_addrinfo_sockaddr':
clientname.c:281: warning: int format, size_t arg (arg 4)
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c progress.c -o
progress.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c pipe.c -o
pipe.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c params.c -o
params.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c loadparm.c -o
loadparm.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c clientserver.c
-o clientserver.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c access.c -o
access.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c connection.c
-o connection.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c authenticate.c
-o authenticate.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c lib/fnmatch.c
-o lib/fnmatch.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c lib/compat.c
-o lib/compat.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c lib/snprintf.c
-o lib/snprintf.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c lib/mdfour.c
-o lib/mdfour.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c
lib/permstring.c -o lib/permstring.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c zlib/deflate.c
-o zlib/deflate.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c
zlib/infblock.c -o zlib/infblock.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c
zlib/infcodes.c -o zlib/infcodes.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c zlib/inffast.c
-o zlib/inffast.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c zlib/inflate.c
-o zlib/inflate.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c
zlib/inftrees.c -o zlib/inftrees.o
zlib/inftrees.c: In function `huft_build':
zlib/inftrees.c:216: warning: signed and unsigned type in conditional
expression
zlib/inftrees.c: In function `inflate_trees_fixed':
zlib/inftrees.c:403: warning: unused parameter `z'
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c zlib/infutil.c
-o zlib/infutil.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c zlib/trees.c
-o zlib/trees.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c zlib/zutil.c
-o zlib/zutil.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c zlib/adler32.c
-o zlib/adler32.o
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c popt/findme.c
-o popt/findme.o
In file included from popt/system.h:73,
from popt/findme.c:9:
popt/popt.h:377: warning: type qualifiers ignored on function return
type
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c popt/popt.c -o
popt/popt.o
In file included from popt/system.h:73,
from popt/popt.c:11:
popt/popt.h:377: warning: type qualifiers ignored on function return
type
popt/popt.c: In function `poptAddAlias':
popt/popt.c:1058: warning: unused parameter `flags'
popt/popt.c: At top level:
popt/popt.c:1132: warning: type qualifiers ignored on function return
type
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c
popt/poptconfig.c -o popt/poptconfig.o
In file included from popt/system.h:73,
from popt/poptconfig.c:9:
popt/popt.h:377: warning: type qualifiers ignored on function return
type
popt/poptconfig.c: In function `poptReadDefaultConfig':
popt/poptconfig.c:162: warning: unused parameter `useEnv'
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c
popt/popthelp.c -o popt/popthelp.o
In file included from popt/system.h:73,
from popt/popthelp.c:12:
popt/popt.h:377: warning: type qualifiers ignored on function return
type
popt/popthelp.c: In function `displayArgs':
popt/popthelp.c:20: warning: unused parameter `foo'
popt/popthelp.c:22: warning: unused parameter `arg'
popt/popthelp.c:22: warning: unused parameter `data'
popt/popthelp.c: At top level:
popt/popthelp.c:69: warning: type qualifiers ignored on function return
type
popt/popthelp.c:90: warning: type qualifiers ignored on function return
type
popt/popthelp.c: In function `getArgDescrip':
popt/popthelp.c:87: warning: unused parameter `translation_domain'
popt/popthelp.c: In function `singleOptionDefaultValue':
popt/popthelp.c:118: warning: unused parameter `translation_domain'
popt/popthelp.c: In function `poptPrintHelp':
popt/popthelp.c:478: warning: unused parameter `flags'
popt/popthelp.c: In function `poptPrintUsage':
popt/popthelp.c:637: warning: unused parameter `flags'
gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c
popt/poptparse.c -o popt/poptparse.o
In file included from popt/system.h:73,
from popt/poptparse.c:9:
popt/popt.h:377: warning: type qualifiers ignored on function return
type
gcc -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -o rsync rsync.o
generator.o receiver.o cleanup.o sender.o exclude.o util.o main.o
checksum.o match.o syscall.o log.o backup.o options.o flist.o io.o
compat.o hlink.o token.o uidlist.o socket.o fileio.o batch.o
clientname.o progress.o pipe.o params.o loadparm.o clientserver.o
access.o connection.o authenticate.o lib/fnmatch.o lib/compat.o
lib/snprintf.o lib/mdfour.o lib/permstring.o zlib/deflate.o
zlib/infblock.o zlib/infcodes.o zlib/inffast.o zlib/inflate.o
zlib/inftrees.o zlib/infutil.o zlib/trees.o zlib/zutil.o zlib/adler32.o
popt/findme.o popt/popt.o popt/poptconfig.o popt/popthelp.o
popt/poptparse.o
ld: warning multiple definitions of symbol _snprintf
lib/snprintf.o definition of _snprintf in section (__TEXT,__text)
/usr/lib/libSystem.dylib(snprintf.So) definition of _snprintf
ld: warning multiple definitions of symbol _vsnprintf
lib/snprintf.o definition of _vsnprintf in section (__TEXT,__text)
/usr/lib/libSystem.dylib(vsnprintf.So) definition of _vsnprintf
[max:/Users/steve/rsync-2.5.6] steve# cp rsync /usr/bin
[max:/Users/steve/rsync-2.5.6] steve# mkdir test
[max:/Users/steve/rsync-2.5.6] steve# cd test
[max:steve/rsync-2.5.6/test] steve# rsync -av --progress localhost::io .
@ERROR: setgroups failed
rsync: connection unexpectedly closed (37 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(165)
[max:steve/rsync-2.5.6/test] steve#