1

I'm trying to install the realtek alc665 driver using the package realtek-linux-audiopack-4.06a for Linux on my laptop running Debian 10. (You can also view it directly through this link)

In order to install it, I've been following the instructions included in realtek-linux-audiopack-4.06a/Readme.txt file which says to run ./config in the directory where alsa-driver-1.0.14-4.06a is extracted. When I run ./configure the output from bash is: (Check out the last two lines)

checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/dsaki/Downloads/realtek-linux-audiopack-4.06a/alsa-         driver-1.0.14-4.06a
checking cross compile... 
checking for directory with kernel source... /lib/modules/4.19.0-8-amd64/source
checking for directory with kernel build... /lib/modules/4.19.0-8-amd64/build
checking for kernel linux/version.h... yes
checking for kernel linux/autoconf.h... yes
checking for kernel version... 0.0.0
checking for GCC version... ./configure: eval: line 4836: syntax error near unexpected token `)'
./configure: eval: line 4836: `my_compiler_version=8.3.0-6)'

Here is the file configure in which the error has occurred. I've written down the whole part that I guess is responsible for the error: (Line 4836 is shown by a comment)

      typevar=my_compiler_type
      versionvar=my_compiler_version
      ac_compiler_type=""
      ac_compiler_version=""
      for i in $my_compiler; do
        case $i in
        gcc-[0-9]*|*-gcc-[0-9]*)
         if test -z "$ac_compiler_type"; then
           ac_compiler_type=gcc
         fi
         if test -z "$ac_compiler_version"; then
           ac_compiler_version=`echo $i | sed -e 's/^.*gcc-\([0-9.]\+\).*$/\1/'`
         fi
         ;;
        *gcc*|*GCC*)
          if test -z "$ac_compiler_type"; then
           ac_compiler_type=gcc
          fi
          ;;
        egcs-*)                            #    LINE 4836 STARTS HERE
         ac_compiler_type=egcs
         if test -z "$ac_compiler_version"; then
           ac_compiler_version=`echo $i | sed -e 's/egcs-\(.\+\)$/\1/'`
         fi
         ;;
        *cc*)
         if test -z "$ac_compiler_type"; then
           ac_compiler_type=cc
         fi
         ;;
       [0-9].[0-9]*)
         if test -z "$ac_compiler_version"; then
           ac_compiler_version="$i"
         fi
         ;;
       esac
    done
    eval $typevar="$ac_compiler_type"
    eval $versionvar="$ac_compiler_version"

I need to fix this to be able to proceed the installation.

11
  • 2
    Please edit your question and add a link to what you are trying to install. Where did you find this script? It doesn't look like the error is from the line you show, so we'll need to see the whole thing.
    – terdon
    Mar 18, 2020 at 18:13
  • Also, try editing and adding some debug messages. Your $ac_compiler_version variable, which is being set in the section you show, seems to be getting an extra parenthesis. If you add an echo statement to each of the cases there, you should be able to see which one is being run and setting your variable so we can focus on that one. Even better, of course, would be to report this bug to wherever you found this script.
    – terdon
    Mar 18, 2020 at 18:16
  • You need to find a line containing my_compiler_version= that's around 4836 lines after an eval statement. Mar 18, 2020 at 18:21
  • @roaima, worse, it could be eval "$somevar", with a multi-line variable
    – ilkkachu
    Mar 18, 2020 at 19:17
  • 1
    @roaima I'm pretty sure it's the next to last line shown in the question: eval $typevar="$ac_compiler_type". If $ac_compiler_type evaluates to something with a trailing ), that would explain the error. But we'd need to know the values of $my_compiler to debug further.
    – terdon
    Mar 18, 2020 at 19:57

0

You must log in to answer this question.

Browse other questions tagged .