From owner-freebsd-amd64@FreeBSD.ORG Wed May 18 11:20:10 2011 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A5681065672 for ; Wed, 18 May 2011 11:20:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 190DA8FC1A for ; Wed, 18 May 2011 11:20:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4IBK9Tt054228 for ; Wed, 18 May 2011 11:20:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4IBK9F7054227; Wed, 18 May 2011 11:20:09 GMT (envelope-from gnats) Resent-Date: Wed, 18 May 2011 11:20:09 GMT Resent-Message-Id: <201105181120.p4IBK9F7054227@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Hasan Alp iNAN Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7703A106566C for ; Wed, 18 May 2011 11:12:24 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 5C2EA8FC16 for ; Wed, 18 May 2011 11:12:24 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p4IBCOUq086397 for ; Wed, 18 May 2011 11:12:24 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p4IBCNns086396; Wed, 18 May 2011 11:12:23 GMT (envelope-from nobody) Message-Id: <201105181112.p4IBCNns086396@red.freebsd.org> Date: Wed, 18 May 2011 11:12:23 GMT From: Hasan Alp iNAN To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 X-Mailman-Approved-At: Wed, 18 May 2011 11:40:41 +0000 Cc: Subject: amd64/157148: p5-DBD-mysql compile error X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2011 11:20:10 -0000 >Number: 157148 >Category: amd64 >Synopsis: p5-DBD-mysql compile error >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed May 18 11:20:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Hasan Alp iNAN >Release: FreeBSD 8.2 RELEASE amd64 >Organization: >Environment: FreeBSD mail.seyhan.bel.tr 8.2-RELEASE-p1 FreeBSD 8.2-RELEASE-p1 #0: Tue May 10 10:14:46 EEST 2011 root@mail.seyhan.bel.tr:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When upgrading to 5.12 perl to 5.14 perl process fail at p5-DBD-mysql package. make reinstall ===> License ART10 GPLv1 accepted by the user ===> Found saved configuration for p5-DBD-mysql-4.018 ===> Extracting for p5-DBD-mysql-4.018 => SHA256 Checksum OK for DBD-mysql-4.018.tar.gz. ===> p5-DBD-mysql-4.018 depends on file: /usr/local/bin/perl5.14.0 - found ===> Patching for p5-DBD-mysql-4.018 ===> p5-DBD-mysql-4.018 depends on file: /usr/local/bin/perl5.14.0 - found ===> p5-DBD-mysql-4.018 depends on file: /usr/local/lib/perl5/site_perl/5.14.0/mach/DBI.pm - found ===> p5-DBD-mysql-4.018 depends on file: /usr/local/bin/perl5.14.0 - found ===> p5-DBD-mysql-4.018 depends on shared library: mysqlclient.15 - found ===> Configuring for p5-DBD-mysql-4.018 PLEASE NOTE: For 'make test' to run properly, you must ensure that the database user 'root' can connect to your MySQL server and has the proper privileges that these tests require such as 'drop table', 'create table', 'drop procedure', 'create procedure' as well as others. mysql> grant all privileges on test.* to 'root'@'localhost' identified by 's3kr1t'; You can also optionally set the user to run 'make test' with: perl Makefile.PL --testuser=username I will use the following settings for compiling and testing: cflags (mysql_config) = -I/usr/local/include/mysql -pipe -fno-strict-aliasing 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 (guessed ) = root To change these settings, see 'perl Makefile.PL --help' and 'perldoc INSTALL'. Argument "6.57_05" isn't numeric in numeric ge (>=) at ./Makefile.PL line 350, line 93. Checking if your kit is complete... Looks good Using DBI 1.616 (for perl 5.014000 on amd64-freebsd-thread-multi) installed in /usr/local/lib/perl5/site_perl/5.14.0/mach/auto/DBI/ Writing Makefile for DBD::mysql Writing MYMETA.yml ===> Building for p5-DBD-mysql-4.018 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.14.0/mach/auto/DBI -I/usr/local/include/mysql -pipe -fno-strict-aliasing -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -O2 -pipe -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -DVERSION=\"4.018\" -DXS_VERSION=\"4.018\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.14.0/mach/CORE" dbdimp.c dbdimp.c: In function 'mysql_db_FETCH_attrib': dbdimp.c:2447: error: 'sv_undef' undeclared (first use in this function) dbdimp.c:2447: error: (Each undeclared identifier is reported only once dbdimp.c:2447: error: for each function it appears in.) *** Error code 1 Stop in /usr/ports/databases/p5-DBD-mysql/work/DBD-mysql-4.018. *** Error code 1 Stop in /usr/ports/databases/p5-DBD-mysql. *** Error code 1 Stop in /usr/ports/databases/p5-DBD-mysql. *** Error code 1 Stop in /usr/ports/databases/p5-DBD-mysql. >How-To-Repeat: Just upgrade to Perl 5.14 >Fix: I found a solution on net. A similar problem cause a compile error on Gentoo. When p5-DBD-mysql package in the distfiles (4.18) update to 4.19.0; perl 5.14 will compile it succesfully. Here is the link. http://bugs.gentoo.org/show_bug.cgi?id=364491 Sorry. about my English. >Release-Note: >Audit-Trail: >Unformatted: