Rob McMahon wrote:
On 09/05/2013 07:22, leif wrote:
Rob McMahon wrote:
Solaris 10 SPARC, with libffi and libiconv installed on the system
already for other purposes. Having worked around the iconv issue
(special case for solaris in iconv*/src/src/Makefile.in, make now dies
compiling ecl with:
...
Although it is finding the installed libffi at compile time, it is not
finding it at run time ... the -L flags can't be matching the -R flags.
I haven't had coffee yet, but if the dynamic linker picks up the
system-wide(?) libffi from some "default" directory during linking,
why doesn't the runtime linker? (Except for '.', there are no
directories outside the Sage tree explicitly specified with '-L' in
the link command, so probably something is wrong with your
[environment variable] setup. You *may* be able to add further
'-Wl,-R,...' to LDFLAGS to work around this though, without changing
any *PATH vars.)
It correctly works out the -L flags for linking, but doesn't add the
corresponding -R flags.
? So where does your libffi.so come from? (I.e., where is it located,
and which env var contains its directory, if the latter is not one of
the standard places?) (And is libffi.so.4 located in the same place?)
I could have set
env LD_OPTIONS='-R...' make
but I didn't want to add the directory to the runpath of every
executable made, even if they didn't need it. Maybe that would have
been the better option. It would also prepend to anything sage set,
which could cause more trouble.
Presumably, not to say most probably (if done "globally" at least).
BTW building R has had the same problem. I had to put in links for
libgomp*. The build is still going, but it's getting there.
Same question(s) for that.
-leif
--
() The ASCII Ribbon Campaign
/\ Help Cure HTML E-Mail
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.