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

FreeBSD Compat problem on i386



I am having trouble running a binary under FreeBSD emulation. I have to
run an apache binary compiled with a certain module that is for running a
FreeBSD based web application. I got a pre-compiled binary from the
company, but it is not a static binary. I have been trying to get it to
recognize one of the libraries I have found, but I am getting results that
confuse me. Am I doing something wrong? Here is what I have so far:

I found a binary distribution of the package that has the libraries and
extracted the lib directory and all of its contents into
/emul/freebsd/usr/lib, then I ran the freebsd ldconfig with /usr/lib/mysql
(the directory containing the new libraries) and get the output below.

# usr/bin/ldd sbin/httpd           
sbin/httpd:
        -lstdc++.2 => not found (0x0)
        -lmysqlclient.4 => not found (0x0)
        -lm.2 => not found (0x0)
        -lcrypt.2 => not found (0x0)
        -lc.3 => /usr/lib/libc.so.3.1 (0x4018d000)
[/emul/freebsd/usr]
# ../sbin/ldconfig -r
/var/run/ld.so.hints:
        search directories: /usr/lib:/usr/lib/mysql
        0:-lmysqlclient.4.0 => /usr/lib/mysql/libmysqlclient.so.4
        1:-lmysqlclient.6.0 => /usr/lib/mysql/libmysqlclient.so.6
        2:-lc.3.1 => /usr/lib/libc.so.3.1

This is the listing for what I have in the /emul/freebsd/usr/lib
directory:

[/emul/freebsd]
# ls usr/lib*
usr/lib:
libc.so.3.1  mysql/

usr/libexec:
ld.so*

I am running OpenBSD/i386-2.5 CD. What am I overlooking, or is there a
resource beyond the man pages out there? (The FAQ has nothing regarding
the COMPAT_* modes, so I think I will write something after I get this all
figured out).

Thanks in advance for any help!

-- 
Jesse Trucks
jtrucks@madison.com
Online Technical Producer
Madison Newspapers, Inc. - http://www.madison.com