[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gcl-devel] Re: [ 101720 ] gcl 2.4.4 compile problems solaris 8
From: |
Camm Maguire |
Subject: |
[Gcl-devel] Re: [ 101720 ] gcl 2.4.4 compile problems solaris 8 |
Date: |
09 Jan 2003 21:14:45 -0500 |
Greetings! Just cd into gmp3 first thing, configure there with
--build=sparc-unknown-solaris2.8 or equivalent (i.e. *not*
sparc64-...), cd .., and configure and build gcl as normal.
Here is my autobuild script for sparc solaris:
=============================================================================
#!/bin/bash
set -e
export PATH=$HOME/bin:/usr/ccs/bin/:$PATH
HAVE=$(ls -1rt gcl*tar.gz 2>/dev/null| tail -1l)
if [ "$HAVE" != "" ] ; then
mv $HAVE foo
rm -f gcl*tar.gz
mv foo $HAVE
fi
RHAVE=$(
(
ftp ftp.debian.org <<EOF
cd debian/pool/main/g/gcl
ls -1rt
quit
EOF
) | grep tar.gz | tail -1l)
if [ "$HAVE" != "$RHAVE" ] ; then
ftp ftp.debian.org <<EOF1
cd debian/pool/main/g/gcl
bin
get $RHAVE
quit
EOF1
rm -f $HAVE
HAVE=$RHAVE
fi
export NAME="gcl_$(echo $HAVE | cut -f2 -d_ | sed 's,.tar.gz,,1').solaris"
if [ -e $NAME.tgz ] ; then
exit 0
fi
rm -f gcl*solaris.tgz
gzcat $HAVE | tar xf -
DIR=$(echo $HAVE | cut -f1 -d\- | tr '_' '-')
rm -rf gcl
mv $DIR gcl
cd gcl
./configure --disable-statsysbfd --enable-locbfd
cd gmp3
./configure --build=sparc-sun-solaris2.8
cd ..
make
rm -rf tmp
mkdir tmp
make install DESTDIR=$(pwd)/tmp
cd tmp
tar cf $HOME/$NAME.tar .
cd $HOME
gzip $NAME.tar
mv $NAME.tar.gz $NAME.tgz
exit 0
=============================================================================
And here are the gnu utils I keep in $HOME/bin:
-----------------------------------------------------------------------------
total 3648
-rwxr-xr-x 1 camm 37776 Oct 31 18:32 at
-rwxr-xr-x 1 camm 935 Oct 31 18:33 bgcl
-rwxr-xr-x 1 camm 222538 Nov 13 20:00 cpp
lrwxrwxrwx 1 camm 13 Oct 25 15:59 gcc -> /lusr/bin/gcc
-rwxr-xr-x 1 camm 231061 Oct 27 16:05 grep
-r-xr-xr-x 1 camm 31608 Oct 31 17:23 m4
-rwxr-xr-x 1 camm 440884 Sep 19 10:12 make
-rwxr-xr-x 1 camm 512729 Oct 27 16:04 makeinfo
-rwxr-xr-x 1 camm 2068381 Sep 20 18:02 objdump
-rwxr-xr-x 1 camm 145609 Oct 27 16:06 texi2html
-----------------------------------------------------------------------------
Take care,
address@hidden writes:
> Support Request #101720, was updated on 2003-Jan-08 17:09
> You can respond by visiting:
> http://savannah.gnu.org/support/?func=detailsupport&support_id=101720&group_id=879
>
> Category: None
> Status: Open
> Priority: 5
> Summary: gcl 2.4.4 compile problems solaris 8
>
> By: gth
> Date: 2003-Jan-08 17:09
> Logged In: NO
> Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003
>
> normal ./configure make sequence creates a 32 bit main.o
> and a 64 bit gmp which leads to the dreaded:
>
> ld: fatal: file ../o/main.o: wrong ELF class: ELFCLASS32
>
> (if I add -m64 into makedefs)
>
> # for main link of raw_gcl
> LIBS= -lm -m64 -lsocket -lnsl -lreadline -lncurses
>
> or if I leave makedefs alone
>
> ld: warning: file ../gmp/libgmp.a(mp_set_fns.o): wrong
> ELF class: ELFCLASS64
>
>
> How can I work around this?
>
> ----------------------------------------------------------------------
> You can respond by visiting:
> http://savannah.gnu.org/support/?func=detailsupport&support_id=101720&group_id=879
>
>
--
Camm Maguire address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah
- [Gcl-devel] Re: [ 101720 ] gcl 2.4.4 compile problems solaris 8,
Camm Maguire <=