This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
problem building 3.2 on solaris 2.8 systems
- From: George dot R dot Goffe at seagate dot com
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 4 Jun 2002 15:44:31 -0700
- Subject: problem building 3.2 on solaris 2.8 systems
Howdy,
I'm having a heck of a problem getting any of the gcc's to build on my
systems. I've tried 3.0.4, a pkg'd 3.1, all without binutils by the way. I
have the same failure on solaris 2.7, 2.8, and 2.9. I have a complete build
log which shows the problem which is basically that configure in the
libjava directory fails to find netdb.h and socket.h even thought they are
in the "normal" place /usr/include.
I have gotten around the problem by changing the config.h.in file in the
libjava directory by forcing the following 3 defines (#define
HAVE_SOCKLEN_T, #define HAVE_NETDB_H, #define HAVE_SYS_SOCKET_H).
To say the least, this is not very eligant but it has one redeeming
quality; it works.
Could any of you wizzards give me a helping hand please?
Regards,
George...
Here's the build script I'm using:
#!/bin/sh -xv
date
if [ $# = 0 ]
then
ncpus=1
else
ncpus=$1
fi
sysver=`uname -s`
syslvl=`uname -r`
osname=$sysver.$syslvl
case $osname in
SunOS.5.5)
osname="$sysver.5.5"
;;
SunOS.5.5.1)
osname="$sysver.5.5.1"
;;
SunOS.5.6)
osname="$sysver.5.6"
;;
SunOS.5.7)
osname="$sysver.5.7"
;;
SunOS.5.8)
osname="$sysver.5.8"
;;
SunOS.5.9)
osname="$sysver.5.9"
;;
*)
printf "%s" 'Wrong system level encountered...'
exit 86
esac
PATH=/usr/lsd/$osname/bin:/usr/local/bin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin
#PATH=/usr/local/bin:/usr/lsd/$osname/bin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin
export PATH
CONFIG_SHELL=/usr/bin/ksh
export CONFIG_SHELL
which configure
which gcc
gcc --version
which as
as --version
which ld
ld --version
# uname -m = sun4u
# uname -p = sparc
# uname -r = 5.8
#sysdir=`uname -p`"-"`uname -m`"-"
sysmfg=`uname -m | cut -b1-3`
sysarc=`uname -p`
sysrel=solaris`uname -r | tr '5' '2'`
echo $sysmfg
echo $sysarc
echo $sysrel
mkdir obj."$sysarc"-"$sysmfg"-"$sysrel"
cd obj."$sysarc"-"$sysmfg"-"$sysrel"
make distclean
../configure --prefix=/usr/lsd/$osname --verbose \
--x-includes=/usr/openwin/include \
--x-libraries=/usr/openwin/lib \
--with-libiconv-prefix=/usr/lsd/$osname
# --enable-libgcj \
# --disable-multilib \
# --with-gnu-ld \
# --with-ld=/usr/lsd/$osname/bin/ld \
# --with-gnu-as \
# --with-as=/usr/lsd/$osname/bin/as
make -j $ncpus bootstrap
make -j $ncpus depend
make -j $ncpus
#make install
date
exit 0