chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Deployment test failure (latest sources, FreeBSD)


From: Vitaly Magerya
Subject: Re: [Chicken-users] Deployment test failure (latest sources, FreeBSD)
Date: Sun, 20 Nov 2011 19:59:59 +0200

>> So, is this a known issue? If not, how do I diagnose it further?
>
> -deploy is known to be broken for NetBSD and OpenBSD. Does FreeBSD
> support the $ORIGIN setting for RPATH?

It appears that it does, but you need to additionally pass "-z origin"
to the linker. For example deploying like this seems to work:

    csc -deploy -L "-z origin" <sources>

> Maybe this test should be skipped on BSDs...

Actually, judging by the man pages [1-2] NetBSD and OpenBSD may
require the same trick. This needs to be tested though.

Here's the test:

    rm -rf /rmp/cd && mkdir -p /tmp/cd && cd /tmp/cd
    echo '(write 555)' | tee a.scm > b.scm
    csc -deploy a.scm
    ldd a/a
    csc -deploy -L "-z origin" b.scm
    ldd b/b

Can any of you folks on NetBSD, OpenBSD or any other OS try those
commands report the output here?

Here is mine output:
a/a:
        libchicken.so.6 => /usr/local/lib/libchicken.so.6 (0x2808e000)
        libm.so.5 => /lib/libm.so.5 (0x284dd000)
        libthr.so.3 => /lib/libthr.so.3 (0x284f7000)
        libc.so.7 => /lib/libc.so.7 (0x2850c000)
b/b:
        libchicken.so.6 => /tmp/cd/b/libchicken.so.6 (0x2808e000)
        libm.so.5 => /lib/libm.so.5 (0x284dd000)
        libthr.so.3 => /lib/libthr.so.3 (0x284f7000)
        libc.so.7 => /lib/libc.so.7 (0x2850c000)

... which means that deployment doesn't work out of the box, but works
with "-z origin" added.

[1] http://man.freebsd.org/query=ld&manpath=NetBSD
[2] http://man.freebsd.org/query=ld&manpath=OpenBSD



reply via email to

[Prev in Thread] Current Thread [Next in Thread]