Re: [sqlite] sqlite on SunOS 5.6 (Solaris Sparc 6)

2005-10-25 Thread Kurt Welgehausen
> Can anyone guide me to where "fdatasync" should be?



(maybe)


Regards


Re: [sqlite] sqlite on SunOS 5.6 (Solaris Sparc 6)

2005-10-25 Thread rpyne
Thanks, changing my path order and replacing awk with gawk solved the 
(first) problem. Now I am getting:

gcc -g -O2 -DOS_UNIX=1 -DHAVE_USLEEP=1 -I. -I./src -DNDEBUG -
DTHREADSAFE=0 -DSQLITE_OMIT_CURSOR -DHAVE_READLINE=1 -
I/usr/local/include/readline -o .libs/sqlite3 ./src/shell.c  
./.libs/libsqlite3.so -lreadline -lcurses -Wl,--rpath -
Wl,/usr/local/lib
./.libs/libsqlite3.so: undefined reference to `fdatasync'
collect2: ld returned 1 exit status
make: *** [sqlite3] Error 1


Can anyone guide me to where "fdatasync" should be?

Thanks.

--Richard



On 25 Oct 2005 at 7:06, Kurt Welgehausen wrote:

> This looks like a problem that has come up several
> times before on the list. If I remember correctly,
> it's usually that the awk shipped by Sun doesn't
> support the extended syntax that Sqlite expects.
> 
> Try installing gawk if it's not there already, and
> do whatever is required to use it in place of awk.
> 
> Regards
> 




Re: [sqlite] sqlite on SunOS 5.6 (Solaris Sparc 6)

2005-10-25 Thread Christian Smith
Inline.

On Tue, 25 Oct 2005 [EMAIL PROTECTED] wrote:

>Has anyone sucessfully built sqlite 3.2.7 on a SunOS 5.6 (Solaris
>sparc 6) box?
>
>I had no problems with sqlite 2, but can't seem to get sqlite3 to
>build.
>
>Using the ./configure ; make route, it dies with:
>
>./lemon -DSQLITE_OMIT_CURSOR   parse.y
>cat parse.h ./src/vdbe.c | awk -f ./mkopcodeh.awk >opcodes.h
> ...
>make: *** [opcodes.h] Error 2
>


Put /usr/xpg4/bin in your PATH before /usr/bin. On Solaris, the tools in
/usr/bin are from the ark, and those in /usr/xpg4/bin are the more recent
standards compliant tools. In this case, you need a nawk compatible awk.

Christian


--
/"\
\ /ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
 X   - AGAINST MS ATTACHMENTS
/ \


Re: [sqlite] sqlite on SunOS 5.6 (Solaris Sparc 6)

2005-10-25 Thread Kurt Welgehausen
This looks like a problem that has come up several
times before on the list. If I remember correctly,
it's usually that the awk shipped by Sun doesn't
support the extended syntax that Sqlite expects.

Try installing gawk if it's not there already, and
do whatever is required to use it in place of awk.

Regards


Re: [sqlite] sqlite on SunOS 5.6 (Solaris Sparc 6)

2005-10-25 Thread Arjen Markus
[EMAIL PROTECTED] wrote:
> 
> Has anyone sucessfully built sqlite 3.2.7 on a SunOS 5.6 (Solaris
> sparc 6) box?
> 
> I had no problems with sqlite 2, but can't seem to get sqlite3 to
> build.
> 
> Using the ./configure ; make route, it dies with:
> 
> ./lemon -DSQLITE_OMIT_CURSOR   parse.y
> cat parse.h ./src/vdbe.c | awk -f ./mkopcodeh.awk >opcodes.h
> awk: syntax error near line 36
> awk: illegal statement near line 36
> awk: syntax error near line 37
> awk: illegal statement near line 37
> awk: syntax error near line 42
> awk: illegal statement near line 42
> awk: syntax error near line 103
> awk: illegal statement near line 103
> make: *** [opcodes.h] Error 2
> 
> Trying to use the generic Makefile, I get the same results.
> 

I get the very same result, apparently awk on Sun does not
like the mkopcodeh.awk script.

It does not like the sub command and it does not like:

  nopush[i] = nopush[i] + (2^j)


I tried with "nawk" instead: this works without any 
problem! 

Regards,

Arjen



[sqlite] sqlite on SunOS 5.6 (Solaris Sparc 6)

2005-10-25 Thread rpyne
Has anyone sucessfully built sqlite 3.2.7 on a SunOS 5.6 (Solaris 
sparc 6) box?

I had no problems with sqlite 2, but can't seem to get sqlite3 to 
build.

Using the ./configure ; make route, it dies with:

./lemon -DSQLITE_OMIT_CURSOR   parse.y
cat parse.h ./src/vdbe.c | awk -f ./mkopcodeh.awk >opcodes.h
awk: syntax error near line 36
awk: illegal statement near line 36
awk: syntax error near line 37
awk: illegal statement near line 37
awk: syntax error near line 42
awk: illegal statement near line 42
awk: syntax error near line 103
awk: illegal statement near line 103
make: *** [opcodes.h] Error 2


Trying to use the generic Makefile, I get the same results.

Thanks,

--Richard