Bug 83225

Summary: Building problen in p5-DBD-mysql40-3.0001 .
Product: Ports & Packages Reporter: Joe Horn <joehorn>
Component: Individual Port(s)Assignee: skv <skv>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Joe Horn 2005-07-10 17:10:20 UTC
I am still using MySQL 4.0 on my box .
But the original p5-DBD-mysql seems only support MySQL 4.1 ( messages below show that!? )

  Port:   p5-DBD-mysql-3.0001
  Path:   /usr/ports/databases/p5-DBD-mysql
  Info:   MySQL driver for the Perl5 Database Interface (DBI)
  Maint:  skv@FreeBSD.org
  B-deps: mysql-client-4.1.12 p5-DBI-1.48 perl-5.8.7
  R-deps: mysql-client-4.1.12 p5-DBI-1.48 perl-5.8.7
  WWW:    http://search.cpan.org/dist/DBD-mysql/

So I should change and upgrade p5-DBD-mysql-2.9008 to 5-DBD-mysql40-3.0001 , right ?
But it still shows this error while building :
===>  Building for p5-DBD-mysql40-3.0001
...... ( some messages ignored )
cc -c  -I/usr/local/lib/perl5/site_perl/5.8.7/mach/auto/DBI/
-I/usr/local/include/mysql -O -pipe -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -O -pipe -O -pipe    -DVERSION=\"3.0001\"  -DXS_VERSION=\"3.0001\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.7/mach/CORE"   dbdimp.c
dbdimp.c: In function `mysql_db_FETCH_attrib':
dbdimp.c:2035: warning: cast from pointer to integer of different size
dbdimp.c: In function `mysql_st_fetch':
dbdimp.c:2775: error: `MYSQL_BIND' undeclared (first use in this function)
dbdimp.c:2775: error: (Each undeclared identifier is reported only once
dbdimp.c:2775: error: for each function it appears in.)
dbdimp.c: In function `mysql_st_FETCH_attrib':
dbdimp.c:3416: warning: cast from pointer to integer of different size

Because I have others machine running MySQL 4.1 , I found that the struct named MYSQL_BIND is not been declared in mysql.h if the MySQL version is 4.0 .

Maybe we need the old version of p5-DBD-mysql ?
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2005-07-10 18:11:31 UTC
Responsible Changed
From-To: freebsd-bugs->skv

Make this a ports PR and assign to maintainer.
Comment 2 skv freebsd_committer freebsd_triage 2005-07-11 08:58:20 UTC
State Changed
From-To: open->closed

Fixed. Please update ports tree and try again.