USE=sqlite3 emerge -av dev-db/sqliteodbc fails. Looking at /var/tmp/portage/dev-db/sqliteodbc-0.70/temp/build.log, there is configure: error: SQLite directory no does not exist eix dev-db/sqlite shows that there is version 3.3.10 installed and there is a /usr/lib/sqlite3 directory It's strange that there is configure .... --without-sqlite at the beginning of build.log emerge --info Portage 2.1.2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r4 i686) ================================================================= System uname: 2.6.18-gentoo-r4 i686 Intel(R) Pentium(R) III CPU family 1266MHz Gentoo Base System version 1.12.6 Timestamp of tree: Mon, 15 Jan 2007 07:20:01 +0000 ccache version 2.4 [disabled] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r1, 2.5-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.18 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo " MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.informatik.RWTH-Aachen.de/gentoo-portage" USE="X berkdb bitmap-fonts cdr cli cracklib crypt cups dlloader doc dri dvd fortran gcj gdbm gnome gpm gtk gtk2 iconv ipv6 isdnlog jpeg kde libg++ ncurses nls nptl nptlonly opengl pam pcre pdf perl png ppds pppd python qt readline reflection session spl ssl svg tcl tcpd tetex tiff tk truetype-fonts type1-fonts udev unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" USERLAND="GNU" VIDEO_CARDS="nv" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always
Attach the full log here, please.
Created attachment 107066 [details] Full build log of dev-db/sqliteodbc-0.70
*** Bug 162629 has been marked as a duplicate of this bug. ***
I have the same problem. $> sudo emerge -1b sqliteodbc ... "configure: error: SQLite directory no does not exist" ... $> emerge -pv sqliteodbc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] dev-db/sqliteodbc-0.70 USE="sqlite3 -sqlite" 0 kB
Same problem with sqliteodbc-0.64-r1.
Created attachment 110961 [details] Modified sqliteodbc-0.70.ebuild I've modified the sqliteodbc-0.70 ebuild so it will compile with sqlite3. The ebuild was also modified for sqlite but I have not tested it.
Created attachment 111402 [details] Dumped ebuild to 0.73. Include epatch for Makefile.in I like to see this ebuild to go into portage. Reason: More recent version, not dumping libs in the wrong directory, the 0.70 ebuild creates /usr/libsqliteodbc.so.
Created attachment 111403 [details] Patch for 0.73's Makefile.in Patch to create /usr/lib64 in Makefile and to fix some return code errors by turning test -n && into a regular if.
Hi, I tried all this, and I do appreciate your work, but sqliteodbc still failed with the ... "configure: error: SQLite directory no does not exist" ... message. What worked for me, and I have no idea why, is to add both the sqlite and sqlite3 USE flags for the package. Then sqlite was pulled in (I already had sqlite3, and away it compiled... Anthony
I was going to post a report, but see there's no need to. I am concerned however to see there's no maintainer for this package. Shingoshi
Created attachment 153449 [details] sqliteodbc-0.77.ebuild Hi everybody, I stripped down the ebuild a bit. On my box version 0.77 installs into /usr/lib without the need for a patch.
Created attachment 153451 [details] sqliteodbc-0.77.ebuild Typo: 'Changelog' -> 'ChangeLog'. Sorry.
Created attachment 153455 [details] sqliteodbc-0.77.ERROR Warning: Sqliteodbc version 0.76 and 0.77 crash from within openoffice-2.4 Version 0.75 (installed using the ebuild I just posted) works fine. It seems to be a corruption in SQLPrimaryKeys which has changed from 0.75 to 0.76. Will post a report upstream.
Created attachment 153573 [details] sqliteodbc-0.77-doublefree.patch Patch from upstream (should be fixed in 0.78).
Created attachment 153575 [details] sqliteodbc-0.77.ebuild Use sqliteodbc-0.77-doublefree.patch
I can't seem to get any versions (0.70-0.77) to compile in a uclibc environment. Also, when using the libiodbc package, the headers are installed in /usr/include/iodbc/* rather than /usr/include/, so the build fails. ---build log for 0.77--- >>> Emerging (1 of 1) dev-db/sqliteodbc-0.77 to / * sqliteodbc-0.77.tar.gz SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking sqliteodbc-0.77.tar.gz ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking sqliteodbc-0.77.tar.gz to /var/tmp/portage/dev-db/sqliteodbc-0.77/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/dev-db/sqliteodbc-0.77/work/sqliteodbc-0.77 ... * Applying sqliteodbc-0.77-doublefree.patch ... [ ok ] * econf: updating sqliteodbc-0.77/config.guess with /usr/share/gnuconfig/config.guess * econf: updating sqliteodbc-0.77/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i386-gentoo-linux-uclibc --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-static --build=i386-gentoo-linux-uclibc creating cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking how to run the C preprocessor... cc -E checking host system type... i386-gentoo-linux-uclibc checking build system type... i386-gentoo-linux-uclibc checking for gcc... gcc checking whether the C compiler (gcc -Os -mtune=pentium4m -pipe -fomit-frame-pointer -Wl,-O1) works... yes checking whether the C compiler (gcc -Os -mtune=pentium4m -pipe -fomit-frame-pointer -Wl,-O1) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for ld used by GCC... /usr/i386-gentoo-linux-uclibc/bin/ld checking if the linker (/usr/i386-gentoo-linux-uclibc/bin/ld) is GNU ld... yes checking for /usr/i386-gentoo-linux-uclibc/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependant libraries... unknown checking for object suffix... o checking for executable suffix... no checking command to parse /usr/bin/nm -B output... ok checking for dlfcn.h... yes checking for ranlib... ranlib checking for strip... strip checking for objdir... .libs checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static 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 whether the linker (/usr/i386-gentoo-linux-uclibc/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... no checking if libtool supports shared libraries... no checking whether -lc should be explicitly linked in... no creating libtool checking for a BSD compatible install... /usr/bin/install -c checking for SQLite header and library... no configure: warning: SQLite header files and/or library not found checking for sqlite_libversion in -lsqlite... no checking for sqlite_compile in -lsqlite... no checking for sqlite_encode_binary in -lsqlite... no checking for sqliteAtoF in -lsqlite... no checking for sqlite_mprintf in -lsqlite... no checking for sqlite_trace in -lsqlite... no configure: warning: SQLite library too old checking for SQLite3 header and library... yes checking for sqlite3_load_extension in -lsqlite3... no checking for sqlite3_load_extension in -lsqlite3... no checking for sqlite3_column_table_name in -lsqlite3... no checking for sqlite3_overload_function in -lsqlite3... yes checking for sqlite3_prepare_v2 in -lsqlite3... yes checking for sqlite3_clear_bindings in -lsqlite3... yes checking for sqlite3_create_module_v2 in -lsqlite3... yes checking for sqlite3_vfs_register in -lsqlite3... yes checking for ODBC headers and libraries... yes checking for SQLLEN availability... yes checking for SQLULEN availability... yes checking for SQLROWCOUNT availability... yes checking for SQLSETPOSIROW availability... yes checking for SQLROWOFFSET availability... yes checking for SQLROWSETSIZE availability... yes checking for SQLColAttribute signature has SQLLEN... yes checking for SQLBIGINT availability... yes checking for ptrdiff_t availability... yes checking for dlopen in -ldl... yes checking for SQLGetPrivateProfileString via dlopen... yes checking va_list usage... using sqlite_exec_vprintf/sqlite_vmprintf checking for usleep... yes checking for localeconv... yes checking for localtime_r... yes checking for gmtime_r... yes updating cache ./config.cache creating ./config.status creating Makefile creating sqliteodbc.spec ./libtool --mode=compile gcc -Os -mtune=pentium4m -pipe -fomit-frame-pointer -DDRIVER_VER_INFO=\"0.77\" -c \ -I/usr/include -DHAVE_IODBC=1 -I/usr/iodbc/include -DHAVE_SQLLEN=1 -DHAVE_SQLULEN=1 -DHAVE_SQLROWCOUNT=1 -DHAVE_SQLSETPOSIROW=1 -DHAVE_SQLROWOFFSET=1 -DHAVE_SQLROWSETSIZE=1 -DCOLATTRIBUTE_LAST_ARG_TYPE=SQLLEN_PTR -DHAVE_LONG_LONG=1 -DPTRDIFF_T=ptrdiff_t -DUSE_DLOPEN_FOR_GPPS -DHAVE_USLEEP=1 -DHAVE_LOCALECONV=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DWITHOUT_WINTERFACE=1 \ -DHAVE_SQLITE3COLUMNTABLENAME=0 -DHAVE_SQLITE3LOADEXTENSION=0 -DHAVE_SQLITE3OVERLOADFUNCTION=1 -DHAVE_SQLITE3PREPAREV2=1 -DHAVE_SQLITE3CLEARBINDINGS=1 -DHAVE_SQLITE3CREATEMODULEV2=1 -DHAVE_SQLITE3VFS=1 sqlite3odbc.c gcc -Os -mtune=pentium4m -pipe -fomit-frame-pointer -DDRIVER_VER_INFO=\"0.77\" -c -I/usr/include -DHAVE_IODBC=1 -I/usr/iodbc/include -DHAVE_SQLLEN=1 -DHAVE_SQLULEN=1 -DHAVE_SQLROWCOUNT=1 -DHAVE_SQLSETPOSIROW=1 -DHAVE_SQLROWOFFSET=1 -DHAVE_SQLROWSETSIZE=1 -DCOLATTRIBUTE_LAST_ARG_TYPE=SQLLEN_PTR -DHAVE_LONG_LONG=1 -DPTRDIFF_T=ptrdiff_t -DUSE_DLOPEN_FOR_GPPS -DHAVE_USLEEP=1 -DHAVE_LOCALECONV=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DWITHOUT_WINTERFACE=1 -DHAVE_SQLITE3COLUMNTABLENAME=0 -DHAVE_SQLITE3LOADEXTENSION=0 -DHAVE_SQLITE3OVERLOADFUNCTION=1 -DHAVE_SQLITE3PREPAREV2=1 -DHAVE_SQLITE3CLEARBINDINGS=1 -DHAVE_SQLITE3CREATEMODULEV2=1 -DHAVE_SQLITE3VFS=1 sqlite3odbc.c -fPIC -DPIC -o sqlite3odbc.lo ./libtool --mode=link gcc -Os -mtune=pentium4m -pipe -fomit-frame-pointer -DDRIVER_VER_INFO=\"0.77\" -o libsqlite3odbc.la \ sqlite3odbc.lo -rpath /usr/lib /usr/lib/libsqlite3.la \ -ldl -release 0.77 mkdir .libs rm -fr .libs/libsqlite3odbc.la .libs/libsqlite3odbc.* .libs/libsqlite3odbc-0.77.* *** Warning: inter-library dependencies are not known to be supported. *** All declared inter-library dependencies are being dropped. *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it. (cd . && ln -s sqlite3odbc.lo sqlite3odbc.o) gcc -shared sqlite3odbc.lo -Wl,-soname -Wl, -o .libs/ /usr/lib/gcc/i386-gentoo-linux-uclibc/4.1.2/../../../../i386-gentoo-linux-uclibc/bin/ld: cannot open output file .libs/: Is a directory collect2: ld returned 1 exit status make: *** [libsqlite3odbc.la] Error 1
Created attachment 160822 [details, diff] dev-db/libiodbc-3.52.6 (/usr/iodbc/include) I've problem with dev-db/libiodbc-3.52.6 and sqliteodbc-0.77 (and 0.70 also) when it can't find include file because looking it in /usr/iodbc/include instead of /usr/include/iodbc. After looking into configure.in I've found that it checks right place "$i/include/iodbc/iodbcinst.h" but populates ODBC_FLAGS with -I$i/iodbc/include this patch requires eautoconf applying in ebuild
Created attachment 167155 [details] sqliteodbc-0.79.ebuild Modified ebuild for version 0.79: - Added iodbc patch from comment #17 and reported upstream. - Removed doublefree patch from #14 (went upstream). Btw: I keep the ebuild up to date in my overlay at http://repo.or.cz/w/gentoo-overlay-ibormuth.git
(In reply to comment #18) > Created an attachment (id=167155) [edit] > sqliteodbc-0.79.ebuild > > Modified ebuild for version 0.79: > > - Added iodbc patch from comment #17 and reported upstream. > - Removed doublefree patch from #14 (went upstream). > > Btw: I keep the ebuild up to date in my overlay at > http://repo.or.cz/w/gentoo-overlay-ibormuth.git > Committed for you and removed old, broken versions. Feel free to CC me on future version bumps (darkside@gentoo.org). one thing: econf dies by itself and doesn't need "|| die" Cheers.
Darkside: Thank you (also for the hint), I will.