Dear William and others,

Hi, I want to report that I've found a solution to the problem that
I've
reported
in the sarge-forum google-group (pari is not built since the option -
rpath
is not recognized as an option that should be passed to the linker by
gcc)

The solution is simple: comment-out (or delete) the lines

if test -n "$runpathprefix"; then
  RUNPTH_FINAL=`$config_dir/ldflags "$LDneedsWl" "$runpathprefix$tmp"`
  RUNPTH=`$config_dir/ldflags "$LDneedsWl" "$runpathprefix$TOP/$objdir
$dir_sep
fi

in the Configure/Makefile.SH in the pari package


(This shell script in turn, it is used by Configure to generate the
makefile for the specific plataform, in my case Olinux-i686/
Makefile  ), where it causes the lines
defining RUNPATH and RUNPATH_FINAL to be empty, so that no -rpath
option appears when running gcc

RUNPTH       =
RUNPTH_FINAL =

I've checked that the generated static version of gp in local/bin/gp
works.

To check the linking, ldd on it reports the following:

ldd gp
        linux-gate.so.1 =>  (0xffffe000)
        libreadline.so.5 => /hdc1/pablo.hdc1/mathsoft2/sage-2.1.4/
local/lib/libreadline.so.5 (0xb7ed7000)
        libncurses.so.5 => /lib/libncurses.so.5 (0xb7e54000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7e50000)
        libm.so.6 => /lib/libm.so.6 (0xb7e28000)
        libgmp.so.3 => /hdc1/pablo.hdc1/mathsoft2/sage-2.1.4/local/lib/
libgmp.so.3 (0xb7df2000)
        libc.so.6 => /lib/libc.so.6 (0xb7ca9000)
        /lib/ld-linux.so.2 (0xb7f05000)


After that, I've succeded in creating a knew package by runing the
script spkg-dist and continue the compilation of Sage by running make

(I know this is a horrible hack, probably a conditional statement is
needed, acording to the operative system and architecture, or even a
more inteligent test that check if gcc accepts -rpath or -Wl,-path as
options. but at least might help you to find out the cause of the
problem.

best regards,
Pablo De Napoli


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to