Details Ticket 3654


Comment | Reply | Take | Open


Serial Number 3654
Subject sqlite driver doesn't built in Mac OS X
Area grass6
Queue grass
Requestors lorenzo.moretti@bologna.enea.it
Owner none
Status resolved
Last User Contact Wed Oct 19 14:57:41 2005 (3 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sun Oct 23 03:17:26 2005 (3 yr ago)
Created Mon Sep 19 17:02:32 2005 (3 yr ago)

Transaction History Ticket 3654


Mon, Sep 19 2005 17:02:32    Request created by guest  
Subject: sqlite driver doesn't built in Mac OS X

Platform: Mac OSX
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: grass_61_cvs_050917

sqlite driver is a great add-on for Grass. I have not problem in configure: GRASS
see my sqlite 3 
installation. I have a problem when Grass build the driver. It doesn't see -lsqlite3.
It's strange

This is the result from make:
....
select.c: In function `db__driver_open_select_cursor':
select.c:44: warning: passing arg 5 of `sqlite3_prepare' from incompatible pointer
type
select.c:54: warning: passing arg 1 of `append_error' discards qualifiers from
pointer target type
gcc -L/usr/X11R6/lib -L/usr/local/grasslib/lib -L/src/grass-6.1.cvs_src_snapshot_2005_09_17/
dist.powerpc-apple-darwin7.9.0/lib  -L/usr/local/pgsql/lib  -o /src/
grass-6.1.cvs_src_snapshot_2005_09_17/dist.powerpc-apple-darwin7.9.0/driver/db/sqlite
OBJ.powerpc-apple-darwin7.9.0/create_table.o OBJ.powerpc-apple-darwin7.9.0/cursor.o
OBJ.powerpc-apple-darwin7.9.0/db.o OBJ.powerpc-apple-darwin7.9.0/describe.o OBJ.powerpc-
apple-darwin7.9.0/driver.o OBJ.powerpc-apple-darwin7.9.0/error.o OBJ.powerpc-apple-
darwin7.9.0/execute.o OBJ.powerpc-apple-darwin7.9.0/fetch.o OBJ.powerpc-apple-darwin7.9.0/
index.o OBJ.powerpc-apple-darwin7.9.0/listtab.o OBJ.powerpc-apple-darwin7.9.0/main.o
OBJ.powerpc-apple-darwin7.9.0/select.o -lgrass_dbmidriver -lgrass_dbmibase  -lgrass_dbstubs
-
lgrass_gis -lgrass_datetime -lz   -lintl -lgrass_datetime -lsqlite3  \
         -lz 
ld: can't locate file for: -lsqlite3
make: *** [****] Error 1
Mon, Sep 19 2005 18:21:53    Mail sent by radim.blazek@gmail.com  
Return-Path <radim.blazek@gmail.com>
Delivered-To grass-bugs@lists.intevation.de
DomainKey-Signature a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LZDg84l09wuYHXElYKp/GiPh8XEVEABEWQq0hWGFuOYszpz1AOIzlLL0hBCxUxwhaujS0qx8zbmznN2msJkkzwbbtjB16F8P3nPunQxa2pJ2JIVgTZYni7k/REUZ7jK4HsrJmQjV5Vw6xsxyHJUiE+5URW5VhRSp+IMgTIwMRyc=
Message-ID <340505ef05091909214f012c09@mail.gmail.com>
Date Mon, 19 Sep 2005 18:21:49 +0200
From Radim Blazek <radim.blazek@gmail.com>
Reply-To radim.blazek@gmail.com
To Request Tracker <grass-bugs@intevation.de>
Subject Re: [GRASS5] [bug #3654] (grass) sqlite driver doesn't built in Mac OS X
Cc grass5@grass.itc.it
In-Reply-To <20050919150232.D439B1006C5@lists.intevation.de>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Content-Disposition inline
References <20050919150232.D439B1006C5@lists.intevation.de>
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
SQLITELIBPATH was missing in Makefile, try to update.
Is the SQLITELIBPATH defined in Platform.make?

Radim

On 9/19/05, Request Tracker <grass-bugs@intevation.de> wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=3D3654
> -------------------------------------------------------------------------
>=20
> Subject: sqlite driver doesn't built in Mac OS X
>=20
> Platform: Mac OSX
> grass obtained from: Trento Italy site
> grass binary for platform: Compiled from Sources
> GRASS Version: grass_61_cvs_050917
>=20
> sqlite driver is a great add-on for Grass. I have not problem in configur=
e: GRASS see my sqlite 3
> installation. I have a problem when Grass build the driver. It doesn't se=
e -lsqlite3. It's strange
>=20
> This is the result from make:
> ....
> select.c: In function `db__driver_open_select_cursor':
> select.c:44: warning: passing arg 5 of `sqlite3_prepare' from incompatibl=
e pointer type
> select.c:54: warning: passing arg 1 of `append_error' discards qualifiers=
from pointer target type
> gcc -L/usr/X11R6/lib -L/usr/local/grasslib/lib -L/src/grass-6.1.cvs_src_s=
napshot_2005_09_17/
> dist.powerpc-apple-darwin7.9.0/lib  -L/usr/local/pgsql/lib  -o /src/
> grass-6.1.cvs_src_snapshot_2005_09_17/dist.powerpc-apple-darwin7.9.0/driv=
er/db/sqlite
> OBJ.powerpc-apple-darwin7.9.0/create_table.o OBJ.powerpc-apple-darwin7.9.=
0/cursor.o
> OBJ.powerpc-apple-darwin7.9.0/db.o OBJ.powerpc-apple-darwin7.9.0/describe=
.o OBJ.powerpc-
> apple-darwin7.9.0/driver.o OBJ.powerpc-apple-darwin7.9.0/error.o OBJ.powe=
rpc-apple-
> darwin7.9.0/execute.o OBJ.powerpc-apple-darwin7.9.0/fetch.o OBJ.powerpc-a=
pple-darwin7.9.0/
> index.o OBJ.powerpc-apple-darwin7.9.0/listtab.o OBJ.powerpc-apple-darwin7=
.9.0/main.o
> OBJ.powerpc-apple-darwin7.9.0/select.o -lgrass_dbmidriver -lgrass_dbmibas=
e  -lgrass_dbstubs -
> lgrass_gis -lgrass_datetime -lz   -lintl -lgrass_datetime -lsqlite3  \
>          -lz
> ld: can't locate file for: -lsqlite3
> make: *** [****] Error 1
>=20
>=20
> -------------------------------------------- Managed by Request Tracker
>=20
> _______________________________________________
> grass5 mailing list
> grass5@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5
>


Mon, Sep 19 2005 19:29:05    Comments added by guest  
Radim wrote

-- SQLITELIBPATH was missing in Makefile, try to update.
-- Is the SQLITELIBPATH defined in Platform.make?

-- Radim

Yes in Platform.make is present

#SQLite:
SQLITEINCPATH        =  -I/usr/local/sqlite3/include
SQLITELIBPATH        =  -L/usr/local/sqlite3/lib
SQLITELIB            =  -lsqlite3 

Lorenzo
Wed, Oct 19 2005 14:57:41    Mail sent by mneteler  
Lorenzo,

does the problem persist with the current CVS?

Markus

PS: please post in plain text, not HTML
Wed, Oct 19 2005 18:40:30    Mail sent by lorenzo.moretti@bologna.enea.it  
Return-Path <lorenzo.moretti@bologna.enea.it>
Delivered-To grass-bugs@lists.intevation.de
Mime-Version 1.0
Message-Id <a06230905bf7c26a9e757@[192.107.62.86]>
In-Reply-To <20051019125741.D73A8100164@lists.intevation.de>
References <20051019125741.D73A8100164@lists.intevation.de>
Date Wed, 19 Oct 2005 18:40:24 +0200
To Markus Neteler via RT <grass-bugs@intevation.de>
From Lorenzo Moretti <lorenzo.moretti@bologna.enea.it>
Subject Re: [bug #3654] (grass) sqlite driver doesn't built in Mac OS X
Content-Type text/plain; charset="us-ascii" ; format="flowed"
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
Hi Markus

>Lorenzo,
>
>does the problem persist with the current CVS?
>
>Markus
>
>PS: please post in plain text, not HTML

The problem has been resolved from Radim. An INCLUDE file in Makefile.
In last OS X 6.1.cvs there is sqlite driver and it works very well in 
all OS X system (10.2, 10.3, 10.4).
Thanks

Only ODBC doesn't work....

Bye
-- 
__________________________________________________________________________
||      Lorenzo Moretti        e-mail: lorenzo.moretti@bologna.enea.it     
||/|/|  ENEA prot/idr          Web: http://wwwamb.bologna.enea.it/    
||   |  via Don Fiammelli, 2   FTP: ftp://ftpamb.bologna.enea.it/ (ris.)
~~~~~~  40128 BOLOGNA - ITALY  Ph: +39-0516098086  Fax: +39-0516098131
ENEA - Ente Nazionale per le Nuove Tecnologie, l'Energia e l'Ambiente
ENEA - The Italian Agency for New Technologies, Energy and the Environment
__________________________________________________________________________


Sun, Oct 23 2005 03:17:26    Status changed to resolved by dcalvelo  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request