This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Guile & PR



>>>>> "Greg" == Greg Harvey <Greg.Harvey@thezone.net> writes:

    Greg> Bernard URBAN <Bernard.Urban@meteo.fr> writes:
    >>  Yes, at least on several popular platforms (Solarix, Linux,
    >> HPPA...).  Should be extensible to evey platform supporting
    >> emacs, as the unexec code used is borrowed from there.
    >> 
    >> How to do it: 1) get guile-hobbit-1.3.2 and install it. This
    >> will install in BINDIR an executable tguile.

    Greg> This is a slight problem, though:

    Greg> Making all in unexec make[1]: Entering directory
    Greg> `/home/greg/src/guile-hobbit-1.3.2/unexec' gcc
    Greg> -DSTDC_HEADERS=1 -I. -I.  -I.. -I/usr/local/include
    Greg> -I/usr/local/include/guile -g -O2 -c gmalloc.c gcc -o .o
    Greg> gcc: No input files make[1]: *** [.o] Error 1 make[1]:
    Greg> Leaving directory `/home/greg/src/guile-hobbit-1.3.2/unexec'
    Greg> make: *** [all-recursive] Error 1

    Greg> Problem seems to be UNEXEC isn't being set, so
    Greg> libunexec_a_SOURCES is set to gmalloc.c .c

Yes, this happened to me as I switched from glibc1 to glibc2 on Linux.
It is a simple configure.in problem, I was too specific in writing it.
Here is the end of configure.in in guile-hobbit-1.3.3b which solves
this problem::

case $host_vendor in
    hp)
        UNEXEC=unexhp9k800
        TFLAGS="-Wl,-a -Wl,archive_shared -ldld"
        ;;
    sun)
        UNEXEC=unexelf
        TFLAGS=
        ;;
    *)
        case $host_os in
            linux-gnu*)
                UNEXEC=unexelf
                TFLAGS="-Wl,-u -Wl,free"
                ;;
            *)
                echo "Unexec pas defini"
                exit 1
                ;;
        esac
        ;;
esac
AC_SUBST(UNEXEC)
AC_SUBST(TFLAGS)

--

B. Urban