[OpenAFS-devel] 1.5.25 and struct rpcStats

Derrick Brashear shadow@gmail.com
Fri, 19 Oct 2007 20:16:34 -0400


------=_Part_5583_25538088.1192839394222
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 10/19/07, Arno Schuring <aelschuring@hotmail.com> wrote:
>
>
> Hello list,
>
> trying to compile 1.5.25 on my linux box (P4, 2.6.21, gcc-4.2.1), I hit
> the following error (I configured with ./configure
> --with-afs-sysname=i386_linux26):
>
> gcc -pipe  -O2 -I/home/golem/buildfs/openafs-1.5.25/src/config -I. -I.
> -I/home/golem/buildfs/openafs-1.5.25/include
> -I/home/golem/buildfs/openafs-1.5.25/include/afs
> -I/home/golem/buildfs/openafs-1.5.25/include/rx
> -I/home/golem/buildfs/openafs-1.5.25
> -I/home/golem/buildfs/openafs-1.5.25/src
> -I/home/golem/buildfs/openafs-1.5.25/src -D_LARGEFILE64_SOURCE  -c
> rxstat.c
> rxstat.c:47: error: expected declaration specifiers or '...' before
> 'rpcStats'
> rxstat.c: In function 'MRXSTATS_RetrieveProcessRPCStats':
> rxstat.c:54: error: 'stats' undeclared (first use in this function)
> rxstat.c:54: error: (Each undeclared identifier is reported only once
> rxstat.c:54: error: for each function it appears in.)
> rxstat.c: At top level:
> rxstat.c:67: error: expected declaration specifiers or '...' before
> 'rpcStats'
> rxstat.c: In function 'MRXSTATS_RetrievePeerRPCStats':
> rxstat.c:74: error: 'stats' undeclared (first use in this function)
>
>
> grepping the source, I cannot find any declaration of rpcStats (save for
> a typedef afs_uint32 in rxstat.xg). Is this supposed to be generated
> from somewhere, or am I missing a package that provides this?


it's supposed to be provided by rxgen running on that file.

Included is a patch I used to remove the hardcoded paths to /lib/cpp. It
> can be autodetected from autoconf, so there is no need to hardcode these
> paths. (it is probably not necessary to include AC_PROG_CPP in
> configure.in, I think).


ok; you should submit it to openafs-bugs@openafs.org

I'm currently working on a patch to move the /vicep* partitions to the
> more FHS-friendly /srv/vice. Does a change like this have any change of
> being merged upstream or should I keep it to myself?


regardless, you should submit it.

------=_Part_5583_25538088.1192839394222
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<br><br><div><span class="gmail_quote">On 10/19/07, <b class="gmail_sendername">Arno Schuring</b> &lt;<a href="mailto:aelschuring@hotmail.com">aelschuring@hotmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hello list,<br><br>trying to compile 1.5.25 on my linux box (P4, 2.6.21, gcc-4.2.1), I hit<br>the following error (I configured with ./configure<br>--with-afs-sysname=i386_linux26):<br><br>gcc -pipe&nbsp;&nbsp;-O2 -I/home/golem/buildfs/openafs-
1.5.25/src/config -I. -I.<br>-I/home/golem/buildfs/openafs-1.5.25/include<br>-I/home/golem/buildfs/openafs-1.5.25/include/afs<br>-I/home/golem/buildfs/openafs-1.5.25/include/rx<br>-I/home/golem/buildfs/openafs-1.5.25<br>-I/home/golem/buildfs/openafs-
1.5.25/src<br>-I/home/golem/buildfs/openafs-1.5.25/src -D_LARGEFILE64_SOURCE&nbsp;&nbsp;-c rxstat.c<br>rxstat.c:47: error: expected declaration specifiers or &#39;...&#39; before<br>&#39;rpcStats&#39;<br>rxstat.c: In function &#39;MRXSTATS_RetrieveProcessRPCStats&#39;:
<br>rxstat.c:54: error: &#39;stats&#39; undeclared (first use in this function)<br>rxstat.c:54: error: (Each undeclared identifier is reported only once<br>rxstat.c:54: error: for each function it appears in.)<br>rxstat.c
: At top level:<br>rxstat.c:67: error: expected declaration specifiers or &#39;...&#39; before<br>&#39;rpcStats&#39;<br>rxstat.c: In function &#39;MRXSTATS_RetrievePeerRPCStats&#39;:<br>rxstat.c:74: error: &#39;stats&#39; undeclared (first use in this function)
<br><br><br>grepping the source, I cannot find any declaration of rpcStats (save for<br>a typedef afs_uint32 in rxstat.xg). Is this supposed to be generated<br>from somewhere, or am I missing a package that provides this?
</blockquote><div><br>it&#39;s supposed to be provided by rxgen running on that file. <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Included is a patch I used to remove the hardcoded paths to /lib/cpp. It<br>can be autodetected from autoconf, so there is no need to hardcode these<br>paths. (it is probably not necessary to include AC_PROG_CPP in<br><a href="http://configure.in">
configure.in</a>, I think).</blockquote><div><br>ok; you should submit it to <a href="mailto:openafs-bugs@openafs.org">openafs-bugs@openafs.org</a> <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;m currently working on a patch to move the /vicep* partitions to the<br>more FHS-friendly /srv/vice. Does a change like this have any change of<br>being merged upstream or should I keep it to myself?</blockquote><div>
<br>regardless, you should submit it.<br>&nbsp;<br></div><br></div><br>

------=_Part_5583_25538088.1192839394222--