[OpenAFS] 64-bit mod_waklog / filedrawers on afs

Colson, Daniel dcolson5@uncc.edu
Tue, 16 Aug 2011 16:50:51 -0400


This is a multi-part message in MIME format.

------_=_NextPart_001_01CC5C56.DBA2EA2D
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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-prototypes \
                -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 =
function)
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 =
function)
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_init=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 =
argument 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 =
argument 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 =
this function)
tpupload.c:132: error: expected expression before =91)=92 token
tpupload.c:132: error: =91is_null=92 undeclared (first use in this =
function)
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 =
this 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 =
argument 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 =
argument 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 =
function)
tpupload.c:160: error: expected =91;=92 before =91bind=92
tpupload.c:161: error: =91my_bool=92 undeclared (first use in this =
function)
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 =
argument 4 has type =91int=92
tpupload.c:180: warning: format =91%s=92 expects type =91char *=92, but =
argument 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 =
this function)
tpupload.c:188: error: expected expression before =91)=92 token
tpupload.c:188: error: =91is_null=92 undeclared (first use in this =
function)
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 =
this 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 =
argument 4 has type =91int=92
tpupload.c:203: warning: format =91%s=92 expects type =91char *=92, but =
argument 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 =
argument 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 =
argument 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]
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
=20
Hi Daniel,

While I'm not running filedrawers I am using mod_waklog, albeit with =
RHEL6.
I had to apply some patches to get it to build correctly. If you send =
your
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).
>



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


------_=_NextPart_001_01CC5C56.DBA2EA2D
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7655.1">
<TITLE>RE: [OpenAFS] 64-bit mod_waklog / filedrawers on afs</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>Thanks. Any help is appreciated. Here's the error =
output from &quot;make&quot;.<BR>
<BR>
make[1]: Entering directory =
`&lt;path-to-build-dir&gt;/build/filedrawers/libcgi'<BR>
gcc -Wall -Wstrict-prototypes -g&nbsp; -fPIC -I/usr/include/apr-1&nbsp; =
-c -o cgi.o cgi.c<BR>
cgi.c: In function &#145;post_getline&#146;:<BR>
cgi.c:91: warning: function declaration isn&#146;t a prototype<BR>
cgi.c: In function &#145;cgi_init&#146;:<BR>
cgi.c:148: warning: function declaration isn&#146;t a prototype<BR>
cgi.c: In function &#145;mp_get_file&#146;:<BR>
cgi.c:361: warning: function declaration isn&#146;t a prototype<BR>
cgi.c:364: warning: function declaration isn&#146;t a prototype<BR>
cgi.c:375: warning: function declaration isn&#146;t a prototype<BR>
cgi.c:378: warning: function declaration isn&#146;t a prototype<BR>
cgi.c:385: warning: function declaration isn&#146;t a prototype<BR>
cgi.c:388: warning: function declaration isn&#146;t a prototype<BR>
cgi.c:400: warning: function declaration isn&#146;t a prototype<BR>
cgi.c:420: warning: function declaration isn&#146;t a prototype<BR>
cgi.c:424: warning: function declaration isn&#146;t a prototype<BR>
cgi.c: In function &#145;cgi_multipart&#146;:<BR>
cgi.c:539: warning: function declaration isn&#146;t a prototype<BR>
cgi.c:614: warning: function declaration isn&#146;t a prototype<BR>
building normal libcgi.a<BR>
make[1]: Leaving directory =
`&lt;path-to-build-dir&gt;/build/filedrawers/libcgi'<BR>
( cd upload; make&nbsp; )<BR>
make[1]: Entering directory =
`&lt;path-to-build-dir&gt;/build/filedrawers/upload'<BR>
gcc -Wall -Wmissing-prototypes -g -O2 -I../libcgi =
-I/usr/include/mysql&nbsp; -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-prototypes \<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; -D_URL_ERROR_PAGE=3D\&quot;<A =
HREF=3D"https://">https://</A>&lt;site&gt;?error=3Dtrue\&quot; \<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; =
-D_FILEDRAWERS_CONFIG_PATH=3D\&quot;/var/www/filedrawers/lib/filedrawers.=
conf\&quot; \<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; -c tpupload.c<BR>
tpupload.c:18:19: error: mysql.h: No such file or directory<BR>
tpupload.c:34: error: expected &#145;=3D&#146;, &#145;,&#146;, =
&#145;;&#146;, &#145;asm&#146; or &#145;__attribute__&#146; before =
&#145;*&#146; token<BR>
tpupload.c:35: error: expected &#145;=3D&#146;, &#145;,&#146;, =
&#145;;&#146;, &#145;asm&#146; or &#145;__attribute__&#146; before =
&#145;*&#146; token<BR>
tpupload.c: In function &#145;upload_progress_db_insert&#146;:<BR>
tpupload.c:103: error: &#145;MYSQL_BIND&#146; undeclared (first use in =
this function)<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 &#145;;&#146; before =
&#145;bind&#146;<BR>
tpupload.c:104: error: &#145;my_bool&#146; undeclared (first use in this =
function)<BR>
tpupload.c:104: error: expected &#145;;&#146; before =
&#145;is_null&#146;<BR>
tpupload.c:110: error: &#145;stmt&#146; undeclared (first use in this =
function)<BR>
tpupload.c:111: warning: implicit declaration of function =
&#145;mysql_stmt_init&#146;<BR>
tpupload.c:111: error: &#145;mysql&#146; undeclared (first use in this =
function)<BR>
tpupload.c:112: warning: implicit declaration of function =
&#145;mysql_error&#146;<BR>
tpupload.c:112: warning: format &#145;%s&#146; expects type &#145;char =
*&#146;, but argument 4 has type &#145;int&#146;<BR>
tpupload.c:123: warning: implicit declaration of function =
&#145;mysql_stmt_prepare&#146;<BR>
tpupload.c:124: warning: implicit declaration of function =
&#145;mysql_stmt_error&#146;<BR>
tpupload.c:124: warning: format &#145;%s&#146; expects type &#145;char =
*&#146;, but argument 4 has type &#145;int&#146;<BR>
tpupload.c:130: error: &#145;bind&#146; undeclared (first use in this =
function)<BR>
tpupload.c:130: warning: left-hand operand of comma expression has no =
effect<BR>
tpupload.c:132: error: &#145;MYSQL_TYPE_STRING&#146; undeclared (first =
use in this function)<BR>
tpupload.c:132: error: expected expression before &#145;)&#146; =
token<BR>
tpupload.c:132: error: &#145;is_null&#146; undeclared (first use in this =
function)<BR>
tpupload.c:133: error: expected expression before &#145;)&#146; =
token<BR>
tpupload.c:134: error: &#145;MYSQL_TYPE_LONGLONG&#146; undeclared (first =
use in this function)<BR>
tpupload.c:134: error: expected expression before &#145;)&#146; =
token<BR>
tpupload.c:135: error: expected expression before &#145;)&#146; =
token<BR>
tpupload.c:136: error: &#145;MYSQL_TYPE_TINY&#146; undeclared (first use =
in this function)<BR>
tpupload.c:136: error: expected expression before &#145;)&#146; =
token<BR>
tpupload.c:138: warning: implicit declaration of function =
&#145;mysql_stmt_bind_param&#146;<BR>
tpupload.c:139: warning: format &#145;%s&#146; expects type &#145;char =
*&#146;, but argument 4 has type &#145;int&#146;<BR>
tpupload.c:148: warning: implicit declaration of function =
&#145;mysql_stmt_execute&#146;<BR>
tpupload.c:149: warning: format &#145;%s&#146; expects type &#145;char =
*&#146;, but argument 4 has type &#145;int&#146;<BR>
tpupload.c: In function &#145;upload_progress_db_update&#146;:<BR>
tpupload.c:160: error: &#145;MYSQL_BIND&#146; undeclared (first use in =
this function)<BR>
tpupload.c:160: error: expected &#145;;&#146; before =
&#145;bind&#146;<BR>
tpupload.c:161: error: &#145;my_bool&#146; undeclared (first use in this =
function)<BR>
tpupload.c:161: error: expected &#145;;&#146; before =
&#145;is_null&#146;<BR>
tpupload.c:166: error: &#145;stmt&#146; undeclared (first use in this =
function)<BR>
tpupload.c:167: error: &#145;mysql&#146; undeclared (first use in this =
function)<BR>
tpupload.c:168: warning: format &#145;%s&#146; expects type &#145;char =
*&#146;, but argument 4 has type &#145;int&#146;<BR>
tpupload.c:180: warning: format &#145;%s&#146; expects type &#145;char =
*&#146;, but argument 4 has type &#145;int&#146;<BR>
tpupload.c:186: error: &#145;bind&#146; undeclared (first use in this =
function)<BR>
tpupload.c:186: warning: left-hand operand of comma expression has no =
effect<BR>
tpupload.c:188: error: &#145;MYSQL_TYPE_STRING&#146; undeclared (first =
use in this function)<BR>
tpupload.c:188: error: expected expression before &#145;)&#146; =
token<BR>
tpupload.c:188: error: &#145;is_null&#146; undeclared (first use in this =
function)<BR>
tpupload.c:189: error: &#145;MYSQL_TYPE_LONGLONG&#146; undeclared (first =
use in this function)<BR>
tpupload.c:189: error: expected expression before &#145;)&#146; =
token<BR>
tpupload.c:190: error: &#145;MYSQL_TYPE_TINY&#146; undeclared (first use =
in this function)<BR>
tpupload.c:190: error: expected expression before &#145;)&#146; =
token<BR>
tpupload.c:191: error: expected expression before &#145;)&#146; =
token<BR>
tpupload.c:194: warning: format &#145;%s&#146; expects type &#145;char =
*&#146;, but argument 4 has type &#145;int&#146;<BR>
tpupload.c:203: warning: format &#145;%s&#146; expects type &#145;char =
*&#146;, but argument 4 has type &#145;int&#146;<BR>
tpupload.c: In function &#145;upload_init&#146;:<BR>
tpupload.c:317: error: &#145;mysql&#146; undeclared (first use in this =
function)<BR>
tpupload.c:322: error: &#145;stmt&#146; undeclared (first use in this =
function)<BR>
tpupload.c:323: warning: implicit declaration of function =
&#145;mysql_stmt_close&#146;<BR>
tpupload.c:324: warning: format &#145;%s&#146; expects type &#145;char =
*&#146;, but argument 4 has type &#145;int&#146;<BR>
tpupload.c: In function &#145;upload_progress&#146;:<BR>
tpupload.c:347: error: &#145;mysql&#146; undeclared (first use in this =
function)<BR>
tpupload.c: In function &#145;upload_complete&#146;:<BR>
tpupload.c:373: error: &#145;mysql&#146; undeclared (first use in this =
function)<BR>
tpupload.c: In function &#145;main&#146;:<BR>
tpupload.c:528: error: &#145;mysql&#146; undeclared (first use in this =
function)<BR>
tpupload.c:528: warning: implicit declaration of function =
&#145;mysql_init&#146;<BR>
tpupload.c:530: warning: implicit declaration of function =
&#145;mysql_real_connect&#146;<BR>
tpupload.c:532: warning: format &#145;%s&#146; expects type &#145;char =
*&#146;, but argument 4 has type &#145;int&#146;<BR>
tpupload.c:553: error: &#145;stmt&#146; undeclared (first use in this =
function)<BR>
tpupload.c:556: warning: implicit declaration of function =
&#145;mysql_close&#146;<BR>
make[1]: *** [tpupload.o] Error 1<BR>
make[1]: Leaving directory =
`&lt;path-to-build-dir&gt;/build/filedrawers/upload'<BR>
make: *** [upload/upload.cgi] Error 2<BR>
<BR>
-Daniel<BR>
<BR>
-----Original Message-----<BR>
From: Aaron Knister [<A =
HREF=3D"mailto:aaronk@umbc.edu">mailto:aaronk@umbc.edu</A>]<BR>
Sent: Mon 8/15/2011 12:32 PM<BR>
To: Colson, Daniel<BR>
Cc: openafs-info@openafs.org<BR>
Subject: Re: [OpenAFS] 64-bit mod_waklog / filedrawers on afs<BR>
<BR>
Hi Daniel,<BR>
<BR>
While I'm not running filedrawers I am using mod_waklog, albeit with =
RHEL6.<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;dcolson5@uncc.edu&gt; wrote:<BR>
<BR>
&gt; **<BR>
&gt;<BR>
&gt; Is anyone else running mod_waklog / filedrawers on afs on a 64-bit =
machine?<BR>
&gt; I'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>
aaronk@umbc.edu<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01CC5C56.DBA2EA2D--