[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ccc + slink = segfault




At least, "Make_compconfig_file $Latest" must be inserted.

In my case, I replaced all "alpha-redhat-linux" to "alpha-linux"
in this script, and then I renamed alpha-redhat-linux to alpha-linux
and added a symbolic link in ccc-6.2.0/usr/lib/compaq/ccc-6.2

drwxr-xr-x   5 root     staff        4096 Sep 11 05:07 alpha-linux/
lrwxrwxrwx   1 root     root           11 Sep 15 07:10 alpha-redhat-linux -> alpha-linux/


P.S.
	You may get this deb file from

	http://www.smlab.sci.gunma-u.ac.jp/~miyazawa/tmp/

	(This deb file includes other modifications.)

*** create-comp-config.sh	Wed Sep 15 07:21:47 1999
--- create-comp-config.sh.ORIG	Fri Sep  3 15:11:16 1999
***************
*** 22,36 ****
  #  *****************************************************************
  #
  CCC_VERSION=ccc-6.2
! CCC_ROOT=${CPQ_COMP_ROOT}/usr/lib/compaq/${CCC_VERSION}/alpha-linux
! EGCS_ROOT=/usr/lib/gcc-lib/alpha-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-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}"
--- 22,36 ----
  #  *****************************************************************
  #
  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
  
  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"
    #
    # Create a backup of one that is already there and different
    COMPCONFIG="${RELOCATE_LD} $2 | ${SYS_INCDIR} ${SYS_LIBDIR}"
***************
*** 70,76 ****
  elif [ ${Latest} = ${Experimental} ]
  then
      echo "Info: using this kit with ${Latest} is not as well-tested as ${Supported}" 1>&2
-     Make_compconfig_file $Latest
  else
      echo "Warning: using this kit with ${Latest} is completely untested, good luck." 1>&2
      Make_compconfig_file $Latest
--- 70,75 ----


Reply to: