Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35691 - unixODBC doesn't compile
Summary: unixODBC doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High blocker
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-12 17:11 UTC by Alexey Parshin
Modified: 2006-02-04 06:05 UTC (History)
2 users (show)

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


Attachments
Full config.log (config.log,68.66 KB, application/octet-stream)
2003-12-16 07:28 UTC, Alexey Parshin
Details
emerge unixODBC 2>&1 | tee emerge.log (emerge.log,1.86 MB, text/plain)
2003-12-19 03:51 UTC, Michael Postmann
Details
New ebuild (unixODBC-2.2.6.ebuild,1.48 KB, text/plain)
2003-12-19 05:33 UTC, Olivier Castan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Parshin 2003-12-12 17:11:29 UTC
checking for stpcpy... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for gettext in libc... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
sed: can't read ./intl/po2tbl.sed.in: No such file or directory
checking for ODBC files... configure: error: ODBC backend not found

!!! ERROR: dev-db/unixODBC-2.2.6 failed.
!!! Function src_compile, Line 42, Exitcode 1
!!! (no error message)

alexhome root # emerge info       
Portage 2.0.49-r18 (default-sparc64-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.23-sparc-r1)
=================================================================
System uname: 2.4.23-sparc-r1 sparc64 sun4u
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="sparc ~sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=ultrasparc -O3 -pipe"
CHOST="sparc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=ultrasparc -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="sparc X amd arts autofs avantgo avi berkdb bonobo cdr clamav crypt cups directfb dvd dvdr encode esd evo fax fbcon fbdev ffmpeg fftw flac foomaticdb freetype fs gd gdbm gif gnome gphoto2 gpm gtk gtk2 guile imap imlib informix java javascript jpeg kde libgda libwww mad mikmod motif mozcalendar mozilla mpeg msn mysql ncurses nls oggvorbis opengl oss pam pda pdflib perl png ppds python qt quicktime readline rplay samba scanner sdk sdl slang spell ssl tcltk tcpd tiff truetype type1 usb wmf xine xinerama xml2 xmms xv zlib"
Comment 1 Josh Grebe (RETIRED) gentoo-dev 2003-12-15 13:36:02 UTC
Could you post the first 10 or so lines of 
/var/tmp/portage/unixODBC-2.2.6/work/unixODBC-2.2.6/config.log ? Mostly for the version of autoconf and the configure line. I am able to emerge this app fine on sparc with your USE variable.
Comment 2 Alexey Parshin 2003-12-15 14:24:21 UTC
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
 
It was created by configure, which was
generated by GNU Autoconf 2.57.  Invocation command line was
 
  $ ./configure --host=sparc-unknown-linux-gnu --prefix=/usr --sysconfdir=/etc/unixODBC --enable-gui=yes
 
## --------- ##
## Platform. ##
## --------- ##
 
hostname = alexhome
uname -m = sparc64
uname -r = 2.4.23-sparc-r1
uname -s = Linux
uname -v = #1 SMP Mon Dec 8 01:29:09 Local time zone must be set--see zic m
 
/usr/bin/uname -p = sun4u
/bin/uname -X     = unknown
Comment 3 Josh Grebe (RETIRED) gentoo-dev 2003-12-15 23:12:46 UTC
That looks fine to me, can you post a full log of configure? Your configure log consists of lines mine does not have.
Comment 4 Alexey Parshin 2003-12-16 07:28:55 UTC
Created attachment 22298 [details]
Full config.log

Attached is the full config.log
Comment 5 Alexey Parshin 2003-12-16 20:41:16 UTC
Just scanned Gentoo forums, and found the ugly workaround.
First, emerge unixODBC-2.08.
Second, update it to the 2.2.6.
It worked for me, however I'd perfer to see it relly fixed. The first step also installs qt 2.x which isn't required for anything elese in my setup.
Comment 6 Josh Grebe (RETIRED) gentoo-dev 2003-12-18 15:07:18 UTC
Could the issue be that qt is an unstated dependancy?
Comment 7 Josh Grebe (RETIRED) gentoo-dev 2003-12-18 16:12:30 UTC
Nope, I was able to compile fine with -qt -gnome and no qt or gtk installed
Comment 8 Mathieu MILLET 2003-12-18 22:00:22 UTC
Same bug on Alpha
Comment 9 Michael Postmann 2003-12-19 03:47:35 UTC
I have the same problem.
Additionally I too think that this is in some way related to the qt thing

dagobert boot # emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.21-144-athlon)
=================================================================
System uname: 2.4.21-144-athlon i686 AMD Athlon(tm)
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -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/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/afs/C /etc/afs/afsws /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://mirror.pudas.net/gentoo http://212.219.247.15/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 berkdb 3dnow aalib acl acpi afs adns alsa apache2 apm arts avi cdr crypt cups curl dga directfb doc dvd esd encode evo fbcon firebird flash foomaticdb freetds gb gd gdbm ggi gif gnome gpm gstreamer gtk gtk2 gtkhtml imap imlib informix ipv6 java joystick jpeg kde kerberos ldap libg++ libgda libwww lirc mad mbox mikmod mmx motif mozilla mpeg mysql nas ncurses nls oci8 odbc oggvorbis opengl oss pam ppds pdflib perl png postgres python qt quicktime readline ruby samba sasl scanner sdl slang slp snmp socks5 spell sse ssl sqlite svga tcltk tcpd tetex tiff truetype unicode usb videos wmf wxwindows X xinerama xosd xml xml2 xmms xv zlib"
Comment 10 Michael Postmann 2003-12-19 03:51:44 UTC
Created attachment 22431 [details]
emerge unixODBC 2>&1 | tee emerge.log
Comment 11 Olivier Castan 2003-12-19 05:33:29 UTC
Created attachment 22433 [details]
New ebuild

Same bug on PPC
See bug #35018 the failure happens when configuring gODBCConfig (triggered with
'gnome' USE variable) which looks for already installed unixODBC libraries.
With a fresh build that's not the case, and if it's an update it will be
configured with previous headers.
I've modified the ebuild to make the compilation succeed and gODBCConfig seems
to run correctly.
Comment 12 Michael Postmann 2003-12-19 08:00:18 UTC
The new ebuild compiles correctly with
USE="-qt" emerge unixODBC-2.2.6-r1.ebuild

I'm currenty compiling
USE="-odbc" emerge qt

And if that works I'll compile
emerge unixODBC
emerge qt

Stay tuned!

mfg
Nomike aka Michael Postmann

PS: And don't forget to enable ccache! :)
Comment 13 Michael Postmann 2003-12-19 09:40:17 UTC
first two emerges ran perfectly..
unixODB for the second time too.

Now I'm just waiting for qt to complete for the 2nd time.

But as far as I'm now I think the manual solution is the sequence in my previous post.

So the thing is to find a way of reflecting these in the ebuilds...

But it would be good to chek if the same procedure runs with the unixODBC ebuild currently in portage and to check if the new unixODBC runs correctly without USE="-qt" at the first compile...
Comment 14 Michael Postmann 2003-12-19 10:40:07 UTC
worked as expected!

So this is the path to the solution, but I'm not familiar enough with ebuilds and thus I don't know what the exact solution is (if there is any)...
Comment 15 Ryan Phillips (RETIRED) gentoo-dev 2003-12-19 14:29:35 UTC
Committed Olivier's fixed ebuild.