Solved Upgrade to rsync 3.1.2_1 fails

Hello-

I am having trouble updating the existing rsync port to the latest version. First I tried the usual portmaster upgrade procedure but it barfed up a message as follows:

Code:
rsync.c: In function 'set_file_attrs':
rsync.c:561: error: 'struct stat' has no member named 'ST_MTIME_NSEC'
*** [rsync.o] Error code 1

I have since then deinstalled and reinstalled rsync but it keeps coming up with the same error message. Message in full below:

Code:
[8:23]root@test:/usr/ports/net/rsync # make install
===>  Building for rsync-3.1.2_1
true
cc -std=gnu99 -I. -I. -I./popt -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H -Wall -W -Wno-unused-parameter  -c rsync.c -o rsync.o
rsync.c: In function 'set_file_attrs':
rsync.c:561: error: 'struct stat' has no member named 'ST_MTIME_NSEC'
*** [rsync.o] Error code 1

Stop in /usr/ports/net/rsync/work/rsync-3.1.2.
*** [do-build] Error code 1

Stop in /usr/ports/net/rsync.
*** [install] Error code 1

Stop in /usr/ports/net/rsync.
[8:23]root@test:/usr/ports/net/rsync #

I've done make deinstall clean and 'make install clean' several times to no avail. My make.conf is as follows:

Code:
#turn off graphic for server
#WITHOUT_X11=YES
OPTIONS_UNSET=X11
#WITHOUT_FONTCONFIG=YES
OPTIONS_UNSET=FONTCONFIG

WITH_PKGNG=YES

# Line for custom kernel configuration
KERNCONF=FreeBSDzfs
DEFAULT_VERSIONS+=apache=2.2

MAKE_JOBS_UNSAFE=yes

I've googled around for error messages similar to the above and am unable to find anything relevant online.

I'm running FreeBSD 9.3:

Code:
FreeBSD test.dawnsign.com 9.3-RELEASE-p30 FreeBSD 9.3-RELEASE-p30 #3 r290407: Fri Nov  6 13:52:41 PST 2015  root@test.dawnsign.com:/usr/obj/usr/src/sys/FreeBSDzfs  i386

~Doug
 
Please post the output of make showconfig.

Code:
[11:55]root@test:/usr/ports/net/rsync # make showconfig
===> The following configuration options are available for rsync-3.1.2_1:
  DOCS=on: Build and/or install documentation
  ICONV=off: Encoding conversion support via iconv
  POPT_PORT=off: Use popt from devel/popt instead of bundled one
  SSH=on: Use SSH instead of RSH
  ZLIB_BASE=on: Use zlib from base instead of bundled one
====> Functionality provided by third party patches: you can only select none or one of them
  TIMELIMIT=off: Time limit patch
  RENAMED=off: Add support for renamed file detection
  FLAGS=off: File system flags support patch, adds --fileflags
  ATIMES=on: Preserve access times, adds --atimes (BROKEN)
  ACL=off: Add backward-compatibility for the --acls option
===> Use 'make config' to modify these settings
[11:55]root@test:/usr/ports/net/rsync #
 
This error appears if OPTION ATIMES is ON. Set it to OFF.

So I selected that to OFF and tried again. Yup, that did the trick. Thanks.

Don't understand why the ATIMES option worked in the past but now doesn't.

~Doug
 
Last edited by a moderator:
Back
Top