#234 wrapper doesn't work on FreeBSD 8.0

Service (34)

$uname -a
FreeBSD test 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
$ldd wrapper
libm.so.4 => /lib/libm.so.4 (0x280a8000)
libpthread.so.2 => /usr/lib/libpthread.so.2 (0x280c2000)
libc.so.6 => not found (0x0)
libc.so.7 => /lib/libc.so.7 (0x280d7000)
Symlincs in this case are:
/lib/libm.so.4 -> /lib/libm.so.5
/usr/lib/libpthread.so.2 -> /usr/lib/libpthread.so
/lib/libc.so.6 -> /lib/libc.so.7

When I start wrapper I get following error:
/libexec/ld-elf.so.1: /usr/lib/libpthread.so.2: version LIBTHREAD_1_0 required by /usr/local/apache-activemq-5.3.1/bin/freebsd-x86-32/wrapper not found
Is there a wrapper for FreeBSD 8.0?


  • Christian Mueller


    I'm very sorry for the delay getting back to you.

    the problem is that in freebsd8 libpthread was changed to libthr silently, and libthr does not include some methods form the previous library.
    The wrapper versions for FreeBSD - both 32 and 64 bit - are build on a freebsd 6 machine.

    I was setting up a fresh freebsd8 machine to test out what you were experiencing.
    After setting up the basics in order to run the wrapper (java & ant), I got some error messages about missing libm.so.4.

    So I tried solving the problem by some small hacks (I also assume that's what you tried).
    After I made a soft link of /usr/lib/libm.so to libm.so.4. after that I also did the same with libpthread.so (->libpthread.so.2) & libc.so (libc.so.6).
    This yielded finally the error msg you were posting.

    If you made the softlinks, please remove them and install the misc/compat6 package instead:
    cd /usr/ports/misc/compat6
    make install

    After doing that you should also be able to run the wrapper on freebsd8.

    Please let me know, if this was working out for you.


  • Michael Osipov

    Michael Osipov - 2011-10-11

    I suffer from the same problem after an upgrade from 7.x to 8.x.
    I had to perform
    $make deinstall
    $make reinstall

    That did the trick.

    Christian, FreeBSD 6 is nearly 4 years old. Are you able to provide a FreeBSD 7+ compiled version?
    The man page (http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=libthr) of libthr says that this is a 1:1 impl if libpthread.

  • Christian Mueller


    we were releasing version 3.5.12 for FreeBSD built on a FreeBSD 7.



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks