Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162180 - dev-db/sqliteodbc-0.70 build fails
Summary: dev-db/sqliteodbc-0.70 build fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 162629 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-01-15 12:08 UTC by Helmut Jarausch
Modified: 2008-10-14 09:18 UTC (History)
4 users (show)

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


Attachments
Full build log of dev-db/sqliteodbc-0.70 (build.log,3.13 KB, text/plain)
2007-01-15 15:06 UTC, Helmut Jarausch
Details
Modified sqliteodbc-0.70.ebuild (sqliteodbc-0.70.ebuild,1.08 KB, text/plain)
2007-02-22 08:10 UTC, Steven Elling
Details
Dumped ebuild to 0.73. Include epatch for Makefile.in (sqliteodbc-0.73.ebuild,1.15 KB, text/plain)
2007-02-27 12:15 UTC, Clemens Fruhwirth
Details
Patch for 0.73's Makefile.in (sqliteodbc-0.73-Makefile.in.patch,1014 bytes, text/plain)
2007-02-27 12:16 UTC, Clemens Fruhwirth
Details
sqliteodbc-0.77.ebuild (sqliteodbc-0.77.ebuild,717 bytes, text/plain)
2008-05-17 17:08 UTC, Ingo Bormuth
Details
sqliteodbc-0.77.ebuild (sqliteodbc-0.77.ebuild,717 bytes, text/plain)
2008-05-17 17:17 UTC, Ingo Bormuth
Details
sqliteodbc-0.77.ERROR (oo.err,18.81 KB, text/plain)
2008-05-17 18:12 UTC, Ingo Bormuth
Details
sqliteodbc-0.77-doublefree.patch (sqliteodbc-0.77-doublefree.patch,700 bytes, text/plain)
2008-05-18 18:23 UTC, Ingo Bormuth
Details
sqliteodbc-0.77.ebuild (sqliteodbc-0.77.ebuild,767 bytes, text/plain)
2008-05-18 18:24 UTC, Ingo Bormuth
Details
dev-db/libiodbc-3.52.6 (/usr/iodbc/include) (sqliteodbc-0.77-iodbc.patch,545 bytes, patch)
2008-07-19 11:19 UTC, Nikolay Orlyuk
Details | Diff
sqliteodbc-0.79.ebuild (sqliteodbc-0.79.ebuild,820 bytes, text/plain)
2008-10-04 10:28 UTC, Ingo Bormuth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2007-01-15 12:08:35 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-15 12:45:00 UTC
Attach the full log here, please.
Comment 2 Helmut Jarausch 2007-01-15 15:06:53 UTC
Created attachment 107066 [details]
Full build log of dev-db/sqliteodbc-0.70
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-01-18 11:40:00 UTC
*** Bug 162629 has been marked as a duplicate of this bug. ***
Comment 4 Steven Elling 2007-02-13 07:33:48 UTC
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
Comment 5 Steven Elling 2007-02-13 07:37:16 UTC
Same problem with sqliteodbc-0.64-r1.
Comment 6 Steven Elling 2007-02-22 08:10:26 UTC
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.
Comment 7 Clemens Fruhwirth 2007-02-27 12:15:04 UTC
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.
Comment 8 Clemens Fruhwirth 2007-02-27 12:16:23 UTC
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.
Comment 9 Anthony Staines 2008-01-17 01:37:22 UTC
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
Comment 10 Xavian-Anderson Macpherson 2008-05-15 06:52:55 UTC
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
Comment 11 Ingo Bormuth 2008-05-17 17:08:47 UTC
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.
Comment 12 Ingo Bormuth 2008-05-17 17:17:18 UTC
Created attachment 153451 [details]
sqliteodbc-0.77.ebuild

Typo: 'Changelog' -> 'ChangeLog'. Sorry.
Comment 13 Ingo Bormuth 2008-05-17 18:12:03 UTC
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.
Comment 14 Ingo Bormuth 2008-05-18 18:23:32 UTC
Created attachment 153573 [details]
sqliteodbc-0.77-doublefree.patch

Patch from upstream (should be fixed in 0.78).
Comment 15 Ingo Bormuth 2008-05-18 18:24:37 UTC
Created attachment 153575 [details]
sqliteodbc-0.77.ebuild

Use sqliteodbc-0.77-doublefree.patch
Comment 16 Adeel 2008-05-31 10:39:09 UTC
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

Comment 17 Nikolay Orlyuk 2008-07-19 11:19:16 UTC
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
Comment 18 Ingo Bormuth 2008-10-04 10:28:07 UTC
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
Comment 19 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-10-14 03:16:15 UTC
(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.
Comment 20 Ingo Bormuth 2008-10-14 09:18:18 UTC
Darkside: Thank you (also for the hint), I will.