[sisyphus] unixODBC - MySQL driver

Andrey Brindeew =?iso-8859-1?q?linux_=CE=C1_abr=2Ex9=2Eru?=
Вс Мар 10 03:31:54 MSK 2002


Hi!

Решил тут на досуге попробовать подобраться к MySQL-базе из OpenOffice и с
удивлением обнаружил, что драйвер для MySQL просто не собирается!

Это так задумано или бага?

При попытке собрать самостоятельно ругается:

$ ./configure --prefix=/usr --with-unixODBC=/usr --with-mysql-libs=/usr/lib --with-mysql-includes=/usr/include/mysql/
loading cache ./config.cache
checking for a BSD compatible install... (cached) /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking whether ln -s works... (cached) yes
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
loading cache ./config.cache within ltconfig
host:  linux-gnu
checking for object suffix... o
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... yes
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking for compress in -lz... (cached) yes
checking for the mysql client libraries... /usr/lib
checking for mysql_real_query in -lmysqlclient... (cached) yes
checking for mysql include files in /usr/include/mysql/... yes
checking for sql.h... (cached) yes
checking for sqlext.h... (cached) yes
checking for odbcinst.h... (cached) yes
checking for SQLGetPrivateProfileString in -lodbcinst... (cached) yes
checking for SQLHENV... (cached) yes
checking for SQLHDBC... (cached) yes
checking for SQLHSTMT... (cached) yes
checking for SQLINTEGER... (cached) yes
checking for SQLUINTEGER... (cached) yes
checking for SQLSMALLINT... (cached) yes
checking for SQLUSMALLINT... (cached) yes
checking for SQLPOINTER... (cached) yes
checking for SQLHWND... (cached) yes
checking for SQLRETURN... (cached) yes
checking for SQLCHAR... (cached) yes
creating ./config.status
creating Makefile
creating samples/Makefile
creating myconf.h
myconf.h is unchanged
(2) [03:00:08][abr на abr.tool.ru : /usr/src/RPM/BUILD/unixODBC-2.2.0/Drivers/MySQL]
$ make
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/mysql/  -I/usr/include
 -g -O2 -c catalog.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/mysql/ -I/usr/include -g -O2 -Wp,-MD,.deps/catalog.pp -c  -fPIC -DPIC catalog.c -o catalog.lo
In file included from /usr/include/mysql/my_sys.h:605,
                 from myodbc3.h:54,
                 from catalog.c:46:
/usr/include/mysql/raid.h:41:20: my_dir.h: No such file or directory
make: *** [catalog.lo] Error 1

find /usr/include -name my_dir.h ничего не находит. Все RPM'ы, получающиеся
при пересборке unixODBC*.src.rpm & MySQL*.src.rpm, установлены.

$ rpm -q unixODBC MySQL-server
unixODBC-2.2.0-alt2
MySQL-server-3.23.49-alt2

-- 
WBR, Andrey Brindeew.
"No one person can understand Perl culture completely"
(C) Larry Wall.
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 189 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url     : <http://lists.altlinux.org/pipermail/sisyphus/attachments/20020310/b217000a/attachment-0012.bin>


Подробная информация о списке рассылки Sisyphus