Subject: Re: [suse-axp] ccc on SuSE?
From: Norbert Eicker (eicker@theorie.physik.uni-wuppertal.de)
Date: Thu Oct 14 1999 - 06:15:32 PDT
Hi list,
I think I made some advance in making ccc run on SuSE 6.1!
First of all you have to build a new libc (question to SuSE: what's
the cause of libNoVersion not being in shlibs on alpha ?):
- Install libc.spm
- Apply the following patch to libc.spec (maybe you should also change
'Release:'):
----------------------------------------------------------------------
--- libc.spec.orig Wed Jun 9 06:36:34 1999
+++ libc.spec Wed Oct 13 15:00:00 1999
@@ -25,7 +25,7 @@
BuildRoot: /tmp/glibc_build
Source: glibc-2.1.tar.gz
Source1: glibc-crypt-2.1.tar.gz
-Source2: http://www.suse.de/~kukuk/linux/glibc/glibc-nss-v1-2.0.2.tar.gz
+Source2: glibc-nss-v1-2.0.2.tar.gz
Source3: noversion.tar.gz
Source4: manpages.tar.gz
Patch: glibc-2.1.dif
@@ -250,15 +250,9 @@
Zack Weinberg <zack@rabi.phys.columbia.edu>
%prep
-%ifarch i386
%setup -n glibc-2.1 -a 1 -a 2 -a 3 -a 4
-%else
-%setup -n glibc-2.1 -a 1 -a 2 -a 4
-%endif
%patch -P 0 -P 2
-%ifarch i386
%patch -P 1 -p1
-%endif
case `/usr/share/automake/config.guess` in
*alpha*)
system=alpha-unknown-linux
@@ -331,9 +325,7 @@
ln -s ../../lib/libdb.so.2 $RPM_BUILD_ROOT/usr/lib/libdb1.so
;;
esac
-%ifarch i386
rm -f /usr/lib/libNoVersion*
-%endif
find $RPM_BUILD_ROOT > /filelist
Check
%clean
@@ -464,10 +456,8 @@
/usr/bin/tzselect
/usr/sbin/rpcinfo
/usr/sbin/utmpd
-%ifarch i386
/usr/sbin/nscd
/lib/libNoVersion.so.1
-%endif
%files -n nssv1
/lib/libnss_files.so.1*
/lib/libnss_dns.so.1*
----------------------------------------------------------------------
- build the package using 'rpm -bb libc.spec'
You will get a new shlibs-package in /usr/src/packages/RPMS/alpha/ now
containing '/lib/libNoVersion.so.1'. Just replace the one from SuSE
with it.
I haven't tested it very hard but it works at least for the
Compaq-Compiler (of course you can also log in... :-)).
If you don't want to set the link Martin suggested you can also apply
the following patch to the configuration script (i.e.
'/usr/lib/compaq/ccc-6.2/alpha-redhat-linux/bin/create-comp-config.sh'):
----------------------------------------------------------------------
--- create-comp-config.sh.orig Fri Sep 10 16:48:43 1999
+++ create-comp-config.sh Wed Oct 13 13:26:05 1999
@@ -23,14 +23,14 @@
#
CCC_VERSION=ccc-6.2
CCC_ROOT=${CPQ_COMP_ROOT}/usr/lib/compaq/${CCC_VERSION}/alpha-redhat-linux
-EGCS_ROOT=/usr/lib/gcc-lib/alpha-redhat-linux
+EGCS_ROOT=/usr/lib/gcc-lib/alpha-unknown-linux
Make_compconfig_file()
{
# RELOCATE_LD="-tl -h$1 -B"
RELOCATE_LD=""
- SYS_INCDIR="-SysIncDir ${CCC_ROOT}/include -SysIncDir /usr/local/include -SysIncDir /usr/alpha-redhat-linux/include -SysIncDir $1/include"
- SYS_LIBDIR="-L${CCC_ROOT}/lib -L/usr/local/lib -L/usr/alpha-redhat-linux/lib -L$1"
+ SYS_INCDIR="-SysIncDir ${CCC_ROOT}/include -SysIncDir /usr/local/include -SysIncDir /usr/alpha-linux/include -SysIncDir $1/include"
+ SYS_LIBDIR="-L${CCC_ROOT}/lib -L/usr/local/lib -L/usr/alpha-linux/lib -L$1"
#
# Create a backup of one that is already there and different
COMPCONFIG="${RELOCATE_LD} $2 | ${SYS_INCDIR} ${SYS_LIBDIR}"
----------------------------------------------------------------------
Then rerun this script.
Now you have to change the symlinks 'crtbegin.o' and 'crtend.o' in
'/usr/lib/compaq/ccc-6.2/alpha-redhat-linux/bin/'. The following
settings work fine for me:
----------------------------------------------------------------------
lrwxrwxrwx 1 root root 60 Oct 13 13:37 crtbegin.o -> /usr/lib/gcc-lib/alpha-unknown-linux/egcs-2.91.66/crtbegin.o
lrwxrwxrwx 1 root root 58 Oct 13 13:37 crtend.o -> /usr/lib/gcc-lib/alpha-unknown-linux/egcs-2.91.66/crtend.o
----------------------------------------------------------------------
Ciao,
Norbert
-- To unsubscribe, e-mail: suse-axp-unsubscribe@suse.com For additional commands, e-mail: suse-axp-help@suse.com
This archive was generated by hypermail 2a22 : Thu Nov 04 1999 - 16:56:59 PST