[Top][All Lists]

[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: => /usr/local/lib/ (0x2808e000) => /lib/ (0x284dd000) => /lib/ (0x284f7000) => /lib/ (0x2850c000)
b/b: => /tmp/cd/b/ (0x2808e000) => /lib/ (0x284dd000) => /lib/ (0x284f7000) => /lib/ (0x2850c000)

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


reply via email to

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