Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • BIND BIND
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 577
    • Issues 577
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 116
    • Merge requests 116
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • BINDBIND
  • Issues
  • #2873
Closed
Open
Issue created Aug 19, 2021 by Michael Osipov@michael-o

configure.ac in 9.11.35 contains a syntactically invalid test

Summary

My shell tells me:

Compiler: /opt/aCC/bin/aCC -Ae -Ae -z
./configure[136]: ==: A test command parameter is not valid.
    aCC: HP C/aC++ B3910B A.06.29 [Oct 18 2016]

BIND version used

9.11.35

Steps to reproduce

Run configure with a non-GCC compiler

What is the current bug behavior?

Test is not executed.

What is the expected correct behavior?

Test is not executed.

Relevant configuration files

I have reported the same issue with MIT Kerberos seven years ago: https://github.com/krb5/krb5/commit/fefd465614f11f374f5ff183e6eb6cbc1b550de5

Possible fixes

# diff -u configure.ac.orig configure.ac
--- configure.ac.orig   2021-08-19 22:44:23 +0000
+++ configure.ac        2021-08-19 22:45:46 +0000
@@ -5257,7 +5257,7 @@
               [
                 SO_CFLAGS="-fPIC"
               ])
-       AS_IF([test "$GCC" = "yes"],[
+       AS_IF([test "X$GCC" = "Xyes"],[
               SO_CFLAGS="-fPIC"
               AS_IF([test -z "$SO_LD"],
                     [AS_IF([test "$use_libtool" = "yes"],[
@@ -5769,7 +5769,7 @@
     echo "    localstatedir: $localstatedir"
     echo "-------------------------------------------------------------------------------"
     echo "Compiler: $CC"
-    if test "yes" == "$GCC"; then
+    if test "X$GCC" = "Xyes" ; then
        $CC --version 2>&1 | sed 's/^/    /'
     else
        case "$host_os" in

I have also applied the same pattern done by other $GCC checks.

Assignee
Assign to
Time tracking