Re: Compilation error during rsync-3.0.9

2013-05-02 Thread Paul Slootman
On Tue 30 Apr 2013, Gauri Senad wrote:
> 
> I am compiling rsync-3.0.9 in my build system (which is for 2.6.10 linux
> kernel. I am using windriver build system), compilation is failing due to
> size of “uint32” and “uint16” was computed wrongly during configuration.

Hmm, it took some googling to see that "windriver" should be parsed as
"wind-river" and not "win-driver" :-)

> checking size of int... (cached) 4
> checking size of long... (cached) 4
> checking size of long long... (cached) 8
> checking size of short... (cached) 2
> checking size of int16_t... 2
> *checking size of uint16_t... (cached) 0*
> checking size of int32_t... 4
> *checking size of uint32_t... (cached) 0*
> checking size of int64_t... 8
> checking size of off_t... (cached) 8
> checking size of off64_t... 8
> checking size of time_t... 4
> checking for inline... (cached) inline

> As I am new to this kind of build system I am confused, which file is
> referred for checking the values of variable
> “ac_cv_sizeof_uint32_t/checking size of uint16_t”
> ? As far as my study during this error debugging it seems the value is
> looked from the cache file.

There should be no cache file present the first time you run configure.
If there is, wipe the directory clean and unpack the rsync sources
again, and check that there is no cache file at that point.
Then rerun configure.


Paul
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Compilation error during rsync-3.0.9

2013-04-30 Thread Gauri Senad
I am new to usage of this mailing list, I have was going through some of
the archives to see if my question is addressed already but I could find
it. I could see mostly people are discussing about issues with rsync. My
query is not much related with issues with rsync but it is related to
compilation error which I am facing with latest version of rsync.



I am compiling rsync-3.0.9 in my build system (which is for 2.6.10 linux
kernel. I am using windriver build system), compilation is failing due to
size of “uint32” and “uint16” was computed wrongly during configuration.



Output during configuration:-

checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... (cached) 8
checking size of short... (cached) 2
checking size of int16_t... 2
*checking size of uint16_t... (cached) 0*
checking size of int32_t... 4
*checking size of uint32_t... (cached) 0*
checking size of int64_t... 8
checking size of off_t... (cached) 8
checking size of off64_t... 8
checking size of time_t... 4
checking for inline... (cached) inline



Compilation error



In file included from
/home/xjitgor/RSYNC-WRS1.1/pkgsrc/rsync-3.0.9/rsync.c:22:
/home/xjitgor/RSYNC-WRS1.1/pkgsrc/rsync-3.0.9/rsync.h:575: warning: no
semicolon at end of struct or union
/home/xjitgor/RSYNC-WRS1.1/pkgsrc/rsync-3.0.9/rsync.h:575: error: parse
error before "node_size"
/home/xjitgor/RSYNC-WRS1.1/pkgsrc/rsync-3.0.9/rsync.h:577: error: parse
error before '}' token
/home/xjitgor/RSYNC-WRS1.1/pkgsrc/rsync-3.0.9/rsync.h:639: warning: no
semicolon at end of struct or union
/home/xjitgor/RSYNC-WRS1.1/pkgsrc/rsync-3.0.9/rsync.h:639: error: parse
error before "unum"
/home/xjitgor/RSYNC-WRS1.1/pkgsrc/rsync-3.0.9/rsync.h:645: warning: no
semicolon at end of struct or union
/home/xjitgor/RSYNC-WRS1.1/pkgsrc/rsync-3.0.9/rsync.h:645: error: parse
error before "len32"
/home/xjitgor/RSYNC-WRS1.1/pkgsrc/rsync-3.0.9/rsync.h:646: error: parse
error before "mode"
/home/xjitgor/RSYNC-WRS1.1/pkgsrc/rsync-3.0.9/rsync.h:646: warning: type
defaults to `int' in declaration of `mode'
/home/xjitgor/RSYNC-WRS1.1/pkgsrc/rsync-3.0.9/rsync.h:646: warning: data
definition has no type or storage class





As I am new to this kind of build system I am confused, which file is
referred for checking the values of variable
“ac_cv_sizeof_uint32_t/checking size of uint16_t”
? As far as my study during this error debugging it seems the value is
looked from the cache file.

However the cache file which is referred during configuration has presence
of ” ac_cv_sizeof_uint32_t/ checking size of uint16_t”

Could any one help me on understanding how and where the vaues are getting
reffred for following condidtion?



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5

$as_echo_n "checking size of uint32_t... " >&6; }

if ${ac_cv_sizeof_uint32_t+:} false; then :

  $as_echo_n "(cached) " >&6

else

  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))"
"ac_cv_sizeof_uint32_t""$ac_includes_default"; then :



else

  if test "$ac_cv_type_uint32_t" = yes; then

 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5

$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}

as_fn_error 77 "cannot compute sizeof (uint32_t)

See \`config.log' for more details" "$LINENO" 5; }

   else

 ac_cv_sizeof_uint32_t=0

   fi

fi



fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5

$as_echo "$ac_cv_sizeof_uint32_t" >&6; }






Thanks and Regards,
Harshada Senad
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html