[OpenAFS] 64-bit mod_waklog / filedrawers on afs

Aaron Knister aaronk@umbc.edu
Wed, 17 Aug 2011 10:59:30 -0400


--0022152d63298da04c04aab4bfdf
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Hi Daniel,

Well... I've never built filedrawers, but this line:

tpupload.c:18:19: error: mysql.h: No such file or directory

suggests you're missing the mysql headers. If its redhat try a yum install
mysql-devel.

-Aaron

On Tue, Aug 16, 2011 at 4:50 PM, Colson, Daniel <dcolson5@uncc.edu> wrote:

> **
>
> Thanks. Any help is appreciated. Here's the error output from "make".
>
> make[1]: Entering directory `<path-to-build-dir>/build/filedrawers/libcgi=
'
> gcc -Wall -Wstrict-prototypes -g  -fPIC -I/usr/include/apr-1  -c -o cgi.o
> cgi.c
> cgi.c: In function =91post_getline=92:
> cgi.c:91: warning: function declaration isn=92t a prototype
> cgi.c: In function =91cgi_init=92:
> cgi.c:148: warning: function declaration isn=92t a prototype
> cgi.c: In function =91mp_get_file=92:
> cgi.c:361: warning: function declaration isn=92t a prototype
> cgi.c:364: warning: function declaration isn=92t a prototype
> cgi.c:375: warning: function declaration isn=92t a prototype
> cgi.c:378: warning: function declaration isn=92t a prototype
> cgi.c:385: warning: function declaration isn=92t a prototype
> cgi.c:388: warning: function declaration isn=92t a prototype
> cgi.c:400: warning: function declaration isn=92t a prototype
> cgi.c:420: warning: function declaration isn=92t a prototype
> cgi.c:424: warning: function declaration isn=92t a prototype
> cgi.c: In function =91cgi_multipart=92:
> cgi.c:539: warning: function declaration isn=92t a prototype
> cgi.c:614: warning: function declaration isn=92t a prototype
> building normal libcgi.a
> make[1]: Leaving directory `<path-to-build-dir>/build/filedrawers/libcgi'
> ( cd upload; make  )
> make[1]: Entering directory `<path-to-build-dir>/build/filedrawers/upload=
'
> gcc -Wall -Wmissing-prototypes -g -O2 -I../libcgi -I/usr/include/mysql  -=
g
> -pipe -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector
> --param=3Dssp-buffer-size=3D4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D64
> -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -Wall -Wmissing-prototyp=
es
> \
>                 -D_URL_ERROR_PAGE=3D\"https://<site>?error=3Dtrue\" \
>
> -D_FILEDRAWERS_CONFIG_PATH=3D\"/var/www/filedrawers/lib/filedrawers.conf\=
" \
>                 -c tpupload.c
> tpupload.c:18:19: error: mysql.h: No such file or directory
> tpupload.c:34: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
> before =91*=92 token
> tpupload.c:35: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92
> before =91*=92 token
> tpupload.c: In function =91upload_progress_db_insert=92:
> tpupload.c:103: error: =91MYSQL_BIND=92 undeclared (first use in this fun=
ction)
> tpupload.c:103: error: (Each undeclared identifier is reported only once
> tpupload.c:103: error: for each function it appears in.)
> tpupload.c:103: error: expected =91;=92 before =91bind=92
> tpupload.c:104: error: =91my_bool=92 undeclared (first use in this functi=
on)
> tpupload.c:104: error: expected =91;=92 before =91is_null=92
> tpupload.c:110: error: =91stmt=92 undeclared (first use in this function)
> tpupload.c:111: warning: implicit declaration of function =91mysql_stmt_i=
nit=92
> tpupload.c:111: error: =91mysql=92 undeclared (first use in this function=
)
> tpupload.c:112: warning: implicit declaration of function =91mysql_error=
=92
> tpupload.c:112: warning: format =91%s=92 expects type =91char *=92, but a=
rgument 4
> has type =91int=92
> tpupload.c:123: warning: implicit declaration of function
> =91mysql_stmt_prepare=92
> tpupload.c:124: warning: implicit declaration of function
> =91mysql_stmt_error=92
> tpupload.c:124: warning: format =91%s=92 expects type =91char *=92, but a=
rgument 4
> has type =91int=92
> tpupload.c:130: error: =91bind=92 undeclared (first use in this function)
> tpupload.c:130: warning: left-hand operand of comma expression has no
> effect
> tpupload.c:132: error: =91MYSQL_TYPE_STRING=92 undeclared (first use in t=
his
> function)
> tpupload.c:132: error: expected expression before =91)=92 token
> tpupload.c:132: error: =91is_null=92 undeclared (first use in this functi=
on)
> tpupload.c:133: error: expected expression before =91)=92 token
> tpupload.c:134: error: =91MYSQL_TYPE_LONGLONG=92 undeclared (first use in=
 this
> function)
> tpupload.c:134: error: expected expression before =91)=92 token
> tpupload.c:135: error: expected expression before =91)=92 token
> tpupload.c:136: error: =91MYSQL_TYPE_TINY=92 undeclared (first use in thi=
s
> function)
> tpupload.c:136: error: expected expression before =91)=92 token
> tpupload.c:138: warning: implicit declaration of function
> =91mysql_stmt_bind_param=92
> tpupload.c:139: warning: format =91%s=92 expects type =91char *=92, but a=
rgument 4
> has type =91int=92
> tpupload.c:148: warning: implicit declaration of function
> =91mysql_stmt_execute=92
> tpupload.c:149: warning: format =91%s=92 expects type =91char *=92, but a=
rgument 4
> has type =91int=92
> tpupload.c: In function =91upload_progress_db_update=92:
> tpupload.c:160: error: =91MYSQL_BIND=92 undeclared (first use in this fun=
ction)
> tpupload.c:160: error: expected =91;=92 before =91bind=92
> tpupload.c:161: error: =91my_bool=92 undeclared (first use in this functi=
on)
> tpupload.c:161: error: expected =91;=92 before =91is_null=92
> tpupload.c:166: error: =91stmt=92 undeclared (first use in this function)
> tpupload.c:167: error: =91mysql=92 undeclared (first use in this function=
)
> tpupload.c:168: warning: format =91%s=92 expects type =91char *=92, but a=
rgument 4
> has type =91int=92
> tpupload.c:180: warning: format =91%s=92 expects type =91char *=92, but a=
rgument 4
> has type =91int=92
> tpupload.c:186: error: =91bind=92 undeclared (first use in this function)
> tpupload.c:186: warning: left-hand operand of comma expression has no
> effect
> tpupload.c:188: error: =91MYSQL_TYPE_STRING=92 undeclared (first use in t=
his
> function)
> tpupload.c:188: error: expected expression before =91)=92 token
> tpupload.c:188: error: =91is_null=92 undeclared (first use in this functi=
on)
> tpupload.c:189: error: =91MYSQL_TYPE_LONGLONG=92 undeclared (first use in=
 this
> function)
> tpupload.c:189: error: expected expression before =91)=92 token
> tpupload.c:190: error: =91MYSQL_TYPE_TINY=92 undeclared (first use in thi=
s
> function)
> tpupload.c:190: error: expected expression before =91)=92 token
> tpupload.c:191: error: expected expression before =91)=92 token
> tpupload.c:194: warning: format =91%s=92 expects type =91char *=92, but a=
rgument 4
> has type =91int=92
> tpupload.c:203: warning: format =91%s=92 expects type =91char *=92, but a=
rgument 4
> has type =91int=92
> tpupload.c: In function =91upload_init=92:
> tpupload.c:317: error: =91mysql=92 undeclared (first use in this function=
)
> tpupload.c:322: error: =91stmt=92 undeclared (first use in this function)
> tpupload.c:323: warning: implicit declaration of function
> =91mysql_stmt_close=92
> tpupload.c:324: warning: format =91%s=92 expects type =91char *=92, but a=
rgument 4
> has type =91int=92
> tpupload.c: In function =91upload_progress=92:
> tpupload.c:347: error: =91mysql=92 undeclared (first use in this function=
)
> tpupload.c: In function =91upload_complete=92:
> tpupload.c:373: error: =91mysql=92 undeclared (first use in this function=
)
> tpupload.c: In function =91main=92:
> tpupload.c:528: error: =91mysql=92 undeclared (first use in this function=
)
> tpupload.c:528: warning: implicit declaration of function =91mysql_init=
=92
> tpupload.c:530: warning: implicit declaration of function
> =91mysql_real_connect=92
> tpupload.c:532: warning: format =91%s=92 expects type =91char *=92, but a=
rgument 4
> has type =91int=92
> tpupload.c:553: error: =91stmt=92 undeclared (first use in this function)
> tpupload.c:556: warning: implicit declaration of function =91mysql_close=
=92
> make[1]: *** [tpupload.o] Error 1
> make[1]: Leaving directory `<path-to-build-dir>/build/filedrawers/upload'
> make: *** [upload/upload.cgi] Error 2
>
> -Daniel
>
>
> -----Original Message-----
> From: Aaron Knister [mailto:aaronk@umbc.edu <aaronk@umbc.edu>]
> Sent: Mon 8/15/2011 12:32 PM
> To: Colson, Daniel
> Cc: openafs-info@openafs.org
> Subject: Re: [OpenAFS] 64-bit mod_waklog / filedrawers on afs
>
> Hi Daniel,
>
> While I'm not running filedrawers I am using mod_waklog, albeit with RHEL=
6.
> I had to apply some patches to get it to build correctly. If you send you=
r
> build errors I can see if my patches will help.
>
> -Aaron
>
> On Wed, Aug 10, 2011 at 3:16 PM, Colson, Daniel <dcolson5@uncc.edu> wrote=
:
>
> > **
> >
> > Is anyone else running mod_waklog / filedrawers on afs on a 64-bit
> machine?
> > I've been unable to compile mod_waklog (an essential component of
> > filedrawers) on 64-bit (RHEL5.6).
> >
>
>
>
> --
> Aaron Knister
> Systems Administrator
> Division of Information Technology
> University of Maryland, Baltimore County
> aaronk@umbc.edu
>
>


--=20
Aaron Knister
Systems Administrator
Division of Information Technology
University of Maryland, Baltimore County
aaronk@umbc.edu

--0022152d63298da04c04aab4bfdf
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<div>Hi Daniel,</div><div><br></div>Well... I&#39;ve never built filedrawer=
s, but this line:<div><br></div><div>tpupload.c:18:19: error: mysql.h: No s=
uch file or directory<br><br></div><div>suggests you&#39;re missing the mys=
ql headers. If its redhat try a yum install mysql-devel.</div>

<div><br></div><div>-Aaron</div><div><br><div class=3D"gmail_quote">On Tue,=
 Aug 16, 2011 at 4:50 PM, Colson, Daniel <span dir=3D"ltr">&lt;<a href=3D"m=
ailto:dcolson5@uncc.edu">dcolson5@uncc.edu</a>&gt;</span> wrote:<br><blockq=
uote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex;">

<u></u>






<div>


<p><font size=3D"2">Thanks. Any help is appreciated. Here&#39;s the error o=
utput from &quot;make&quot;.<br>
<br>
make[1]: Entering directory `&lt;path-to-build-dir&gt;/build/filedrawers/li=
bcgi&#39;<br>
gcc -Wall -Wstrict-prototypes -g=A0 -fPIC -I/usr/include/apr-1=A0 -c -o cgi=
.o cgi.c<br>
cgi.c: In function =91post_getline=92:<br>
cgi.c:91: warning: function declaration isn=92t a prototype<br>
cgi.c: In function =91cgi_init=92:<br>
cgi.c:148: warning: function declaration isn=92t a prototype<br>
cgi.c: In function =91mp_get_file=92:<br>
cgi.c:361: warning: function declaration isn=92t a prototype<br>
cgi.c:364: warning: function declaration isn=92t a prototype<br>
cgi.c:375: warning: function declaration isn=92t a prototype<br>
cgi.c:378: warning: function declaration isn=92t a prototype<br>
cgi.c:385: warning: function declaration isn=92t a prototype<br>
cgi.c:388: warning: function declaration isn=92t a prototype<br>
cgi.c:400: warning: function declaration isn=92t a prototype<br>
cgi.c:420: warning: function declaration isn=92t a prototype<br>
cgi.c:424: warning: function declaration isn=92t a prototype<br>
cgi.c: In function =91cgi_multipart=92:<br>
cgi.c:539: warning: function declaration isn=92t a prototype<br>
cgi.c:614: warning: function declaration isn=92t a prototype<br>
building normal libcgi.a<br>
make[1]: Leaving directory `&lt;path-to-build-dir&gt;/build/filedrawers/lib=
cgi&#39;<br>
( cd upload; make=A0 )<br>
make[1]: Entering directory `&lt;path-to-build-dir&gt;/build/filedrawers/up=
load&#39;<br>
gcc -Wall -Wmissing-prototypes -g -O2 -I../libcgi -I/usr/include/mysql=A0 -=
g -pipe -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector --param=3D=
ssp-buffer-size=3D4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_LARGEFIL=
E_SOURCE -fno-strict-aliasing -fwrapv -Wall -Wmissing-prototypes \<br>


=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 -D_URL_ERROR_PAGE=3D\&quot;<a=
>https://</a>&lt;site&gt;?error=3Dtrue\&quot; \<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 -D_FILEDRAWERS_CONFIG_PATH=3D=
\&quot;/var/www/filedrawers/lib/filedrawers.conf\&quot; \<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 -c tpupload.c<br>
tpupload.c:18:19: error: mysql.h: No such file or directory<br>
tpupload.c:34: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92 before =91*=92 token<br>
tpupload.c:35: error: expected =91=3D=92, =91,=92, =91;=92, =91asm=92 or =
=91__attribute__=92 before =91*=92 token<br>
tpupload.c: In function =91upload_progress_db_insert=92:<br>
tpupload.c:103: error: =91MYSQL_BIND=92 undeclared (first use in this funct=
ion)<br>
tpupload.c:103: error: (Each undeclared identifier is reported only once<br=
>
tpupload.c:103: error: for each function it appears in.)<br>
tpupload.c:103: error: expected =91;=92 before =91bind=92<br>
tpupload.c:104: error: =91my_bool=92 undeclared (first use in this function=
)<br>
tpupload.c:104: error: expected =91;=92 before =91is_null=92<br>
tpupload.c:110: error: =91stmt=92 undeclared (first use in this function)<b=
r>
tpupload.c:111: warning: implicit declaration of function =91mysql_stmt_ini=
t=92<br>
tpupload.c:111: error: =91mysql=92 undeclared (first use in this function)<=
br>
tpupload.c:112: warning: implicit declaration of function =91mysql_error=92=
<br>
tpupload.c:112: warning: format =91%s=92 expects type =91char *=92, but arg=
ument 4 has type =91int=92<br>
tpupload.c:123: warning: implicit declaration of function =91mysql_stmt_pre=
pare=92<br>
tpupload.c:124: warning: implicit declaration of function =91mysql_stmt_err=
or=92<br>
tpupload.c:124: warning: format =91%s=92 expects type =91char *=92, but arg=
ument 4 has type =91int=92<br>
tpupload.c:130: error: =91bind=92 undeclared (first use in this function)<b=
r>
tpupload.c:130: warning: left-hand operand of comma expression has no effec=
t<br>
tpupload.c:132: error: =91MYSQL_TYPE_STRING=92 undeclared (first use in thi=
s function)<br>
tpupload.c:132: error: expected expression before =91)=92 token<br>
tpupload.c:132: error: =91is_null=92 undeclared (first use in this function=
)<br>
tpupload.c:133: error: expected expression before =91)=92 token<br>
tpupload.c:134: error: =91MYSQL_TYPE_LONGLONG=92 undeclared (first use in t=
his function)<br>
tpupload.c:134: error: expected expression before =91)=92 token<br>
tpupload.c:135: error: expected expression before =91)=92 token<br>
tpupload.c:136: error: =91MYSQL_TYPE_TINY=92 undeclared (first use in this =
function)<br>
tpupload.c:136: error: expected expression before =91)=92 token<br>
tpupload.c:138: warning: implicit declaration of function =91mysql_stmt_bin=
d_param=92<br>
tpupload.c:139: warning: format =91%s=92 expects type =91char *=92, but arg=
ument 4 has type =91int=92<br>
tpupload.c:148: warning: implicit declaration of function =91mysql_stmt_exe=
cute=92<br>
tpupload.c:149: warning: format =91%s=92 expects type =91char *=92, but arg=
ument 4 has type =91int=92<br>
tpupload.c: In function =91upload_progress_db_update=92:<br>
tpupload.c:160: error: =91MYSQL_BIND=92 undeclared (first use in this funct=
ion)<br>
tpupload.c:160: error: expected =91;=92 before =91bind=92<br>
tpupload.c:161: error: =91my_bool=92 undeclared (first use in this function=
)<br>
tpupload.c:161: error: expected =91;=92 before =91is_null=92<br>
tpupload.c:166: error: =91stmt=92 undeclared (first use in this function)<b=
r>
tpupload.c:167: error: =91mysql=92 undeclared (first use in this function)<=
br>
tpupload.c:168: warning: format =91%s=92 expects type =91char *=92, but arg=
ument 4 has type =91int=92<br>
tpupload.c:180: warning: format =91%s=92 expects type =91char *=92, but arg=
ument 4 has type =91int=92<br>
tpupload.c:186: error: =91bind=92 undeclared (first use in this function)<b=
r>
tpupload.c:186: warning: left-hand operand of comma expression has no effec=
t<br>
tpupload.c:188: error: =91MYSQL_TYPE_STRING=92 undeclared (first use in thi=
s function)<br>
tpupload.c:188: error: expected expression before =91)=92 token<br>
tpupload.c:188: error: =91is_null=92 undeclared (first use in this function=
)<br>
tpupload.c:189: error: =91MYSQL_TYPE_LONGLONG=92 undeclared (first use in t=
his function)<br>
tpupload.c:189: error: expected expression before =91)=92 token<br>
tpupload.c:190: error: =91MYSQL_TYPE_TINY=92 undeclared (first use in this =
function)<br>
tpupload.c:190: error: expected expression before =91)=92 token<br>
tpupload.c:191: error: expected expression before =91)=92 token<br>
tpupload.c:194: warning: format =91%s=92 expects type =91char *=92, but arg=
ument 4 has type =91int=92<br>
tpupload.c:203: warning: format =91%s=92 expects type =91char *=92, but arg=
ument 4 has type =91int=92<br>
tpupload.c: In function =91upload_init=92:<br>
tpupload.c:317: error: =91mysql=92 undeclared (first use in this function)<=
br>
tpupload.c:322: error: =91stmt=92 undeclared (first use in this function)<b=
r>
tpupload.c:323: warning: implicit declaration of function =91mysql_stmt_clo=
se=92<br>
tpupload.c:324: warning: format =91%s=92 expects type =91char *=92, but arg=
ument 4 has type =91int=92<br>
tpupload.c: In function =91upload_progress=92:<br>
tpupload.c:347: error: =91mysql=92 undeclared (first use in this function)<=
br>
tpupload.c: In function =91upload_complete=92:<br>
tpupload.c:373: error: =91mysql=92 undeclared (first use in this function)<=
br>
tpupload.c: In function =91main=92:<br>
tpupload.c:528: error: =91mysql=92 undeclared (first use in this function)<=
br>
tpupload.c:528: warning: implicit declaration of function =91mysql_init=92<=
br>
tpupload.c:530: warning: implicit declaration of function =91mysql_real_con=
nect=92<br>
tpupload.c:532: warning: format =91%s=92 expects type =91char *=92, but arg=
ument 4 has type =91int=92<br>
tpupload.c:553: error: =91stmt=92 undeclared (first use in this function)<b=
r>
tpupload.c:556: warning: implicit declaration of function =91mysql_close=92=
<br>
make[1]: *** [tpupload.o] Error 1<br>
make[1]: Leaving directory `&lt;path-to-build-dir&gt;/build/filedrawers/upl=
oad&#39;<br>
make: *** [upload/upload.cgi] Error 2<br><font color=3D"#888888">
<br>
-Daniel</font></font></p><div><div><font size=3D"2"></font></div><div class=
=3D"h5"><font size=3D"2"><br>
<br>
-----Original Message-----<br>
From: Aaron Knister [<a href=3D"mailto:aaronk@umbc.edu" target=3D"_blank">m=
ailto:aaronk@umbc.edu</a>]<br>
Sent: Mon 8/15/2011 12:32 PM<br>
To: Colson, Daniel<br>
Cc: <a href=3D"mailto:openafs-info@openafs.org" target=3D"_blank">openafs-i=
nfo@openafs.org</a><br>
Subject: Re: [OpenAFS] 64-bit mod_waklog / filedrawers on afs<br>
<br>
Hi Daniel,<br>
<br>
While I&#39;m not running filedrawers I am using mod_waklog, albeit with RH=
EL6.<br>
I had to apply some patches to get it to build correctly. If you send your<=
br>
build errors I can see if my patches will help.<br>
<br>
-Aaron<br>
<br>
On Wed, Aug 10, 2011 at 3:16 PM, Colson, Daniel &lt;<a href=3D"mailto:dcols=
on5@uncc.edu" target=3D"_blank">dcolson5@uncc.edu</a>&gt; wrote:<br>
<br>
&gt; **<br>
&gt;<br>
&gt; Is anyone else running mod_waklog / filedrawers on afs on a 64-bit mac=
hine?<br>
&gt; I&#39;ve been unable to compile mod_waklog (an essential component of<=
br>
&gt; filedrawers) on 64-bit (RHEL5.6).<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Aaron Knister<br>
Systems Administrator<br>
Division of Information Technology<br>
University of Maryland, Baltimore County<br>
<a href=3D"mailto:aaronk@umbc.edu" target=3D"_blank">aaronk@umbc.edu</a><br=
>
<br>
</font></div></div>
<p></p>

</div>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>Aaron Kniste=
r<br>Systems Administrator<br>Division of Information Technology<br>Univers=
ity of Maryland, Baltimore County<br><a href=3D"mailto:aaronk@umbc.edu" tar=
get=3D"_blank">aaronk@umbc.edu</a><br>


</div>

--0022152d63298da04c04aab4bfdf--