From nobody@FreeBSD.org  Sat Feb 16 16:03:16 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 673EA16A41B
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 16 Feb 2008 16:03:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 553B013C447
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 16 Feb 2008 16:03:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1GG0qk2026713
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 16 Feb 2008 16:00:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m1GG0qnf026712;
	Sat, 16 Feb 2008 16:00:52 GMT
	(envelope-from nobody)
Message-Id: <200802161600.m1GG0qnf026712@www.freebsd.org>
Date: Sat, 16 Feb 2008 16:00:52 GMT
From: Chris Calvey <chris@securityforensics.co.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: p5-DBD-mysql51 fails to build
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         120735
>Category:       ports
>Synopsis:       databases/p5-DBD-mysql51 fails to build
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    skv
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 16 16:10:00 UTC 2008
>Closed-Date:    Tue Feb 19 20:59:02 UTC 2008
>Last-Modified:  Tue Feb 19 20:59:02 UTC 2008
>Originator:     Chris Calvey
>Release:        6.2
>Organization:
Digital Investigations
>Environment:
FreeBSD enigmathica.localdomain 6.2-RELEASE-p11 FreeBSD 6.2-RELEASE-p11 #0: Thu Feb 14 14:04:46 GMT 2008     root@enigmathica.localdomain:/usr/obj/usr/src/sys/ENIGMATHICA  i386
>Description:
As title. Port fails to build. Please see attached file of build output.

>How-To-Repeat:
make

>Fix:


Patch attached with submission follows:

Script started on Sat Feb 16 15:58:17 2008
===>  Extracting for p5-DBD-mysql51-4.006
=> MD5 Checksum OK for DBD-mysql-4.006.tar.gz.
=> SHA256 Checksum OK for DBD-mysql-4.006.tar.gz.
===>   p5-DBD-mysql51-4.006 depends on file: /usr/local/bin/perl5.8.8 - found
===>  Patching for p5-DBD-mysql51-4.006
===>   p5-DBD-mysql51-4.006 depends on file: /usr/local/bin/perl5.8.8 - found
===>   p5-DBD-mysql51-4.006 depends on file: /usr/local/lib/perl5/site_perl/5.8.8/mach/DBI.pm - found
===>   p5-DBD-mysql51-4.006 depends on file: /usr/local/bin/perl5.8.8 - found
===>   p5-DBD-mysql51-4.006 depends on shared library: mysqlclient.16 - found
===>  Configuring for p5-DBD-mysql51-4.006
I will use the following settings for compiling and testing:

  cflags        (mysql_config) = -I/usr/local/include/mysql  -fno-strict-aliasing -pipe
  embedded      (mysql_config) = 
  libs          (mysql_config) = -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm
  mysql_config  (guessed     ) = mysql_config
  nocatchstderr (default     ) = 0
  nofoundrows   (default     ) = 0
  ssl           (guessed     ) = 0
  testdb        (default     ) = test
  testhost      (default     ) = 
  testpassword  (default     ) = 
  testsocket    (default     ) = 
  testuser      (default     ) = 

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Checking if your kit is complete...
Looks good
Using DBI 1.601 (for perl 5.008008 on i386-freebsd-64int) installed in /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/DBI/
Writing Makefile for DBD::mysql
===>  Building for p5-DBD-mysql51-4.006
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
cc -c  -I/usr/local/lib/perl5/site_perl/5.8.8/mach/auto/DBI -I/usr/local/include/mysql  -fno-strict-aliasing -pipe -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -O2 -fno-strict-aliasing -pipe -O2 -fno-strict-aliasing -pipe    -DVERSION=\"4.006\"  -DXS_VERSION=\"4.006\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.8/mach/CORE"   dbdimp.c
dbdimp.c: In function `mysql_db_FETCH_attrib':
dbdimp.c:2269: warning: cast from pointer to integer of different size
dbdimp.c: In function `mysql_st_next_results':
dbdimp.c:2763: error: structure has no member named `last_errno'
dbdimp.c: In function `mysql_st_fetch':
dbdimp.c:3365: error: structure has no member named `last_errno'
dbdimp.c: In function `mysql_st_FETCH_attrib':
dbdimp.c:4073: warning: cast from pointer to integer of different size
*** Error code 1

Stop in /usr/ports/databases/p5-DBD-mysql51/work/DBD-mysql-4.006.
*** Error code 1

Stop in /usr/ports/databases/p5-DBD-mysql51.

Script done on Sat Feb 16 15:58:27 2008


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->skv 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Feb 16 21:16:12 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120735 
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Tue Feb 19 20:58:47 UTC 2008 
State-Changed-Why:  
Believed to be fixed by ale's commit 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120735 
>Unformatted:
