Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97989 - mod_php-5.1.0_beta-r1 cannot find unixODBC headers
Summary: mod_php-5.1.0_beta-r1 cannot find unixODBC headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-05 03:38 UTC by Markus Tacker
Modified: 2005-07-12 22:25 UTC (History)
2 users (show)

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


Attachments
odbc patch for php5 sapi eclass (php5-sapi-r3.eclass-odbc.patch,705 bytes, patch)
2005-07-08 04:06 UTC, Richard Brown (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Tacker 2005-07-05 03:38:34 UTC
It thinks they are in /usr/local/include/sqlext.h
but unixODBC installs them in /usr/include/sqlext.h

# emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686)
=================================================================
System uname: 2.6.11-gentoo-r11 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 29 2005, 09:59:11)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distcc distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 alsa apache2 apm arts avi berkdb bitmap-fonts crypt ctype curl dba emboss encode foomaticdb fortran ftp gd gdbm gif gpm gtk2 imagemagick imlib ipv6 jpeg ldap libg++ libwww mad mikmod mime mmx motif mp3 mpm-worker mysql ncurses nls odbc oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl session soap sockets sqlite sse ssl tcpd threads tidy truetype-fonts type1-fonts vhosts wddx xml2 xmlrpc xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Ian Wilder 2005-07-05 14:13:12 UTC
same here

Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.10
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.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -ffast-math -funroll-all-loops -funit-at-a-time
-fpeel-loops -ftracer -funswitch-loops -pipe"
CHOST="x86_64-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/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O3 -ffast-math -funroll-all-loops -funit-at-a-time
-fpeel-loops -ftracer -funswitch-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/ian-custom"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 S3TC X X509 Xaw3d a52 aac acl acpi aim alsa apache2 artworkextra
audiofile authdaemond avi berkdb bitmap-fonts bmp bonobo bzip2 bzlib cairo cdda
cddb cdinstall cdio cdparanoia cdr cdrom cgi chroot crypt css csv cups curl
custom-cflags dba dbase dbus dga directfb dlloader dnd dvd dvdr dvdread eds
emacs encode esd evo evo2 exif faac faad fam fastcgi fb fbcon ffmpeg flac
font-server fortran freetds ftp gd gdbm gif gimp gimpprint glade glitz gmail
gnome gnutls gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml hal iconv
ieee1394 imagemagick imap imlib imlib2 innodb ipv6 ithreads java javascript
jikes joystick jp2 jpeg jpeg2k kde kerberos lcms ldap libcaca libgda libwww lzw
lzw-tiff mad maildir mbox mdb mikmod mime mng motif mozilla moznocompose
moznoirc moznomail mozsvg mp3 mpeg mpeg4 mplayer mpm-worker msn mssql music
mysql ncurses net nls nptl ntlm nvidia odbc ogg oggvorbis openal opengl oscar
oss pam pango pdf perl php png posix python qt quicktime rar readline real
rhythmbox rogue ruby samba sasl sdl session sounds speex spell sql ssl stream
svg svgz symlink tcltk tcpd theora threads tiff timidity transcode truetype
truetype-fonts type1-fonts unicode usb userlocales utf8 v4l v4l2 vhosts videos
vorbis wmf wxwindows xatrix xine xml2 xmms xpm xrandr xscreensaver xv xvid zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 2 Roel Brook 2005-07-05 14:55:11 UTC
re-emerging libiodbc / unixODBC does not fix it.

Medusa# equery files libiodbc | grep sqlext.h
/usr/include/iodbc/isqlext.h
/usr/include/iodbc/sqlext.h
Medusa# equery files unixODBC | grep sqlext.h
/usr/include/sqlext.h

Not sure which one it's actually looking for though.
Comment 3 Lars Tiefland 2005-07-07 07:44:00 UTC
Just create a symlink from /usr/include to /usr/local/include and that bug is 
gone. It looks for /usr/local/include/sqlext.h!
Comment 4 Lisa Seelye (RETIRED) gentoo-dev 2005-07-08 02:55:35 UTC
Striking here, too.

Tried hacking the ebuild my_conf as well as the .eclass to point it towards /
usr/include - no dice.
Comment 5 Richard Brown (RETIRED) gentoo-dev 2005-07-08 04:06:19 UTC
Created attachment 62904 [details, diff]
odbc patch for php5 sapi eclass

I think this php bug http://bugs.php.net/bug.php?id=33427 has been "fixed".

The eclass needs to be changed, so that line 261 now reads

 enable_extension_with	     "unixODBC"      "odbc"	     1 "/usr"

Then configure will find the headers.
configure help also reads the same for iodbc, so the patch will change that as
well, but I don't use iodbc and can't check that.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-07-12 13:20:26 UTC
(In reply to comment #5)
>  enable_extension_with	     "unixODBC"      "odbc"	     1 "/usr"

Yup, this works.
Comment 7 Sebastian Bergmann (RETIRED) gentoo-dev 2005-07-12 22:25:03 UTC
Applied the patch from comment #5.