Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70424 - emerging fails while attempting to compile SQL headers
Summary: emerging fails while attempting to compile SQL headers
Status: RESOLVED DUPLICATE of bug 14178
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-07 23:42 UTC by Andrew D Kirch
Modified: 2005-07-17 13:06 UTC (History)
0 users

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 Andrew D Kirch 2004-11-07 23:42:09 UTC
Attempting to emerge qt 3.3.3-r1 fails while compileing qsql_mysql.cpp

Reproducible: Always
Steps to Reproduce:
1. emerge qt
...
3. emerge bombs out

Actual Results:  
make[3]: Entering directory
`/var/tmp/portage/qt-3.3.3-r1/work/qt-x11-free-3.3.3/plugins/src/sqldrivers/mysql'
g++ -c -pipe -I/usr/include/mysql -fno-exceptions -Wall -W -march=pentium4 -O3
-pipe -D_REENTRANT -fPIC  -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
-DQT_PLUGIN -DQT_SHARED
-I/var/tmp/portage/qt-3.3.3-r1/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -I.
-I/usr/include/freetype2 -I../../../../include -I/usr/X11R6/include
-I.moc/release-shared-mt/ -o .obj/main.o main.cpp
In file included from main.cpp:38:
../../../../src/sql/drivers/odbc/qsql_odbc.h:72:17: sql.h: No such file or directory
../../../../src/sql/drivers/odbc/qsql_odbc.h:78:22: sqlucode.h: No such file or
directory
../../../../src/sql/drivers/odbc/qsql_odbc.h:81:20: sqlext.h: No such file or
directory
In file included from main.cpp:38:
../../../../src/sql/drivers/odbc/qsql_odbc.h:94: error: `SQLHANDLE' does not
name a type
../../../../src/sql/drivers/odbc/qsql_odbc.h:121: error: expected `)' before "env"
../../../../src/sql/drivers/odbc/qsql_odbc.h:137: error: `SQLHANDLE' does not
name a type
../../../../src/sql/drivers/odbc/qsql_odbc.h:138: error: `SQLHANDLE' does not
name a type
make[3]: *** [.obj/main.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/qt-3.3.3-r1/work/qt-x11-free-3.3.3/plugins/src/sqldrivers/odbc'
make[2]: *** [sub-odbc] Error 2
make[2]: *** Waiting for unfinished jobs....
g++ -c -pipe -I/usr/include/mysql -fno-exceptions -Wall -W -march=pentium4 -O3
-pipe -D_REENTRANT -fPIC  -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
-DQT_PLUGIN -DQT_SHARED
-I/var/tmp/portage/qt-3.3.3-r1/work/qt-x11-free-3.3.3/mkspecs/linux-g++ -I.
-I/usr/include/freetype2 -I../../../../include -I/usr/X11R6/include
-I.moc/release-shared-mt/ -o .obj/qsql_mysql.o
../../../../src/sql/drivers/mysql/qsql_mysql.cpp
test -d ../../../sqldrivers/ || mkdir -p ../../../sqldrivers/
rm -f libqsqlmysql.so
g++ -fno-exceptions  -Wl,-rpath,/usr/qt/3/lib -shared
-Wl,-rpath,/var/tmp/portage/qt-3.3.3-r1/work/qt-x11-free-3.3.3/plugins/sqldrivers
-o libqsqlmysql.so .obj/main.o .obj/qsql_mysql.o   -L/usr/lib/mysql
-L/var/tmp/portage/qt-3.3.3-r1/work/qt-x11-free-3.3.3/lib -L/usr/X11R6/lib
-lmysqlclient -lqt-mt -lmng -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor
-lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread
mv -f libqsqlmysql.so ../../../sqldrivers/
make[3]: Leaving directory
`/var/tmp/portage/qt-3.3.3-r1/work/qt-x11-free-3.3.3/plugins/src/sqldrivers/mysql'
make[2]: Leaving directory
`/var/tmp/portage/qt-3.3.3-r1/work/qt-x11-free-3.3.3/plugins/src/sqldrivers'
make[1]: *** [sub-sqldrivers] Error 2
make[1]: Leaving directory
`/var/tmp/portage/qt-3.3.3-r1/work/qt-x11-free-3.3.3/plugins/src'
make: *** [sub-plugins] Error 2


Expected Results:  
one would expect an app as critical as QT to compile.

This bug is preventing me from testing software for a network IDS system as
php/modphp depends on qt.
Comment 1 Andrew D Kirch 2004-11-07 23:42:33 UTC
Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r3 i686)
=================================================================
System uname: 2.6.9-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 1800MHz
Gentoo Base System version 1.6.5
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.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="X acpi alsa apache2 apm arts avi ba-completion berkdb bitmap-fonts cdrom crypt cups db2 dba encode f77 foomaticdb gd gdbm gif gnome gpm gtk gtk2 hardened hardenedphp imlib ipv6 jpeg kde libg++ libgd libgda libwww lm_sensors lzo lzw lzw-tiff mad md5sum mikmod mmx motif mpeg mysql nagios-dns nagios-ntp nagios-ping nagios-s ncurses nls nntp odbc offensive oggvorbis opengl oss pam pdflib perl png posix python qt quicktime readline rrdtool sdl slang snmp snortsam spell sse sse2 ssl svga tcltk tcpd truetype usb x86 xml2 xmms xv zlib"

Comment 2 Andrew D Kirch 2004-11-08 19:06:47 UTC
I am closing this bug, it is an issue with emerge not adding correct dependancies depending on use flags (unixodbc).  I highly doubt that this issue effects many users.
Comment 3 Gregorio Guidi (RETIRED) gentoo-dev 2004-11-09 01:23:25 UTC
Unfortunately, it affects many users: see bug 14178.
Comment 4 Simone Gotti (RETIRED) gentoo-dev 2004-11-09 02:13:36 UTC
marking as a duplicate
Comment 5 Simone Gotti (RETIRED) gentoo-dev 2004-11-09 02:13:53 UTC

*** This bug has been marked as a duplicate of 14178 ***