Re: [sqlite] Compile 64bit version of SQLIte on Solaris?

2010-11-22 Thread Lynton Grice
Hi Dan,

You are THE MAN! You are 100% correct...I was using GCC in:

/usr/local/bin/gcc

But should have been using:

/usr/sfw/bin/gcc

Thanks ;-)

Lynton

-Original Message-
From: sqlite-users-boun...@sqlite.org
[mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Dan Kennedy
Sent: 22 November 2010 11:05 AM
To: sqlite-users@sqlite.org
Subject: Re: [sqlite] Compile 64bit version of SQLIte on Solaris?

On 11/22/2010 03:25 PM, Lynton Grice wrote:
> Hi there,
>
> That does not work, I tried that already.
>
> # /usr/local/bin/gcc -m64 -D_FILE_OFFSET_BITS=64 -c -fPIC -DHAVE_USLEEP
> sqlite3.c
> sqlite3.c:1: sorry, unimplemented: 64-bit mode not compiled in
> #
>
> And I am on a 64-bit Solaris box...
>
> And other ideas?


The message means that your gcc build does not support
64-bit targets. You could rebuild gcc or try using solaris
compiler if you have it.


___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compile 64bit version of SQLIte on Solaris?

2010-11-22 Thread Dan Kennedy
On 11/22/2010 03:25 PM, Lynton Grice wrote:
> Hi there,
>
> That does not work, I tried that already.
>
> # /usr/local/bin/gcc -m64 -D_FILE_OFFSET_BITS=64 -c -fPIC -DHAVE_USLEEP
> sqlite3.c
> sqlite3.c:1: sorry, unimplemented: 64-bit mode not compiled in
> #
>
> And I am on a 64-bit Solaris box...
>
> And other ideas?


The message means that your gcc build does not support
64-bit targets. You could rebuild gcc or try using solaris
compiler if you have it.


___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compile 64bit version of SQLIte on Solaris?

2010-11-22 Thread Lynton Grice
Hi there,

That does not work, I tried that already.

# /usr/local/bin/gcc -m64 -D_FILE_OFFSET_BITS=64 -c -fPIC -DHAVE_USLEEP
sqlite3.c
sqlite3.c:1: sorry, unimplemented: 64-bit mode not compiled in
#

And I am on a 64-bit Solaris box...

And other ideas?

Lynton

-Original Message-
From: sqlite-users-boun...@sqlite.org
[mailto:sqlite-users-boun...@sqlite.org] On Behalf Of a...@sibmail.ru
Sent: 22 November 2010 10:16 AM
To: sqlite-users@sqlite.org
Subject: Re: [sqlite] Compile 64bit version of SQLIte on Solaris?

use -m64 flag to compile and link

> I just tried to see what ELF class is in after running the following
> (added
> -D_FILE_OFFSET_BITS=64):
>
> /usr/local/bin/gcc -D_FILE_OFFSET_BITS=64 -c -fPIC -DHAVE_USLEEP
> sqlite3.c
>
> # file libsqlite3.so grep ELF
> libsqlite3.so:  ELF 32-bit LSB dynamic lib 80386 Version 1 [FPU],
> dynamically linked, not stripped, no debugging information available
>
> How can I get the ELF class to reflect "ELF 64-bit"?
>
> Any ideas?
>
> Lynton
>
> -Original Message-
> From: sqlite-users-boun...@sqlite.org
> [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Lynton Grice
> Sent: 22 November 2010 09:33 AM
> To: 'General Discussion of SQLite Database'
> Subject: Re: [sqlite] Compile 64bit version of SQLIte on Solaris?
>
> Hi there,
>
> The reason I ask is that I have created a C shared lib using SQLite
> functions etc and the custom shared lib I have created needs to be ELF
> class
> 64.
>
> At the moment I am getting the ELF class issues:
> wrong ELF class: ELFCLASS32
>
> That is why I am hoping I can compile the main SQLite shared lib in ELF
> class 64..
>
> This possible?
>
> Thanks
>
> Lynton
>
>
> -Original Message-
> From: sqlite-users-boun...@sqlite.org
> [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Lynton Grice
> Sent: 22 November 2010 09:28 AM
> To: sqlite-users@sqlite.org
> Subject: [sqlite] Compile 64bit version of SQLIte on Solaris?
>
> Hi there,
>
>
>
> I am getting the following error when trying to compile SQLite on a
> Solaris
> 64 bit machine:
>
>
>
> /usr/local/bin/gcc -m64 -R/usr/sfw/lib/64 -c -fPIC -DHAVE_USLEEP
> sqlite3.c
>
> sqlite3.c:1: sorry, unimplemented: 64-bit mode not compiled in
>
>
>
> Can someone please let me know how I can do this so I can use SQLite on a
> 64
> bit Solaris machine?
>
>
>
> Thanks
>
>
>
> Lynton
>
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>


___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compile 64bit version of SQLIte on Solaris?

2010-11-22 Thread alm
use -m64 flag to compile and link

> I just tried to see what ELF class is in after running the following
> (added
> -D_FILE_OFFSET_BITS=64):
>
> /usr/local/bin/gcc -D_FILE_OFFSET_BITS=64 -c -fPIC -DHAVE_USLEEP
> sqlite3.c
>
> # file libsqlite3.so grep ELF
> libsqlite3.so:  ELF 32-bit LSB dynamic lib 80386 Version 1 [FPU],
> dynamically linked, not stripped, no debugging information available
>
> How can I get the ELF class to reflect "ELF 64-bit"?
>
> Any ideas?
>
> Lynton
>
> -Original Message-
> From: sqlite-users-boun...@sqlite.org
> [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Lynton Grice
> Sent: 22 November 2010 09:33 AM
> To: 'General Discussion of SQLite Database'
> Subject: Re: [sqlite] Compile 64bit version of SQLIte on Solaris?
>
> Hi there,
>
> The reason I ask is that I have created a C shared lib using SQLite
> functions etc and the custom shared lib I have created needs to be ELF
> class
> 64.
>
> At the moment I am getting the ELF class issues:
> wrong ELF class: ELFCLASS32
>
> That is why I am hoping I can compile the main SQLite shared lib in ELF
> class 64..
>
> This possible?
>
> Thanks
>
> Lynton
>
>
> -Original Message-
> From: sqlite-users-boun...@sqlite.org
> [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Lynton Grice
> Sent: 22 November 2010 09:28 AM
> To: sqlite-users@sqlite.org
> Subject: [sqlite] Compile 64bit version of SQLIte on Solaris?
>
> Hi there,
>
>
>
> I am getting the following error when trying to compile SQLite on a
> Solaris
> 64 bit machine:
>
>
>
> /usr/local/bin/gcc -m64 -R/usr/sfw/lib/64 -c -fPIC -DHAVE_USLEEP
> sqlite3.c
>
> sqlite3.c:1: sorry, unimplemented: 64-bit mode not compiled in
>
>
>
> Can someone please let me know how I can do this so I can use SQLite on a
> 64
> bit Solaris machine?
>
>
>
> Thanks
>
>
>
> Lynton
>
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
> ___
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>


___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compile 64bit version of SQLIte on Solaris?

2010-11-21 Thread Lynton Grice
I just tried to see what ELF class is in after running the following (added
-D_FILE_OFFSET_BITS=64):

/usr/local/bin/gcc -D_FILE_OFFSET_BITS=64 -c -fPIC -DHAVE_USLEEP  sqlite3.c

# file libsqlite3.so grep ELF
libsqlite3.so:  ELF 32-bit LSB dynamic lib 80386 Version 1 [FPU],
dynamically linked, not stripped, no debugging information available

How can I get the ELF class to reflect "ELF 64-bit"?

Any ideas?

Lynton

-Original Message-
From: sqlite-users-boun...@sqlite.org
[mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Lynton Grice
Sent: 22 November 2010 09:33 AM
To: 'General Discussion of SQLite Database'
Subject: Re: [sqlite] Compile 64bit version of SQLIte on Solaris?

Hi there,

The reason I ask is that I have created a C shared lib using SQLite
functions etc and the custom shared lib I have created needs to be ELF class
64.

At the moment I am getting the ELF class issues:
wrong ELF class: ELFCLASS32

That is why I am hoping I can compile the main SQLite shared lib in ELF
class 64..

This possible?

Thanks

Lynton


-Original Message-
From: sqlite-users-boun...@sqlite.org
[mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Lynton Grice
Sent: 22 November 2010 09:28 AM
To: sqlite-users@sqlite.org
Subject: [sqlite] Compile 64bit version of SQLIte on Solaris?

Hi there,

 

I am getting the following error when trying to compile SQLite on a Solaris
64 bit machine:

 

/usr/local/bin/gcc -m64 -R/usr/sfw/lib/64 -c -fPIC -DHAVE_USLEEP  sqlite3.c

sqlite3.c:1: sorry, unimplemented: 64-bit mode not compiled in

 

Can someone please let me know how I can do this so I can use SQLite on a 64
bit Solaris machine?

 

Thanks

 

Lynton

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Compile 64bit version of SQLIte on Solaris?

2010-11-21 Thread Lynton Grice
Hi there,

The reason I ask is that I have created a C shared lib using SQLite
functions etc and the custom shared lib I have created needs to be ELF class
64.

At the moment I am getting the ELF class issues:
wrong ELF class: ELFCLASS32

That is why I am hoping I can compile the main SQLite shared lib in ELF
class 64..

This possible?

Thanks

Lynton


-Original Message-
From: sqlite-users-boun...@sqlite.org
[mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Lynton Grice
Sent: 22 November 2010 09:28 AM
To: sqlite-users@sqlite.org
Subject: [sqlite] Compile 64bit version of SQLIte on Solaris?

Hi there,

 

I am getting the following error when trying to compile SQLite on a Solaris
64 bit machine:

 

/usr/local/bin/gcc -m64 -R/usr/sfw/lib/64 -c -fPIC -DHAVE_USLEEP  sqlite3.c

sqlite3.c:1: sorry, unimplemented: 64-bit mode not compiled in

 

Can someone please let me know how I can do this so I can use SQLite on a 64
bit Solaris machine?

 

Thanks

 

Lynton

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] Compile 64bit version of SQLIte on Solaris?

2010-11-21 Thread Lynton Grice
Hi there,

 

I am getting the following error when trying to compile SQLite on a Solaris
64 bit machine:

 

/usr/local/bin/gcc -m64 -R/usr/sfw/lib/64 -c -fPIC -DHAVE_USLEEP  sqlite3.c

sqlite3.c:1: sorry, unimplemented: 64-bit mode not compiled in

 

Can someone please let me know how I can do this so I can use SQLite on a 64
bit Solaris machine?

 

Thanks

 

Lynton

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users