mysqlcc ./configure bugs

mysqlcc ./configure bugs

am 24.03.2003 06:58:52 von Daniel Macks

Two things I've encountered which compiling mysqlcc-0.8.10:

First, the configure script makes incorrect assumptions about how Qt is
installed. It says:

QMAKESPEC=$QTDIR/mkspecs/$host_os
echo "Creating Makefile with qmake"
QMAKESPEC=$QMAKESPEC QTDIR=$QTDIR $QTDIR/bin/qmake mysqlcc.pro

where QTDIR was either passed as --with-qt or by a search of some likely
pathnames. It appears from the QTDIR configure tests and from QMAKESPEC
and the qmake path here that you are expecting all of Qt to be installed
in its own hierarchy. My Qt is merged into my usual hierarchy (libs in
lib, includes in include/qt, makespecs as share/qt3/mkspecs). I can pass a
-I in CPPFLAGS to make the headers visible and I don't need to do anything
in order to find libqt., but there's no work-around for mkspecs and
bin/qmake not being direct subdirectories of QTDIR.

Allowing environment variables QTDIR and QMAKESPEC to take precedence
would resolve this (FWIW, the qmake docs instruct to set these).

Second, Changelog.txt says (from 0.8.8-beta):
MySQLCC now requires MySQL 4.0.3 or higher to compile...
That's a prety hidden note. The only hint that something is wrong is when
main.ccp fails to compile for an obscure (to someone not familiar with
MySQL's API) error about a missing my_getopt.h. How about having configure
check MYSQL_SERVER_VERSION in mysql_version.h?

dan

--
Daniel Macks
dmacks@sas.upenn.edu
dmacks@netspace.org
http://www.netspace.org/~dmacks


--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org