Bug Tracker item #2774657, was opened at 2009-04-19 19:44
Message generated for change (Comment added) made by valroff
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2774657&group_id=250683

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Open
Resolution: Accepted
Priority: 2
Private: No
Submitted By: Julien Valroff (valroff)
Assigned to: Ion-Mihai "IOnut" Tetcu (itetcu)
Summary: Cannot built against sqlite3 3.6 series

Initial Comment:
Hi,

I am not able to build dspam against the newer sqlite3 3.6.xx series,
while everything is OK with 3.5.95.

Here is the error message:
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking SQLite header version... 3.6.12
checking how to link SQLite libraries... failure
configure: error: Required version of libsqlite not found

I have no idea what I could do to try and provide more information for
this issue.

Cheers,
Julien

----------------------------------------------------------------------

>Comment By: Julien Valroff (valroff)
Date: 2009-06-06 08:44

Message:
Hi Stevan,

I confirm it works with both 3.6 and older 3.5 SQLite:

[...]
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking SQLite header version... 3.6.13
checking how to link SQLite libraries... -lsqlite3 
 [...]

[...]
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking SQLite header version... 3.5.9
checking how to link SQLite libraries... -lsqlite3 
[...]

3.6 was tested on amd64 Debian unstable
3.5 was tested on i386 Debian Lenny

Both using 3.6.8 Debian package sources.

Cheers,
Julien

----------------------------------------------------------------------

Comment By: Stevan Bajic (sbajic)
Date: 2009-06-01 22:15

Message:
Hallo Julien

I don't have SQLite 3.5.x here on my installation so I can not test. But I
do have SQLite 3.6.13 and testing with that version fails for me too. The
fix is to change the m4 macro and use "AC_LINK_IFELSE" instead of
"DS_LIBTOOL_RUN_IFELSE":
--- m4/sqlite3_drv.m4.org   2009-05-30 00:16:32.470345008 +0200
+++ m4/sqlite3_drv.m4  2009-06-01 22:05:47.912622542 +0200
@@ -210,7 +210,7 @@
             continue
         fi

-        DS_LIBTOOL_RUN_IFELSE([AC_LANG_PROGRAM([[
+        AC_LINK_IFELSE([AC_LANG_PROGRAM([[
             #include <stdio.h>
             #include <sqlite3.h>
             #include <stdlib.h>


Doing that works for me:
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking SQLite header version... 3.6.13
checking how to link SQLite libraries... -lsqlite3

Can you test if the patch works with 3.5.95 on your end as well? If so,
then I am going to change the m4 macro in GIT.

Stevan

----------------------------------------------------------------------

Comment By: Julien Valroff (valroff)
Date: 2009-05-03 12:51

Message:
Hi,

$ ls -l /usr/lib/libsqlite3.so
lrwxrwxrwx 1 root root 19 May  3 09:59 /usr/lib/libsqlite3.so ->
libsqlite3.so.0.8.6
ls -l /usr/lib/libsqlite3.so.0.8.6
-rw-r--r-- 1 root root 570704 Apr 19 08:06 /usr/lib/libsqlite3.so.0.8.6

I have tried adding LDFLAGS="-L /usr/lib/libsqlite3.so" with no success

What I do not understand is that it works well with the 3.5.9 version
available in Lenny and not with the 3.6.13 in Sid (the files are in the
same locations).

Cheers,
Julien

----------------------------------------------------------------------

Comment By: Ion-Mihai "IOnut" Tetcu (itetcu)
Date: 2009-05-03 11:08

Message:
ls -l /usr/lib/libsqlite3.so
ls -l /usr/lib/ibsqlite3-dev/libsqlite3.so
 ?

For /usr/local/lib/libsqlite3.so, I have:
 > make -V CONFIGURE_ENV
CFLAGS="-pipe -g "  CPPFLAGS="-I/usr/local/include -I/usr/local/include" 
LDFLAGS="-L/usr/local/lib"  LIBS="-L/usr/local/lib -pthread" SHELL=/bin/sh
CONFIG_SHELL=/bin/sh CPPFLAGS="-I/usr/local/include" LDFLAGS="
-L/usr/local/lib"   LIBTOOL=/usr/local/bin/libtool
LIBTOOLIZE=/usr/local/bin/libtoolize
LIBTOOL_M4=/usr/local/share/aclocal/libtool.m4
lt_cv_sys_max_cmd_len=262144

Supposing you use GNU's ld  I guess you need to pas it -L
/path/to/your/libsqlite3.so 

----------------------------------------------------------------------

Comment By: Julien Valroff (valroff)
Date: 2009-04-29 20:09

Message:
Hi,

I use Debian GNU/Linux unstable (amd64 and i386), up-to-date, and build
Debian packages in a clean chroot using cowbuilder.

libsqlite3.so is in /usr/lib (in the libsqlite3-dev which is well
installed).
CFLAGS is set to '-Wall -g -O2', both LDFLAGS and LIBS are empty

I have tried building 3.6.8 and current git

Cheers,
Julien

----------------------------------------------------------------------

Comment By: Ion-Mihai "IOnut" Tetcu (itetcu)
Date: 2009-04-29 12:00

Message:
Please provide the following info:
- OS name and version
- location of libsqlite3.so on your system
- values of the following env vars when you build dspam: CFLAGS, LDFLAGS,
LIBS
- what dspam version you are trying to build

It looks to me that it's missing a path in one of those vars above.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2774657&group_id=250683

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Dspam-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to