Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Using Linux Emulation libraries



You're right, the message is 'Shared Object "libnss_dns.so.2" not
found'.  Problem is, none of the libraries used by the software
reference this library, so I'm trying to figure out how it gets
referenced.  A number of other programs use the libraries also, and none
of them try to reference this, but the program in question is being
imported using the definitions for Linux and Solaris, so I'm wondering
if something different is being done for them.

David

>>> Eric Haszlakiewicz <erh%nimenees.com@localhost> 7/10/2008 8:33 PM >>>
David Dudley wrote:
> I've got a program supplied by an outside source, designed to run on
a
> Linux system.
> 
> After making some changes to make it compile correctly on NetBSD, I
get
> an error on loading about 'can't find nss_dns shared library'.

If you really did manage to get it compiled as a NetBSD binary then it

shouldn't be looking for that library at all.  Is the the exact message

you get when you run it, or do you get something like "Shared object 
"libnss_dns.so.2" not found" ?
If the latter, then the build process did something to explicitly link

against that library and it shouldn't have.  You probably just need to

remove a -l option from the link command.
If the former, then I'm guessing your program is trying to dlopen the 
library for some reason, in which case you'll need to find that in the

code and change it.

> To have the program use this library, do I link the program and
include
> the /usr/pkg/emul/lib directory?  Inserting the directory into the
> /etc/ld.so.conf file caused most other programs to fail to work, so
I
> assume it shouldn't be included there.

   No, if you're recompiling it under NetBSD, the whole emulation 
framework is not needed.  You only need that when you're running Linux

_binaries_.

eric
BEGIN:VCARD
VERSION:2.1
X-GWTYPE:USER
FN:David Dudley
TEL;WORK:880-3740
ORG:;MIS
TEL;PREF;FAX:880-3741
EMAIL;WORK;PREF;NGW:DavidDu%cctexas.com@localhost
N:Dudley;David
END:VCARD



Home | Main Index | Thread Index | Old Index