DBD-mysql-4.00.4-r1 fails to compile on Gentoo/FreeBSD 6.2 . I have attached a log of the emerge together with my emerge --info.
Created attachment 117067 [details] Output of emerge --info
Created attachment 117069 [details] Log of emerge DBD-mysql
Are mysql.h and mysqld_error.h in /usr/include/mysql/? What version of mysql are you using?
neptune ~ # ls /usr/include/mysql/mysql.h /usr/include/mysql/mysql.h neptune ~ # ls /usr/include/mysql/mysqld_error.h /usr/include/mysql/mysqld_error.h neptune ~ # emerge mysql -pv These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-db/mysql-5.0.38 USE="berkdb perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal (-selinux) -static" Yep, they are both there, and using 5.0.38
First, it looks like you're using freebsd's perl, not the one from your gentoo overlay. Can you confirm this with the output of perl -V (yes, the whole thing :). This will be relevant as perl may be getting confused on your compiler, include path, etc., since you're mixing a gentoo built gcc with a freebsd built perl. Second question, just for grins, is /usr/include/mysql a directory or a symlink? (sometimes apps don't follow symlinks - just trying to tie up loose ends on things). TBH, if my suspicion based on what you've pasted is true and you're using a freebsd perl, we may have problems being able to help since that's at least one factor that could contribute to this that we can't fix for you (ie, standard disclaimer :) ~mcummings
There you go. Perl compiled with there USE flags: These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-lang/perl-5.8.8-r2 USE="berkdb gdbm -build -debug -doc -ithreads -perlsuid" 0 kB [ebuild R ] sys-devel/libperl-5.8.8-r1 USE="berkdb gdbm -debug -ithreads" 0 kB
Created attachment 117311 [details] Output of perl -V
Seems to work now, not sure what caused it, but anyway, it installs now without any problems :-)