[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help installing guile from source
From: |
Kaushal Modi |
Subject: |
Re: Help installing guile from source |
Date: |
Fri, 13 Oct 2017 16:51:13 +0000 |
I was able to finally install guile, yay!
On Fri, Oct 13, 2017 at 8:01 AM Kaushal Modi <address@hidden> wrote:
> So I don't know what these warnings mean:
>
> libtool: warning: '/home/kmodi/stowed/lib/libgc.la' seems to be moved
> libtool: warning: '/home/kmodi/usr_local/6/lib64/libffi.la' seems to be
> moved
> libtool: warning: '/home/kmodi/stowed/lib/libunistring.la' seems to be
> moved
> libtool: warning: '/home/kmodi/stowed/lib/libgmp.la' seems to be moved
> libtool: warning: '/home/kmodi/stowed/lib/libltdl.la' seems to be moved
>
> Are those warnings OK to ignore? If so, what does the below error mean?
>
Apparently those can be ignored, because the guile interpreter seems to
work fine.
> /usr/bin/ld: /home/kmodi/usr_local/6/lib/libncurses.a(lib_termcap.o):
> relocation R_X86_64_32S against `_nc_globals' can not be used when making a
> shared object; recompile with -fPIC
> /home/kmodi/usr_local/6/lib/libncurses.a: could not read symbols: Bad value
> collect2: error: ld returned 1 exit status
>
I fixed that by building ncurses with -fPIC (as the error hints).
Here's my ncurses build script with notes, if it helps someone:
ncurses_install_dir="${STOW_PKGS_ROOT}/ncurses/6.0"
# Fri Oct 13 08:10:02 EDT 2017 - kmodi
# -fPIC is added because building guile failed with this error:
# /usr/bin/ld: /home/kmodi/usr_local/6/lib/libncurses.a(lib_termcap.o):
relocation R_X86_64_32S against `_nc_globals' can not be used when making a
shared object; recompile with -fPIC
# /home/kmodi/usr_local/6/lib/libncurses.a: could not read symbols: Bad
value
# collect2: error: ld returned 1 exit status
# Also the INSTALL file says:
# If you have libtool installed, you can type
#
# ./configure --with-libtool
#
# to generate the appropriate static and/or shared libraries for your
platform
# using libtool.
# As I have libtool installed, adding that option too.
# -L${HOME}/usr_local/${MY_OSREV}/lib required for libgpm (GPM feature)
# --enable-widec is added because htop uses libncursesw
LDFLAGS="-L${HOME}/usr_local/${MY_OSREV}/lib
-L${HOME}/usr_local/${MY_OSREV}/lib64" \
CFLAGS="-fPIC" \
./configure --prefix="${ncurses_install_dir}" \
--enable-widec \
--with-libtool
make CFLAGS+=-fPIC
mkdir -p "${ncurses_install_dir}"
make install
--
Kaushal Modi