Menu

#9 Syntax error for assignment of rodentman1dir in configure and m4/rfm-conditionals.m4

dbh
closed-fixed
None
5
2017-03-23
2017-03-23
J G Miller
No

When executing configure, the following error message appears

/bin/sh /usr/src/build/libdbh2-5.0.22/configure --enable-gtk-doc --prefix="/usr/local"
checking for Linux or BSD... /usr/src/build/libdbh2-5.0.22/configure: line 2578: rodentman1dir: command not found

The problem is that this line is an assignment but incorrectly contains spaces around the equals sign.

There are two places where this typographic syntactic error have been made for an assignment of the value of rodentman1dir in in rfm-conditions.m4, so the patch to apply is

--- m4/rfm-conditionals.m4.orig 2015-04-22 22:28:30.000000000 +0100
+++ m4/rfm-conditionals.m4  2015-04-22 22:28:30.000000000 +0100
@@ -358,7 +358,7 @@

 if test x"$os" != x ; then 
     AC_MSG_RESULT([System is BSD.])
-    rodentman1dir = ${prefix}/man/man1
+    rodentman1dir=${prefix}/man/man1
     AC_MSG_CHECKING(for gmake);
     result_gmake=`gmake --version`
     if test x"${result_gmake}" = x; then
@@ -371,7 +371,7 @@
     CFLAGS="$CFLAGS -I/usr/local/include"
     LDFLAGS="$LDFLAGS  -L/usr/local/lib"
 else 
-   rodentman1dir = ${mandir}/man1
+   rodentman1dir=${mandir}/man1
    ac_uname_s=`uname -s`
    if test "$ac_uname_s" = "Linux" ; then
    AC_DEFINE_UNQUOTED([THIS_IS_LINUX], [1], [Define if system is Linux kernel and posix shared memory is at /dev/shm])

and then run autogen.sh to create the corrected configure script.

Discussion

  • Edscott Wilson Garcia

    • status: open --> closed-fixed
    • assigned_to: Edscott Wilson Garcia
     
  • Edscott Wilson Garcia

    fixed on git revision d582e1d..a628509

     

Log in to post a comment.

MongoDB Logo MongoDB