Bug 7981 - fix for fileflags.diff compile error w/3.0.8pre1
fix for fileflags.diff compile error w/3.0.8pre1
Status: RESOLVED FIXED
Product: rsync
Classification: Unclassified
Component: core
3.0.8
Other FreeBSD
: P3 normal
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-02 10:04 UTC by Marcin Cieślak
Modified: 2011-03-02 19:55 UTC (History)
0 users

See Also:


Attachments
trivial fix (469 bytes, patch)
2011-03-02 10:05 UTC, Marcin Cieślak
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Cieślak 2011-03-02 10:04:25 UTC
Trying to compile for FreeBSD:

cc -std=gnu99 -I. -I. -O2 -pipe -march=nocona -I/usr/local/include -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -I./popt  -c rsync.c -o rsync.o
cc -std=gnu99 -I. -I. -O2 -pipe -march=nocona -I/usr/local/include -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -I./popt  -c generator.c -o generator.o
cc -std=gnu99 -I. -I. -O2 -pipe -march=nocona -I/usr/local/include -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -I./popt  -c receiver.c -o receiver.o
cc -std=gnu99 -I. -I. -O2 -pipe -march=nocona -I/usr/local/include -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -I./popt  -c cleanup.c -o cleanup.occ -std=gnu99 -I. -I. -O2 -pipe -march=nocona -I/usr/local/include -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -I./popt  -c rsync.c -o rsync.o
cc -std=gnu99 -I. -I. -O2 -pipe -march=nocona -I/usr/local/include -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -I./popt  -c generator.c -o generator.o
cc -std=gnu99 -I. -I. -O2 -pipe -march=nocona -I/usr/local/include -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -I./popt  -c receiver.c -o receiver.o
cc -std=gnu99 -I. -I. -O2 -pipe -march=nocona -I/usr/local/include -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -I./popt  -c cleanup.c -o cleanup.o
cc -std=gnu99 -I. -I. -O2 -pipe -march=nocona -I/usr/local/include -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -I./popt  -c sender.c -o sender.o
cc -std=gnu99 -I. -I. -O2 -pipe -march=nocona -I/usr/local/include -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -I./popt  -c exclude.c -o exclude.o
cc -std=gnu99 -I. -I. -O2 -pipe -march=nocona -I/usr/local/include -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -I./popt  -c util.c -o util.o
util.c: In function 'try_a_force_change':
util.c:141: error: 'ret' undeclared (first use in this function)
util.c:141: error: (Each undeclared identifier is reported only once
util.c:141: error: for each function it appears in.)
*** Error code 1

cc -std=gnu99 -I. -I. -O2 -pipe -march=nocona -I/usr/local/include -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -I./popt  -c sender.c -o sender.o
cc -std=gnu99 -I. -I. -O2 -pipe -march=nocona -I/usr/local/include -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -I./popt  -c exclude.c -o exclude.o
cc -std=gnu99 -I. -I. -O2 -pipe -march=nocona -I/usr/local/include -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -I./popt  -c util.c -o util.o
util.c: In function 'try_a_force_change':
util.c:141: error: 'ret' undeclared (first use in this function)
util.c:141: error: (Each undeclared identifier is reported only once
util.c:141: error: for each function it appears in.)
*** Error code 1

Trivial fix follows, although I think this code should be reviewed.
Comment 1 Marcin Cieślak 2011-03-02 10:05:32 UTC
Created attachment 6275 [details]
trivial fix
Comment 2 Wayne Davison 2011-03-02 19:55:23 UTC
Thanks.  Fixed in the git repo.