Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35570 - unixODBC-2.2.6 configure.in patch to repair 'use qt' configure failure (can't find X includes)
Summary: unixODBC-2.2.6 configure.in patch to repair 'use qt' configure failure (can't...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-10 20:40 UTC by William Blew
Modified: 2004-02-10 21:19 UTC (History)
0 users

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


Attachments
configure.in patch that resolves this defect's described issue (2.2.6-configure.in.patch,239 bytes, patch)
2003-12-10 20:42 UTC, William Blew
Details | Diff
an example unixODBC-2.2.6-r1.ebuild that patches configure.in (unixODBC-2.2.6-r1.ebuild,1.57 KB, text/plain)
2003-12-10 20:44 UTC, William Blew
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William Blew 2003-12-10 20:40:36 UTC
The local autoconf macros used by unixODBC 2.2.6 include QT configuration macros.

However, those QT macros are dependent on the AC_PATH_X autoconf macro (that locates the X include and library directories).

Without this configure.in macro, the --enable-gui (enabled by 'use qt') will fail to configure unixODBC-2.2.6 due to its failure to locate the X includes.

Reproducible: Always
Steps to Reproduce:
1. export use="qt"
2. emerge dev-db/unixODBC-2.2.6
Actual Results:  
...
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for X... configure: error: Can't find X includes. Please check your
installation and add the correct paths!
 
!!! ERROR: dev-db/unixODBC-2.2.6 failed.
!!! Function src_compile, Line 32, Exitcode 1
!!! (no error message)

Expected Results:  
...
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for X... libraries /usr/X11R6/lib, headers
checking for egrep... grep -E
...

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.23)
=================================================================
System uname: 2.4.23 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.4.3.10p1
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -fomit-frame-pointer -mfpmath=sse,387 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox autoaddcvs ccache keepwork"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo
http://gentoo.seren.com/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://ftp.easynet.nl/mirror/gentoo/ ftp://gentoo.noved.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 oss avi crypt cups encode foomaticdb gif gtk2 jpeg libg++ mad mpeg
ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm
berkdb slang readline arts tetex aalib bonobo svga tcltk java guile mysql X sdl
gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif
opengl mozilla cdr 3dnow acpi acpi4linux apache2 artswrappersuid cscope dvd
evms2 evo innodb maildir mmx moznocompose moznoirc moznomail mozsvg odbc php
samba skey sse type1 usb vim-with-x X509 xchattext xml -apm -mikmod"
Comment 1 William Blew 2003-12-10 20:42:42 UTC
Created attachment 22015 [details, diff]
configure.in patch that resolves this defect's described issue

I am using this patch via a local unixODBC-2.2.6-r1 ebuild to address this
issue on my primary workstation.
Comment 2 William Blew 2003-12-10 20:44:24 UTC
Created attachment 22016 [details]
an example unixODBC-2.2.6-r1.ebuild that patches configure.in

This is the ebuild I prepared that patches unixODBC-2.2.6 to address its
failure to configure X when its --enable-gui (via use 'qt') is configured.
Comment 3 Ryan Phillips (RETIRED) gentoo-dev 2004-02-10 21:19:22 UTC
committed