RawrUniversal / xerial

Automatically exported from code.google.com/p/xerial
0 stars 1 forks source link

Building sqlite-jdbc using an OS X 10.4-10.6 compatible glibc version. #79

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Running sqlite-jdbc under OS X 10.5 (64-bit)

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

Here is an excerpt from the ML thread:
http://groups.google.com/group/xerial/browse_thread/thread/35c3f0a11747b9fc?hl=e
n
---------------------------------------
Hi.

I have a macbook with 10.6 on it, and no problems using the native
drivers with sqlite. However, with 10.5.8 (which I've had to test due
to error reports from users of my application), I see this when
running the sample application:

java -cp .:sqlite-jdbc-3.7.2.jar Sample
java.lang.UnsatisfiedLinkError: /private/var/folders/3Z/3Z-
RIXRME9yLc1y4BPOK0E+++TI/-Tmp-/sqlite-3.7.2-libsqlitejdbc.jnilib:  no
suitable image found.  Did find:  /private/var/folders/3Z/3Z-
RIXRME9yLc1y4BPOK0E+++TI/-Tmp-/sqlite-3.7.2-libsqlitejdbc.jnilib:
unknown required load command 0x80000022
running in pure-java mode

(I added the check for driver-mode to the sample program as well)

For better or worse, I develop on Windows, so don't really know how to
investigate this problem on OS X. This was a fresh reinstall of 10.5
to test this too.

Due to the huge number of DB calls my application makes, I really need
the performance of the native driver.

Thanks

Taro L. Saito to xerial

Hi, 

I have already confirmed that sqlite-jdbc works well with OS X 10.4 (32-bit).
And also glibc, a library to which the native libraries are linked, has
backward compatibility (programs built with an older glibc version
work fine under the system using a newer glibc version.)

To build the native libraries, I have used OS X 10.4 (32-bit) and OS X
10.6 (64-bit), so I guess that the problem occurs when using OS X 10.5
(64-bit CPU).

I will try to build sqlite-jdbc with an older glibc supported in OS X
10.4 - 10.5 (64-bit).
http://www.linuxjunkies.org/html/Glibc2-HOWTO.html#s6

Original issue reported on code.google.com by taroleo on 6 Oct 2010 at 10:50