LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-14-2007, 01:01 PM   #1
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Rep: Reputation: 30
mysql Module for Bugzilla compile problems


I am installing Bugzilla on a Fedora Core 6 machine at work for an upcoming project and I am having some installation problems.

Bugzilla comes with a checksetup.pl perl script that checks for dependency issues and gives a list of installaion commands in order to resolve these issues.

Upon running checksetup.pl, I received a message indicating in order to resolve dependecy problems, to run the command:

/usr/bin/perl -MCPAN -e 'install "DBD::mysql"'

I did this and I received an error message that looks to me like a compilation error with the mysql module. I redirected the error messages into a file. This is the file:

Code:
Checking if your kit is complete...
Looks good
Using DBI 1.52 (for perl 5.008008 on i386-linux-thread-multi) installed in /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-
multi/auto/DBI/
Writing Makefile for DBD::mysql
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
gcc -c  -I/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBI -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURC
E=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_G
NU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_I
S_GOOD -g  -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFI
LE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
 --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables   -DVERSION=\"4.003\" -DXS_VERSION=\"4
.003\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE"   dbdimp.c
In file included from dbdimp.c:20:
dbdimp.h:22:49: error: mysql.h: No such file or directory
dbdimp.h:23:45: error: mysqld_error.h: No such file or directory
dbdimp.h:24:49: error: errmsg.h: No such file or directory
In file included from dbdimp.c:20:
dbdimp.h:138: error: expected specifier-qualifier-list before ‘MYSQL’
dbdimp.h:231: error: expected specifier-qualifier-list before ‘MYSQL_RES’
In file included from dbdimp.c:20:
dbdimp.h:290: error: expected ‘)’ before ‘*’ token
dbdimp.h:293: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysql_st_internal_execute’
dbdimp.h:325: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dbdimp.c:433: error: expected ‘)’ before ‘*’ token
dbdimp.c:662: error: ‘FIELD_TYPE_VAR_STRING’ undeclared here (not in a function)
dbdimp.c:672: error: ‘FIELD_TYPE_DECIMAL’ undeclared here (not in a function)
dbdimp.c:682: error: ‘FIELD_TYPE_TINY’ undeclared here (not in a function)
dbdimp.c:692: error: ‘FIELD_TYPE_SHORT’ undeclared here (not in a function)
dbdimp.c:702: error: ‘FIELD_TYPE_LONG’ undeclared here (not in a function)
dbdimp.c:712: error: ‘FIELD_TYPE_FLOAT’ undeclared here (not in a function)
dbdimp.c:722: error: ‘FIELD_TYPE_DOUBLE’ undeclared here (not in a function)
dbdimp.c:745: error: ‘FIELD_TYPE_TIMESTAMP’ undeclared here (not in a function)
dbdimp.c:755: error: ‘FIELD_TYPE_LONGLONG’ undeclared here (not in a function)
dbdimp.c:765: error: ‘FIELD_TYPE_INT24’ undeclared here (not in a function)
................
.................
..............
.................

dbdimp.c:3375: error: invalid operands to binary *
dbdimp.c:3375: warning: statement with no effect
dbdimp.c:3413: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:3419: error: too few arguments to function ‘mysql_dr_error’
dbdimp.c:3419: warning: statement with no effect
dbdimp.c:3425: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:3425: error: request for member ‘net’ in something not a structure or union
dbdimp.c:3425: error: request for member ‘last_errno’ in something not a structure or union
dbdimp.c:3425: warning: statement with no effect
dbdimp.c:3555: error: ‘imp_sth_t’ has no member named ‘currow’
dbdimp.c:3555: error: invalid lvalue in increment
dbdimp.c:3555: warning: statement with no effect
dbdimp.c:3560: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:3562: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:3564: warning: implicit declaration of function ‘mysql_num_rows’
dbdimp.c:3564: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:3566: warning: implicit declaration of function ‘mysql_affected_rows’
dbdimp.c:3566: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:3568: error: ‘imp_sth_t’ has no member named ‘currow’
dbdimp.c:3571: error: ‘cols’ undeclared (first use in this function)
dbdimp.c:3571: warning: implicit declaration of function ‘mysql_fetch_row’
dbdimp.c:3571: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:3577: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:3578: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:3579: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:3583: warning: passing argument 3 of ‘mysql_dr_error’ makes pointer from integer without a cast
dbdimp.c:3583: error: too few arguments to function ‘mysql_dr_error’
dbdimp.c:3583: warning: statement with no effect
dbdimp.c:3594: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:3595: warning: implicit declaration of function ‘mysql_fetch_fields’
dbdimp.c:3595: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:3595: warning: statement with no effect
dbdimp.c:3596: warning: implicit declaration of function ‘mysql_fetch_lengths’
dbdimp.c:3596: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:3596: warning: assignment makes pointer from integer without a cast
dbdimp.c:3636: error: incompatible types in initialization
dbdimp.c:3371: warning: unused variable ‘fbh’
dbdimp.c:3364: warning: unused variable ‘rc’
dbdimp.c: In function ‘mysql_st_finish’:
dbdimp.c:3761: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c: In function ‘mysql_st_destroy’:
dbdimp.c:3802: error: ‘imp_sth_t’ has no member named ‘params’
dbdimp.c:3802: warning: passing argument 1 of ‘free_param’ from incompatible pointer type
dbdimp.c:3803: error: ‘imp_sth_t’ has no member named ‘params’
:
dbdimp.c:3803: warning: statement with no effect
dbdimp.c:3808: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:3808: error: used struct type value where scalar is required
dbdimp.c:3809: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:3809: error: cannot convert to a pointer type
dbdimp.c:3810: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:3810: error: assignment of read-only location
dbdimp.c:3810: warning: statement with no effect
dbdimp.c: In function ‘mysql_st_STORE_attrib’:
dbdimp.c:3853: error: ‘imp_sth_t’ has no member named ‘use_mysql_use_result’
dbdimp.c:3853: warning: statement with no effect
dbdimp.c: At top level:
dbdimp.c:3901: error: expected declaration specifiers or ‘...’ before ‘MYSQL_RES’
dbdimp.c: In function ‘mysql_st_FETCH_internal’:
dbdimp.c:3907: error: ‘MYSQL_FIELD’ undeclared (first use in this function)
dbdimp.c:3907: error: ‘curField’ undeclared (first use in this function)
dbdimp.c:3907: error: invalid operands to binary *
dbdimp.c:3907: warning: statement with no effect
dbdimp.c:3915: error: too few arguments to function ‘mysql_dr_error’
dbdimp.c:3915: warning: statement with no effect
dbdimp.c:3919: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:3919: error: invalid operands to binary &&
dbdimp.c:3920: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:3920: error: incompatible types in assignment
dbdimp.c:3920: warning: statement with no effect
dbdimp.c:3923: error: ‘res’ undeclared (first use in this function)
dbdimp.c:3929: error: too few arguments to function ‘mysql_dr_error’
dbdimp.c:3929: warning: statement with no effect
dbdimp.c:3935: warning: implicit declaration of function ‘mysql_field_seek’
dbdimp.c:3936: warning: implicit declaration of function ‘mysql_fetch_field’
dbdimp.c:3942: error: ‘sql_type_info_t’ has no member named ‘name’
dbdimp.c:3942: error: ‘sql_type_info_t’ has no member named ‘name’
dbdimp.c:3942: warning: passing argument 1 of ‘strlen’ from incompatible pointer type
dbdimp.c:3942: warning: passing argument 2 of ‘Perl_newSVpv’ from incompatible pointer type
dbdimp.c:3946: error: ‘sql_type_info_t’ has no member named ‘table’
dbdimp.c:3946: error: ‘sql_type_info_t’ has no member named ‘table’
dbdimp.c:3946: warning: passing argument 1 of ‘strlen’ from incompatible pointer type
dbdimp.c:3946: warning: passing argument 2 of ‘Perl_newSVpv’ from incompatible pointer type
dbdimp.c:3950: error: ‘sql_type_info_t’ has no member named ‘type’
dbdimp.c:3954: error: ‘sql_type_info_t’ has no member named ‘type’
dbdimp.c:3954: warning: passing argument 1 of ‘native2sql’ makes integer from pointer without a cast
dbdimp.c:3957: warning: implicit declaration of function ‘IS_PRI_KEY’
dbdimp.c:3957: error: ‘sql_type_info_t’ has no member named ‘flags’
dbdimp.c:3961: warning: implicit declaration of function ‘IS_NOT_NULL’
dbdimp.c:3961: error: ‘sql_type_info_t’ has no member named ‘flags’
dbdimp.c:3965: error: ‘sql_type_info_t’ has no member named ‘flags’
:
dbdimp.c:3969: error: ‘sql_type_info_t’ has no member named ‘length’
dbdimp.c:3973: error: ‘sql_type_info_t’ has no member named ‘type’
dbdimp.c:3973: warning: passing argument 1 of ‘native2sql’ makes integer from pointer without a cast
dbdimp.c:3977: error: ‘sql_type_info_t’ has no member named ‘type’
dbdimp.c:3977: warning: passing argument 1 of ‘native2sql’ makes integer from pointer without a cast
dbdimp.c:3981: error: ‘sql_type_info_t’ has no member named ‘max_length’
dbdimp.c:3993: error: ‘sql_type_info_t’ has no member named ‘flags’
dbdimp.c:3993: error: ‘PRI_KEY_FLAG’ undeclared (first use in this function)
dbdimp.c:3993: error: ‘UNIQUE_KEY_FLAG’ undeclared (first use in this function)
dbdimp.c:3993: error: invalid operands to binary |
dbdimp.c:3993: error: ‘MULTIPLE_KEY_FLAG’ undeclared (first use in this function)
dbdimp.c:3993: error: invalid operands to binary |
dbdimp.c:3993: error: invalid operands to binary &
dbdimp.c:3997: warning: implicit declaration of function ‘IS_BLOB’
dbdimp.c:3997: error: ‘sql_type_info_t’ has no member named ‘flags’
dbdimp.c:4001: error: ‘sql_type_info_t’ has no member named ‘decimals’
dbdimp.c:4005: error: ‘sql_type_info_t’ has no member named ‘length’
dbdimp.c:4005: error: ‘sql_type_info_t’ has no member named ‘max_length’
dbdimp.c:4005: error: ‘sql_type_info_t’ has no member named ‘length’
dbdimp.c:4005: error: ‘sql_type_info_t’ has no member named ‘max_length’
dbdimp.c:4005: warning: passing argument 2 of ‘Perl_newSViv’ makes integer from pointer without a cast
dbdimp.c:4020: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:4020: error: assignment of read-only location
dbdimp.c:4020: warning: statement with no effect
dbdimp.c: In function ‘mysql_st_FETCH_attrib’:
dbdimp.c:4069: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4069: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4069: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4071: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4071: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4071: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4075: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4075: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4075: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4087: error: ‘imp_sth_t’ has no member named ‘params’
dbdimp.c:4087: error: ‘struct sql_type_info_s’ has no member named ‘value’
dbdimp.c:4087: warning: passing argument 2 of ‘Perl_newSVsv’ from incompatible pointer type
dbdimp.c:4096: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4096: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4096: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4100: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4100: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4100: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4106: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4106: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4106: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4110: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4110: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4110: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4114: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4114: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4114: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4116: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4116: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4116: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4118: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4118: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4118: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4120: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4124: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4124: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4124: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4131: error: ‘imp_sth_t’ has no member named ‘insertid’
dbdimp.c:4133: error: ‘imp_sth_t’ has no member named ‘insertid’
dbdimp.c:4133: warning: passing argument 2 of ‘Perl_sv_2mortal’ makes pointer from integer without a cast
dbdimp.c:4138: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4138: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4138: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4142: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4142: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4142: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4144: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4144: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4144: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4146: error: ‘imp_sth_t’ has no member named ‘use_mysql_use_result’
dbdimp.c:4158: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4158: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4158: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c: In function ‘mysql_bind_ph’:
dbdimp.c:4244: error: too few arguments to function ‘mysql_dr_error’
dbdimp.c:4244: warning: statement with no effect
dbdimp.c:4271: error: too few arguments to function ‘mysql_dr_error’
dbdimp.c:4271: warning: statement with no effect
dbdimp.c:4283: error: too few arguments to function ‘mysql_dr_error’
dbdimp.c:4283: warning: statement with no effect
dbdimp.c:4288: error: ‘imp_sth_t’ has no member named ‘params’
dbdimp.c:4288: warning: passing argument 1 of ‘bind_param’ from incompatible pointer type
dbdimp.c: In function ‘mysql_db_reconnect’:
dbdimp.c:4407: error: ‘MYSQL’ undeclared (first use in this function)
dbdimp.c:4407: warning: statement with no effect
dbdimp.c:4407: error: expected ‘;’ before ‘save_socket’
dbdimp.c:4417: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4417: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
dbdimp.c:4417: warning: comparison between pointer and integer
dbdimp.c:4421: error: ‘imp_dbh_t’ has no member named ‘auto_reconnect’
dbdimp.c:4435: error: ‘save_socket’ undeclared (first use in this function)
dbdimp.c:4435: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4435: warning: statement with no effect
dbdimp.c:4436: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4436: warning: passing argument 3 of ‘__builtin___memcpy_chk’ makes integer from pointer without a cast
dbdimp.c:4436: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4436: warning: passing argument 3 of ‘__memcpy_ichk’ makes integer from pointer without a cast
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: warning: passing argument 3 of ‘__builtin___memset_chk’ makes integer from pointer without a cast
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: warning: passing argument 3 of ‘__memset_ichk’ makes integer from pointer without a cast
dbdimp.c:4441: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4441: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4445: warning: passing argument 3 of ‘mysql_dr_error’ makes pointer from integer without a cast
dbdimp.c:4445: error: too few arguments to function ‘mysql_dr_error’
dbdimp.c:4445: warning: statement with no effect
dbdimp.c:4447: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4447: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4447: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4447: warning: passing argument 3 of ‘__builtin___memcpy_chk’ makes integer from pointer without a cast
dbdimp.c:4447: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4447: warning: passing argument 3 of ‘__memcpy_ichk’ makes integer from pointer without a cast
dbdimp.c:4448: error: ‘imp_dbh_t’ has no member named ‘stats’
dbdimp.c:4448: error: request for member ‘auto_reconnects_failed’ in something not a structure or union
dbdimp.c:4448: error: invalid lvalue in increment
dbdimp.c:4448: warning: statement with no effect
dbdimp.c:4451: error: ‘imp_dbh_t’ has no member named ‘stats’
dbdimp.c:4451: error: request for member ‘auto_reconnects_ok’ in something not a structure or union
dbdimp.c:4451: error: invalid lvalue in increment
dbdimp.c:4451: warning: statement with no effect
dbdimp.c: In function ‘mysql_db_quote’:
dbdimp.c:4608: warning: implicit declaration of function ‘mysql_real_escape_string’
dbdimp.c:4608: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c: In function ‘mysql_db_last_insert_id’:
dbdimp.c:4623: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: warning: passing argument 3 of ‘__builtin___memset_chk’ makes integer from pointer without a cast
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4437: warning: passing argument 3 of ‘__memset_ichk’ makes integer from pointer without a cast
dbdimp.c:4441: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4441: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4445: warning: passing argument 3 of ‘mysql_dr_error’ makes pointer from integer without a cast
dbdimp.c:4445: error: too few arguments to function ‘mysql_dr_error’
dbdimp.c:4445: warning: statement with no effect
dbdimp.c:4447: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4447: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4447: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4447: warning: passing argument 3 of ‘__builtin___memcpy_chk’ makes integer from pointer without a cast
dbdimp.c:4447: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4447: warning: passing argument 3 of ‘__memcpy_ichk’ makes integer from pointer without a cast
dbdimp.c:4448: error: ‘imp_dbh_t’ has no member named ‘stats’
dbdimp.c:4448: error: request for member ‘auto_reconnects_failed’ in something not a structure or union
dbdimp.c:4448: error: invalid lvalue in increment
dbdimp.c:4448: warning: statement with no effect
dbdimp.c:4451: error: ‘imp_dbh_t’ has no member named ‘stats’
dbdimp.c:4451: error: request for member ‘auto_reconnects_ok’ in something not a structure or union
dbdimp.c:4451: error: invalid lvalue in increment
dbdimp.c:4451: warning: statement with no effect
dbdimp.c: In function ‘mysql_db_quote’:
dbdimp.c:4608: warning: implicit declaration of function ‘mysql_real_escape_string’
dbdimp.c:4608: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c: In function ‘mysql_db_last_insert_id’:
dbdimp.c:4623: error: ‘imp_dbh_t’ has no member named ‘mysql’
dbdimp.c:4623: warning: passing argument 2 of ‘Perl_sv_2mortal’ makes pointer from integer without a cast
make: *** [dbdimp.o] Error 1
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
The version of mysql that I have installed is 5.0.27

If anyone is familiar with Bugzilla or this type of error, any help would be greatly appreciated.

If someone is not familiar with Bugzilla or this type of error, I would appreciate any information in deciphering these error messages that might give me insight into how to research this kind of problem.

Thank you in advance.
 
Old 03-14-2007, 02:03 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
This is the beginning of all the problems.
Quote:
In file included from dbdimp.c:20:
dbdimp.h:22:49: error: mysql.h: No such file or directory
dbdimp.h:23:45: error: mysqld_error.h: No such file or directory
dbdimp.h:24:49: error: errmsg.h: No such file or directory
If you installed MySQL using yum (or a GUI interface) you didn't get the "development" files which include the headers. Look for a package called mysql-dev or mysql-devel and install that to get the three missing header files.
 
Old 03-14-2007, 04:09 PM   #3
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Arow
This is the beginning of all the problems.If you installed MySQL using yum (or a GUI interface) you didn't get the "development" files which include the headers. Look for a package called mysql-dev or mysql-devel and install that to get the three missing header files.
That seems to have addressed the errors regarding dbdimp, but after I install the mysql-dev rpms and then run the mysqlDBD install, I get this recurring message throughout the output:

Code:
Cannot connect: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
        Either your server is not up and running or you have no
        permissions for acessing the DSN DBI:mysql:test.
        This test requires a running server and write permissions.
        Please make sure your server is running and you have
        permissions, then retry.
I run the command /usr/bin/perl -MCPAN -e 'install "DBD::mysql"' as root and the MySQL server is running. However, I have it so I need to log into mysql with a password:

Code:
[root@BriansFC bugzilla]# mysql -u root -p 
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 5.0.22-log
Could this be the problem?



I can't put the entire file output on this forum, but here is a little more what I get if this will help:

Code:
dbdimp.c: In function ‘parse_params’:
dbdimp.c:498: warning: implicit declaration of function ‘parse_number’
dbdimp.c: In function ‘mysql_bind_ph’:
dbdimp.c:4231: warning: ‘buffer’ may be used uninitialized in this function
/usr/bin/perl -p -e "s/~DRIVER~/mysql/g" /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBI/Driver.xst > mysql.xsi
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap  mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 225
Warning: duplicate function definition 'rows' detected in mysql.xs, line 612
gcc -c  -I/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBI -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables   -DVERSION=\"4.003\" -DXS_VERSION=\"4.003\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE"   mysql.c
mysql.xs: In function ‘XS_DBD__mysql__db_do’:
mysql.xs:239: warning: unused variable ‘statement_ptr’
mysql.xs: In function ‘XS_DBD__mysql__st_more_results’:
mysql.xs:550: warning: implicit declaration of function ‘mysql_st_next_results’
mysql.xs:549: warning: unused variable ‘retval’
mysql.xs: In function ‘XS_DBD__mysql__GetInfo_dbd_mysql_get_info’:
mysql.xs:686: warning: implicit declaration of function ‘is_prefix’
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.so
/usr/bin/perl myld gcc  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib dbdimp.o mysql.o  -o blib/arch/auto/DBD/mysql/mysql.so    \
           -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto       \
          
chmod 755 blib/arch/auto/DBD/mysql/mysql.so
cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs
chmod 644 blib/arch/auto/DBD/mysql/mysql.bs
Manifying blib/man3/DBD::mysql.3pm
Manifying blib/man3/DBD::mysql::INSTALL.3pm
Manifying blib/man3/Bundle::DBD::mysql.3pm
  /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base.............ok                                                      
t/10dsnlist..........DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at t/10dsnlist.t line 45
t/10dsnlist..........NOK 1Cannot connect: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
        Either your server is not up and running or you have no
        permissions for acessing the DSN DBI:mysql:test.
        This test requires a running server and write permissions.
        Please make sure your server is running and you have
        permissions, then retry.
t/10dsnlist..........dubious                                                 
        Test returned status 10 (wstat 2560, 0xa00)
DIED. FAILED tests 1-9
        Failed 9/9 tests, 0.00% okay
t/20createdrop.......DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at t/20createdrop.t line 45
t/20createdrop.......NOK 1Cannot connect: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
        Either your server is not up and running or you have no
        permissions for acessing the DSN DBI:mysql:test.
        This test requires a running server and write permissions.
        Please make sure your server is running and you have
        permissions, then retry.
My mysql.sock file is in my /tmp directory:

[root@BriansFC tmp]# ls -l mysql.sock
srwxrwxrwx 1 mysql mysql 0 Mar 14 15:49 mysql.sock


Could that be the issue?

Thanks for responding to this. I submitted this problem to 3 other website forums and this is the only one where I got a response.

Last edited by tekmann33; 03-14-2007 at 04:43 PM.
 
Old 03-14-2007, 06:04 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
I'm afraid I don't use MySQL or Bugzilla (well, I've input stuff using Bugzilla) so I would only be able to guess (probably poorly at that).

Sorry.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bugzilla - MySQL - perl - DBD::mysql install problem amchargue Linux - Software 3 09-10-2008 12:01 AM
Bugzilla - MySQL - perl - DBD::mysql install problem Runningonair Linux - Software 8 10-12-2007 12:42 AM
Compile problems compiling module G00fy Linux - General 4 12-12-2004 02:01 PM
bugzilla and mysql problems Iamnew Linux - Software 0 08-07-2003 12:48 PM
Compile a dynamic MySQL module/load into PHP dleone Linux - General 2 01-31-2003 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration