Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125245 - libdbi-drivers-0.8.1-r1: configure: error: Invalid MySQL directory - include files not found.
Summary: libdbi-drivers-0.8.1-r1: configure: error: Invalid MySQL directory - include ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-06 07:41 UTC by Martin Mokrejš
Modified: 2006-03-24 02:46 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 Martin Mokrejš 2006-03-06 07:41:28 UTC
checking mach-o/dyld.h usability... no
checking mach-o/dyld.h presence... no
checking for mach-o/dyld.h... no
checking for dlfcn.h... (cached) yes
checking for dlopen... no
checking for dlopen in -ldl... yes
checking for libdbi framework... yes: headers in /usr/include
checking for MySQL support... no
configure: error: Invalid MySQL directory - include files not found.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/libdbi-drivers-0.8.1-r1/work/libdbi-drivers-0.8.1/config.log

!!! ERROR: dev-db/libdbi-drivers-0.8.1-r1 failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile
  libdbi-drivers-0.8.1-r1.ebuild, line 42:   Called econf 'compile'

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


# emerge --info

Portage 2.1_pre5-r2 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-rc1 i686)
=================================================================
System uname: 2.6.16-rc1 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.12.0_pre15
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.19-r1, 2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mmmx -msse -msse2 -O2 -fomit-frame-pointer -mtune=pentium4 -march=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-mmmx -msse -msse2 -O2 -fomit-frame-pointer -mtune=pentium4 -march=pentium4 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.muni.cz/pub/linux/gentoo http://gentoo.mirror.icd.hu/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LINGUAS="cs cz en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d acpi apache2 apm arts ati avi berkdb bitmap-fonts bonobo ccache cdr crypt cscope cups curl dba dga directfb dvb dvd dvdr eds elibc_glibc emacs emacs-w3 emboss encode esd ethereal f77 fam fbcom flac foomaticdb fortran freetype2 fvwm fvwm2 gb gd gdbm ggi gif gphoto2 gpm gstreamer gtk gtk2 gtkhtml icc ifc imagemagick imlib innodb ipv6 ithreads java jpeg kernel_linux lcms leim libg++ libwww linguas_cs linguas_cz linguas_en mad mcal mesa mikmod mmx motif mozilla mp3 mpeg mule myisam mysql ncurses nls nptl ogg oggvorbis opengl oss pam pda pdflib perl plotutils png ppds pthread pthreads python qt quicktime readline samba scanner sdl slp spell sse sse2 ssl stroke tcltk tcpd tetex thread threads tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU utf8 video_cards_radeon vorbis wmf x86 xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS


# emerge unmerge mysql

*** Deprecated use of action 'unmerge', use '--unmerge' instead

 dev-db/mysql
    selected: 5.0.18-r30
   protected: none
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 

Exiting on signal 2
#
Comment 1 Martin Mokrejš 2006-03-06 07:42:39 UTC
The config.log file ends with:

configure:20127: checking for libdbi framework
configure:20158: result: yes: headers in /usr/include
configure:20195: checking for MySQL support
configure:20252: result: no
configure:20254: error: Invalid MySQL directory - include files not found.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-03-23 22:02:41 UTC
vivo: any comments on this?
Comment 3 Francesco R. (RETIRED) gentoo-dev 2006-03-24 02:13:59 UTC
The check in the configure file look into:
mysql_incdirs="/usr/include /usr/local/include /usr/include/mysql /usr/local/include/mysql /usr/local/mysql/include /usr/local/mysql/include/mysql /opt/mysql/include/mysql /sw/include/mysql"
for the "mysql/mysql.h" file, on a healty system it should find this file, an it do it on my test box.

Martin, already know you are an advanced user from your other bug posts, did you also tryed slotted mysql in the past ?
Has been noticed some remaining cruft left from the uninstall of the slotted mysql. Is it possible that a symlink has been left in /usr/include/mysql ? This could lead to to portage install badly also an unslotted mysql.

rgds,
Francesco
Comment 4 Martin Mokrejš 2006-03-24 02:22:21 UTC
Hi Francesco, yes I used to have mysql-5.0.18-r30 installed. I got rid of it few days ago as it turned out to be deprecated. I think the symlink problem was the case. I know it was a symlink to /usr/include/mysql-500. I have manually removed those softlinks, simlarly killed the /var/lib/mysql/ softlink and /etc/mysql. The 5.0.19 ebuild did not force force me to do so, but I just went to move the dirs back under simple names and edited the my.cnf accordingly.

I cannot reproduce the problem anymore since I have 5.0.19 installed in standard locations, so probably close this as invalid but probably make the ebuilds block each other and most importantly, die when those softlinks exist. Thanks. ;)
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-03-24 02:32:55 UTC
Thanks, closing invalid.
Comment 6 Martin Mokrejš 2006-03-24 02:46:17 UTC
Just to be clear on this question: "Is it possible that a symlink has been left in /usr/include/mysql?"

  I had /usr/include/mysql as a symlink to /usr/include/mysql-500 and similarly the lib, etc, and $datadir. So those symlinks I have killed in into their place moved the directories which had the -500 suffix.