LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-31-2007, 04:34 PM   #1
cae
LQ Newbie
 
Registered: Jul 2003
Distribution: openSUSE 10.2
Posts: 18

Rep: Reputation: 0
Make BIND against a different libc


Greetings all.

I have an embedded x86 machine with a 256 Meg compact flash card as a hard disk, no monitor, no keyboard; I telnet into it for configuration / operation. It is idle most of the time, so I decided to use it as a name server.

The Problem: because of storage limitations gcc is not installed (it uses busybox). So I used my main machine (openSUSE 10.2) to do the make procedure, and installed to the locally mounted cf card with ./configure --prefix=/media/disk/usr/local. When I attempt to run it I get a libc mismatch. It expects libc.2.2.5 but I suspect it was linked with the main machine's native version of libc (libc.3.x...)

I've been reading about using a virtual machine, like UML; if I understand correctly, I could install the version of linux (kernel 2.3.24) which the embedded machine is running, but there is a lot of learning to do and it takes me away from my goal of learning about name servers.

Can you share some ideas?
 
Old 08-31-2007, 04:55 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You will need to install the libraries that the program may link against in SuSE, but take care that those library paths aren't included in /etc/ld.so.conf. But you need to indicate the library paths and include paths for your cross compiling in your make file. If you don't want to install a particular library from source, you might try downloading a package with the library versions you need, and use the unrpm command to extract the lib and include hierarchies of the package inside a directory in your home directory. Then for dynamically linked binaries, you can simply copy them to the embedded device's cf card. You will need to run "sudo /sbin/ldconfig" after installing a new library, inserting the cf card and telneting into the embedded device. You will probably learn more about embedded devices than running a name server. You don't need to use a virtual machine to cross compile.
 
Old 08-31-2007, 05:12 PM   #3
cae
LQ Newbie
 
Registered: Jul 2003
Distribution: openSUSE 10.2
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for your reply. It seems like the first thing here is to familiarize myself with libraries and the structure of the Makefile. Getting down to it!
 
Old 09-01-2007, 08:54 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
There is a book published by Prentice Hall called "Embedded Linux Primer" by Christopher Hallinan that you might be interested in. ISBM 0-13-167984-8
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC Make error on Solarias 2.8: libc.a unknown file type vinaybms Solaris / OpenSolaris 1 06-20-2005 01:56 AM
Any way to make bind resolve any request to same IP? fur Linux - Networking 4 07-13-2004 11:18 PM
How to make mount --bind persistant linuxnube Linux - Software 1 06-10-2004 08:06 PM
I cant make out bind errorsHi alaios Linux - Networking 1 10-26-2003 11:15 PM
Trying to compile older make of libc, getting error Cecil Linux - Software 0 07-16-2003 02:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration