[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swarm-Support] Compiling Swarm on OS X
From: |
Bill Northcott |
Subject: |
Re: [Swarm-Support] Compiling Swarm on OS X |
Date: |
Sat, 5 Feb 2011 15:40:02 +1100 |
Hi Colin
Don't muck with DYLD_LIBRARY_PATH. It should usually be undefined. Darwin is
NOT Linux.
On Darwin Mac OS all libraries and executables hard code the full paths of the
libraries to which they are linked. Try:
otool -L /usr/local/lib/libdefobj.4.dylib
You probably linked to /usr/opt/lib but because you messed with
DYLD_LIBRARY_PATH it is dynamically linking to the first location on that path.
Hence the error.
If you put entries in DYLD_LIBRARY_PATH it will only cause trouble. It is only
meant to be used by Xcode to run programs when libraries are not yet installed.
Bill
On 05/02/2011, at 11:56 AM, Colin Sheppard wrote:
> Hi again, you're right, the configure script finds gsed no problem. I
> finally was able to get swarm to compile with a modest amount of code
> tweaking.
>
> The first thing I tried was compiling and running the heatbugs demo. It
> compiled fine, but when I try to run it I get the following:
>
> dyld: Symbol not found: _ffi_type_double
> Referenced from: /usr/local/lib/libdefobj.4.dylib
> Expected in: flat namespace
> in /usr/local/lib/libdefobj.4.dylib
> Trace/BPT trap
>
> I'm not sure if it matters, but my DYLD_LIBRARY_PATH environment variable has
> the following paths:
>
> /usr/local/lib:/opt/local/lib
>
> And inside /opt/local/lib is the ffi library which I install via macports (I
> first used the system version but I ended up with the same issue):
>
> Octagon:heatbugs critter$ l /opt/local/lib/libffi*
> 80 -rwxr-xr-x 2 root admin 36K Feb 4 10:59
> /opt/local/lib/libffi.5.dylib
> 248 -rw-r--r-- 2 root admin 123K Feb 4 10:59 /opt/local/lib/libffi.a
> 8 lrwxr-xr-x 1 root admin 14B Feb 4 10:59 /opt/local/lib/libffi.dylib
> -> libffi.5.dylib
> 8 -rwxr-xr-x 2 root admin 924B Feb 4 10:59 /opt/local/lib/libffi.la
>
> /opt/local/lib/libffi-3.0.9:
> total 0
> 0 drwxr-xr-x 4 root admin 136B Feb 4 10:59 include
>
> Here's my configure statement:
>
> ./configure --with-defaultdir=/opt/local/ --without-jdkdir CC="gcc"
> --with-ffidir=/opt/local/lib/libffi-3.0.9
>
> Any ideas what's wrong?
>
> BTW - assuming I get things working, I'll compile a patch file and a
> description of the steps I had to take to get this all going.
>
> Thanks again!
> Colin
>
> --
> Colin Sheppard
> Research Engineer,
> Schatz Energy Research Center
> address@hidden
> 707.633.8633
>
>
> On Fri, Jan 28, 2011 at 4:29 PM, William Northcott <address@hidden> wrote:
> On 29/01/2011, at 8:38 AM, Colin Sheppard wrote:
> > Thanks Bill, I installed gsed and set the environment variable SED to point
> > to it before running configure and that did the trick.
>
> The configure script should find it. Could you please try that without
> setting up the SED variable first.
>
> Bill
>
smime.p7s
Description: S/MIME cryptographic signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Swarm-Support] Compiling Swarm on OS X,
Bill Northcott <=