[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 "make".<BR>
<BR>
make[1]: Entering directory =
`<path-to-build-dir>/build/filedrawers/libcgi'<BR>
gcc -Wall -Wstrict-prototypes -g -fPIC -I/usr/include/apr-1 =
-c -o cgi.o cgi.c<BR>
cgi.c: In function ‘post_getline’:<BR>
cgi.c:91: warning: function declaration isn’t a prototype<BR>
cgi.c: In function ‘cgi_init’:<BR>
cgi.c:148: warning: function declaration isn’t a prototype<BR>
cgi.c: In function ‘mp_get_file’:<BR>
cgi.c:361: warning: function declaration isn’t a prototype<BR>
cgi.c:364: warning: function declaration isn’t a prototype<BR>
cgi.c:375: warning: function declaration isn’t a prototype<BR>
cgi.c:378: warning: function declaration isn’t a prototype<BR>
cgi.c:385: warning: function declaration isn’t a prototype<BR>
cgi.c:388: warning: function declaration isn’t a prototype<BR>
cgi.c:400: warning: function declaration isn’t a prototype<BR>
cgi.c:420: warning: function declaration isn’t a prototype<BR>
cgi.c:424: warning: function declaration isn’t a prototype<BR>
cgi.c: In function ‘cgi_multipart’:<BR>
cgi.c:539: warning: function declaration isn’t a prototype<BR>
cgi.c:614: warning: function declaration isn’t a prototype<BR>
building normal libcgi.a<BR>
make[1]: Leaving directory =
`<path-to-build-dir>/build/filedrawers/libcgi'<BR>
( cd upload; make )<BR>
make[1]: Entering directory =
`<path-to-build-dir>/build/filedrawers/upload'<BR>
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 \<BR>
&=
nbsp; -D_URL_ERROR_PAGE=3D\"<A =
HREF=3D"https://">https://</A><site>?error=3Dtrue\" \<BR>
&=
nbsp; =
-D_FILEDRAWERS_CONFIG_PATH=3D\"/var/www/filedrawers/lib/filedrawers.=
conf\" \<BR>
&=
nbsp; -c tpupload.c<BR>
tpupload.c:18:19: error: mysql.h: No such file or directory<BR>
tpupload.c:34: error: expected ‘=3D’, ‘,’, =
‘;’, ‘asm’ or ‘__attribute__’ before =
‘*’ token<BR>
tpupload.c:35: error: expected ‘=3D’, ‘,’, =
‘;’, ‘asm’ or ‘__attribute__’ before =
‘*’ token<BR>
tpupload.c: In function ‘upload_progress_db_insert’:<BR>
tpupload.c:103: error: ‘MYSQL_BIND’ 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 ‘;’ before =
‘bind’<BR>
tpupload.c:104: error: ‘my_bool’ undeclared (first use in this =
function)<BR>
tpupload.c:104: error: expected ‘;’ before =
‘is_null’<BR>
tpupload.c:110: error: ‘stmt’ undeclared (first use in this =
function)<BR>
tpupload.c:111: warning: implicit declaration of function =
‘mysql_stmt_init’<BR>
tpupload.c:111: error: ‘mysql’ undeclared (first use in this =
function)<BR>
tpupload.c:112: warning: implicit declaration of function =
‘mysql_error’<BR>
tpupload.c:112: warning: format ‘%s’ expects type ‘char =
*’, but argument 4 has type ‘int’<BR>
tpupload.c:123: warning: implicit declaration of function =
‘mysql_stmt_prepare’<BR>
tpupload.c:124: warning: implicit declaration of function =
‘mysql_stmt_error’<BR>
tpupload.c:124: warning: format ‘%s’ expects type ‘char =
*’, but argument 4 has type ‘int’<BR>
tpupload.c:130: error: ‘bind’ 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: ‘MYSQL_TYPE_STRING’ undeclared (first =
use in this function)<BR>
tpupload.c:132: error: expected expression before ‘)’ =
token<BR>
tpupload.c:132: error: ‘is_null’ undeclared (first use in this =
function)<BR>
tpupload.c:133: error: expected expression before ‘)’ =
token<BR>
tpupload.c:134: error: ‘MYSQL_TYPE_LONGLONG’ undeclared (first =
use in this function)<BR>
tpupload.c:134: error: expected expression before ‘)’ =
token<BR>
tpupload.c:135: error: expected expression before ‘)’ =
token<BR>
tpupload.c:136: error: ‘MYSQL_TYPE_TINY’ undeclared (first use =
in this function)<BR>
tpupload.c:136: error: expected expression before ‘)’ =
token<BR>
tpupload.c:138: warning: implicit declaration of function =
‘mysql_stmt_bind_param’<BR>
tpupload.c:139: warning: format ‘%s’ expects type ‘char =
*’, but argument 4 has type ‘int’<BR>
tpupload.c:148: warning: implicit declaration of function =
‘mysql_stmt_execute’<BR>
tpupload.c:149: warning: format ‘%s’ expects type ‘char =
*’, but argument 4 has type ‘int’<BR>
tpupload.c: In function ‘upload_progress_db_update’:<BR>
tpupload.c:160: error: ‘MYSQL_BIND’ undeclared (first use in =
this function)<BR>
tpupload.c:160: error: expected ‘;’ before =
‘bind’<BR>
tpupload.c:161: error: ‘my_bool’ undeclared (first use in this =
function)<BR>
tpupload.c:161: error: expected ‘;’ before =
‘is_null’<BR>
tpupload.c:166: error: ‘stmt’ undeclared (first use in this =
function)<BR>
tpupload.c:167: error: ‘mysql’ undeclared (first use in this =
function)<BR>
tpupload.c:168: warning: format ‘%s’ expects type ‘char =
*’, but argument 4 has type ‘int’<BR>
tpupload.c:180: warning: format ‘%s’ expects type ‘char =
*’, but argument 4 has type ‘int’<BR>
tpupload.c:186: error: ‘bind’ 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: ‘MYSQL_TYPE_STRING’ undeclared (first =
use in this function)<BR>
tpupload.c:188: error: expected expression before ‘)’ =
token<BR>
tpupload.c:188: error: ‘is_null’ undeclared (first use in this =
function)<BR>
tpupload.c:189: error: ‘MYSQL_TYPE_LONGLONG’ undeclared (first =
use in this function)<BR>
tpupload.c:189: error: expected expression before ‘)’ =
token<BR>
tpupload.c:190: error: ‘MYSQL_TYPE_TINY’ undeclared (first use =
in this function)<BR>
tpupload.c:190: error: expected expression before ‘)’ =
token<BR>
tpupload.c:191: error: expected expression before ‘)’ =
token<BR>
tpupload.c:194: warning: format ‘%s’ expects type ‘char =
*’, but argument 4 has type ‘int’<BR>
tpupload.c:203: warning: format ‘%s’ expects type ‘char =
*’, but argument 4 has type ‘int’<BR>
tpupload.c: In function ‘upload_init’:<BR>
tpupload.c:317: error: ‘mysql’ undeclared (first use in this =
function)<BR>
tpupload.c:322: error: ‘stmt’ undeclared (first use in this =
function)<BR>
tpupload.c:323: warning: implicit declaration of function =
‘mysql_stmt_close’<BR>
tpupload.c:324: warning: format ‘%s’ expects type ‘char =
*’, but argument 4 has type ‘int’<BR>
tpupload.c: In function ‘upload_progress’:<BR>
tpupload.c:347: error: ‘mysql’ undeclared (first use in this =
function)<BR>
tpupload.c: In function ‘upload_complete’:<BR>
tpupload.c:373: error: ‘mysql’ undeclared (first use in this =
function)<BR>
tpupload.c: In function ‘main’:<BR>
tpupload.c:528: error: ‘mysql’ undeclared (first use in this =
function)<BR>
tpupload.c:528: warning: implicit declaration of function =
‘mysql_init’<BR>
tpupload.c:530: warning: implicit declaration of function =
‘mysql_real_connect’<BR>
tpupload.c:532: warning: format ‘%s’ expects type ‘char =
*’, but argument 4 has type ‘int’<BR>
tpupload.c:553: error: ‘stmt’ undeclared (first use in this =
function)<BR>
tpupload.c:556: warning: implicit declaration of function =
‘mysql_close’<BR>
make[1]: *** [tpupload.o] Error 1<BR>
make[1]: Leaving directory =
`<path-to-build-dir>/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 =
<dcolson5@uncc.edu> wrote:<BR>
<BR>
> **<BR>
><BR>
> Is anyone else running mod_waklog / filedrawers on afs on a 64-bit =
machine?<BR>
> I've been unable to compile mod_waklog (an essential component =
of<BR>
> filedrawers) on 64-bit (RHEL5.6).<BR>
><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--