Look in LFS (Linux From Scratch) on how to create a cross-compiler that you can chroot into before the compile. It makes sure only the libraries you installed are the ones your binaries will link to.
It should be an easy easy, but quite frankly haven't found it yet (and I am cross-compiling to the x86 platform, but different library versions). Regards, ~Nuno Lucas On 11/23/07, Tara_Nair <[EMAIL PROTECTED]> wrote: > Thanks for your response, Trevor. > > It is what I had initially thought too, that if I built it with an older > set of libraries it will look for those versions at runtime too. But > these libs versions seem to be inbuilt. I cannot seem to change the > sqlite-v3.5.2 dependency on the specific versions of libc-2.2.3 etc. > > I downloaded the code from http://www.sqlite.org/download.html > (sqlite-3.5.2.tar.gz) > I used the following command to configure it : > > $ config_TARGET_CC=arm-linux-gcc config_BUILD_CC=gcc > ../sqlite-3.5.2/configure --disable-tcl --disable-readline --disable-tcl > --disable-threadsafe --host=arm-linux > --prefix=/home/tara/user-driver/sql/install-sq > $ make > $ make install > Then copied the install-sql to my target and try to run it. > > If I forciby link the ld and libc on command line while running sqlite3 > , it works. > That is , if at the target prompt I do the following , sqlite3 works. > > LD_LIBRARY_PATH=/lib/2.2.3:$LD_LIBRARY_PATH > >/lib/2.2.3/ld-2.2.3.so ./sqlite3 > It works for sqlite3 , but the rest of the application dies including > the simple commands like ls, mount etc as the system depends on the > 2.1.3 version of the libraries. > > I am sure this is too much information about my debug. But essentially > my point is if I could get a sqlite3 version which depended on 2.1.3 > version of libraries in /lib folder, it would be great. > > Thanks & Regards, > Tara > > Trevor Talbot wrote: > > On 11/22/07, Tara_Nair <[EMAIL PROTECTED]> wrote: > > > > > >> I just recently started to use Sqlite3 version 3.5.2 on an ARM-LINUX > >> based embedded platform. > >> Sqlite3-v3.5.2. has a dependency on libc, ld and libpthread versions 2.2.3. > >> > > > > Er.. it should depend on whatever versions you link it against when > > you cross-compile for your platform. > > > > How/where did you get the version of SQLite you're trying to use now? > > > > ----------------------------------------------------------------------------- > > To unsubscribe, send email to [EMAIL PROTECTED] > > ----------------------------------------------------------------------------- > > > > > > > > > ----------------------------------------------------------------------------- > To unsubscribe, send email to [EMAIL PROTECTED] > ----------------------------------------------------------------------------- > > ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------