Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7963 - DBD-mysql doesn't build
Summary: DBD-mysql doesn't build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Michael Cummings (RETIRED)
URL:
Whiteboard:
Keywords:
: 8109 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-15 12:20 UTC by Tom Collins
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Collins 2002-09-15 12:20:22 UTC
I'm on a gcc 3.2 (if it matters), and get this error when building the 
DBD-mysql module: 
 
server2 root # emerge DBD-mysql 
Calculating dependencies ...done! 
>>> emerge dev-perl/DBD-mysql-2.1004-r2 to / 
>>> md5 ;-) DBD-mysql-2.1004.tar.gz 
>>> Unpacking source... 
>>> Unpacking DBD-mysql-2.1004.tar.gz 
>>> Source unpacked. 
I will use the following settings for compiling and testing: 
 
  cflags        (mysql_config) = -I'/usr/include/mysql' 
  libs          (mysql_config) = -L/usr/lib/mysql -lmysqlclient -lz -lcrypt 
-lnsl -lm 
  nocatchstderr (default     ) = 0 
  testdb        (default     ) = test 
  testhost      (default     ) = 
  testpassword  (default     ) = 
  testuser      (default     ) = 
 
To change these settings, see 'perl Makefile.PL --help' and 
'perldoc INSTALL'. 
 
WARNING: EXE_FILES takes a array reference not a string/number. 
         Please inform the author. 
Checking if your kit is complete... 
Looks good 
Can't use string ("dbimon pmysql") as an ARRAY ref while "strict refs" in use 
at /usr/lib/perl5/5.6.1/ExtUtils/MM_Unix.pm line 1417. 
make: *** No targets specified and no makefile found.  Stop. 
 
!!! ERROR: The ebuild did not complete successfully. 
!!! Function perl-module_src_compile, Line 10, Exitcode 2 
!!! compilation failed 
 
A quick Google search found a thread with a simple fix for MakeMaker: 
 
http://archive.develooper.com/makemaker@perl.org/msg00326.html
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2002-09-19 16:19:47 UTC
Corrected ebuild and patch submitted. If it gets to your end and all looks good,
please either close this ticket or let me know. 

Michael
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2002-09-19 16:28:39 UTC
*** Bug 8109 has been marked as a duplicate of this bug. ***
Comment 3 Avi Schwartz 2002-09-19 21:29:09 UTC
I am also having a problem building version dev-perl/DBD-mysql-2.1013.  The
reason may be a missing file from the files directory.  the makemaker.patch file
is missing:

bash-2.05a# emerge dev-perl/DBD-mysql
Calculating dependencies ...done!
>>> emerge dev-perl/DBD-mysql-2.1013 to /
Version is: 5.6.1
>>> md5 ;-) DBD-mysql-2.1013.tar.gz
Version is: 5.6.1
>>> Unpacking source...
>>> Unpacking DBD-mysql-2.1013.tar.gz
/usr/sbin/ebuild.sh: /usr/portage/dev-perl/DBD-mysql/files/makemaker.patch: No
such file or directory
>>> Source unpacked.
I will use the following settings for compiling and testing:

  cflags        (mysql_config) = -I'/usr/include/mysql'
  libs          (mysql_config) = -L/usr/lib/mysql -lmysqlclient -lz -lcrypt
-lnsl -lm
  nocatchstderr (default     ) = 0
  ssl           (guessed     ) = 0
  testdb        (default     ) = test
  testhost      (default     ) =
  testpassword  (default     ) =
  testuser      (default     ) =

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

WARNING: EXE_FILES takes a array reference not a string/number.
         Please inform the author.
Checking if your kit is complete...
Looks good
Can't use string ("dbimon pmysql") as an ARRAY ref while "strict refs" in use at
/usr/lib/perl5/5.6.1/ExtUtils/MM_Unix.pm line 1417.
make: *** No targets specified and no makefile found.  Stop.
Comment 4 Tom Collins 2002-09-19 22:40:00 UTC
Still a no-go for moi.  Perhaps this is the problem:

>>> Unpacking source...
>>> Unpacking DBD-mysql-2.1013.tar.gz
/usr/sbin/ebuild.sh: /usr/portage/dev-perl/DBD-mysql/files/makemaker.patch: No
such file or directory
>>> Source unpacked.
Comment 5 Roman Majer 2002-09-20 01:30:32 UTC
the same bug on my system with DBD-mysql-2.1013  
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2002-09-20 03:53:42 UTC
It's always a good idea for me to actually include the patch in my commits. You
should have a patch file in your portage trees shortly, sorry about that.
Comment 7 Tom Collins 2002-09-20 23:51:34 UTC
Got the patch - works great.  Thanks!

Marking as fixed.