rsync-3.0.3 on TRU64 5.1a w/ provided c compiler

Randall Walls randall.walls at gmail.com
Thu Jul 10 20:14:12 GMT 2008


This is less of a question and more of just an FYI to any other poor soul
that happens to run into the same problem that I just spent 3 hours trying
to correct.

I was working on getting rsync 3.0.3 compiled on a TRU64 5.1 alpha system,
using the provided (compaq?) c-compiler.

The first step was to set the compile flags:

CC=cc
CFLAGS='-std1 -O'
export CC CFLAGS

Then run the configure script and tell it to use the built in popt:

./configure --with-included-popt

This went fine, but make will fail with an error message about ld not liking
the Wno-unused-parameters flag. A little research turned up the fact that
the C-compiler doesn't like that flag, but the configure script will show
that it does. This is obviously not an rsync issue, but more likely an
autoconf issue. The fix (read: hack) was to edit the configure.sh script,
and do a search for Wno-unused-parameters. A few lines below you will see:

 (exit $ac_status); } && {
         test -z "$ac_c_werror_flag" ||
         test ! -s conftest.err
       } && test -s conftest.$ac_objext; then
  rsync_warn_flag=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

change the rsync_warn_flag=yes to =no, and save. This disables the check, so
that the return is always 'no', regardless of the outcome of the check.
Re-run the configure script and you should see: Wno-unused-parameter: no.
Run make, and everything should go fine.

Again, less a question and more just an FYI in the hopes that someone else
might find this beneficial.

Regards,

-- 
Randall
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the rsync mailing list