Re: [sqlite] Compiling SQLite under Mac OS (was: unsupported file format)

2007-05-12 Thread Alberto Simões

On 5/12/07, Alberto Simões <[EMAIL PROTECTED]> wrote:

I am compiling *manually* sqlite3 in my Mac OS.

Configured without tcl, and with prefix /usr/local.
  (--disable-tcl --prefix=/usr/local)

I get this while compiling:

...
gcc -L/sw/lib -I/sw/include -g -O2 -I. -I./src -DNDEBUG -DTHREADSAFE=0
-DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -c
./src/alter.c  -fno-common -DPIC -o .libs/alter.o
In file included from ./src/alter.c:17:
./src/sqliteInt.h:516: error: parse error before 'sqlite3_vtab'
./src/sqliteInt.h:516: warning: no semicolon at end of struct or union
./src/sqliteInt.h:528: error: parse error before '}' token
...


Solved
Removed those -L and -I for fink libraries.
Thanks
Alberto


--
Alberto Simões

-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] Compiling SQLite under Mac OS (was: unsupported file format)

2007-05-12 Thread Alberto Simões

Ok, I didn't explain correctly. This time I am not using fink :)

Argh. Not being native english speaker sometimes sucks. Let start again.

I am compiling *manually* sqlite3 in my Mac OS.

Configured without tcl, and with prefix /usr/local.
 (--disable-tcl --prefix=/usr/local)

I get this while compiling:

...
gcc -L/sw/lib -I/sw/include -g -O2 -I. -I./src -DNDEBUG -DTHREADSAFE=0
-DSQLITE_THREAD_OVERRIDE_LOCK=-1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -c
./src/alter.c  -fno-common -DPIC -o .libs/alter.o
In file included from ./src/alter.c:17:
./src/sqliteInt.h:516: error: parse error before 'sqlite3_vtab'
./src/sqliteInt.h:516: warning: no semicolon at end of struct or union
./src/sqliteInt.h:528: error: parse error before '}' token
...

Hints, please?
Thanks
Alberto
--
Alberto Simões

-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] Compiling SQLite under Mac OS (was: unsupported file format)

2007-05-12 Thread Alberto Simões

On 5/12/07, P Kishor <[EMAIL PROTECTED]> wrote:

On 5/12/07, Alberto Simões <[EMAIL PROTECTED]> wrote:
> On 5/11/07, P Kishor <[EMAIL PROTECTED]> wrote:
>
> > Just download the latest source code and compile a new sqlite3 with
> > it. All will be well.
>
> I am trying to compile SQLite under Mac OS. Normally I use fink but it
> includes an old version of SQLite.

Don't use fink. I used fink once about a few years ago, and promptly
deleted anything to do with it because it (as well as darwinports) was
more trouble than worth it. SQLite (and many other software packages)
compiles on my Mac (10.4.x) with nary a hiccup.


Ok, I didn't explain correctly. This time I am not using fink :)


> Configured without tcl, and with prefix /usr/local.
> I get this while compiling:
>
>  gcc -L/sw/lib -I/sw/include -g -O2 -I. -I./src -DNDEBUG
> -DTHREADSAFE=0 -DSQLITE_THREAD_OVERRIDE_LOCK=-1
> -DSQLITE_OMIT_LOAD_EXTENSION=1 -c ./src/alter.c  -fno-common -DPIC -o
> .libs/alter.o
> In file included from ./src/alter.c:17:
> ./src/sqliteInt.h:516: error: parse error before 'sqlite3_vtab'
> ./src/sqliteInt.h:516: warning: no semicolon at end of struct or union
> ./src/sqliteInt.h:528: error: parse error before '}' token
> ...
>
>
> Hints, please?
> Thanks
> Alberto

--
Alberto Simões

-
To unsubscribe, send email to [EMAIL PROTECTED]
-



Re: [sqlite] Compiling SQLite under Mac OS (was: unsupported file format)

2007-05-12 Thread P Kishor

On 5/12/07, Alberto Simões <[EMAIL PROTECTED]> wrote:

On 5/11/07, P Kishor <[EMAIL PROTECTED]> wrote:

> Just download the latest source code and compile a new sqlite3 with
> it. All will be well.

I am trying to compile SQLite under Mac OS. Normally I use fink but it
includes an old version of SQLite.


Don't use fink. I used fink once about a few years ago, and promptly
deleted anything to do with it because it (as well as darwinports) was
more trouble than worth it. SQLite (and many other software packages)
compiles on my Mac (10.4.x) with nary a hiccup.

Do as I suggested above and all will be well.



Configured without tcl, and with prefix /usr/local.
I get this while compiling:

 gcc -L/sw/lib -I/sw/include -g -O2 -I. -I./src -DNDEBUG
-DTHREADSAFE=0 -DSQLITE_THREAD_OVERRIDE_LOCK=-1
-DSQLITE_OMIT_LOAD_EXTENSION=1 -c ./src/alter.c  -fno-common -DPIC -o
.libs/alter.o
In file included from ./src/alter.c:17:
./src/sqliteInt.h:516: error: parse error before 'sqlite3_vtab'
./src/sqliteInt.h:516: warning: no semicolon at end of struct or union
./src/sqliteInt.h:528: error: parse error before '}' token
...


Hints, please?
Thanks
Alberto

--
Alberto Simões

-
To unsubscribe, send email to [EMAIL PROTECTED]
-





--
Puneet Kishor http://punkish.eidesis.org/
Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/
Open Source Geospatial Foundation http://www.osgeo.org/education/
-
collaborate, communicate, compete
=

-
To unsubscribe, send email to [EMAIL PROTECTED]
-



[sqlite] Compiling SQLite under Mac OS (was: unsupported file format)

2007-05-12 Thread Alberto Simões

On 5/11/07, P Kishor <[EMAIL PROTECTED]> wrote:


Just download the latest source code and compile a new sqlite3 with
it. All will be well.


I am trying to compile SQLite under Mac OS. Normally I use fink but it
includes an old version of SQLite.

Configured without tcl, and with prefix /usr/local.
I get this while compiling:

gcc -L/sw/lib -I/sw/include -g -O2 -I. -I./src -DNDEBUG
-DTHREADSAFE=0 -DSQLITE_THREAD_OVERRIDE_LOCK=-1
-DSQLITE_OMIT_LOAD_EXTENSION=1 -c ./src/alter.c  -fno-common -DPIC -o
.libs/alter.o
In file included from ./src/alter.c:17:
./src/sqliteInt.h:516: error: parse error before 'sqlite3_vtab'
./src/sqliteInt.h:516: warning: no semicolon at end of struct or union
./src/sqliteInt.h:528: error: parse error before '}' token
...


Hints, please?
Thanks
Alberto

--
Alberto Simões

-
To unsubscribe, send email to [EMAIL PROTECTED]
-