Linux build error .. help please

Hi All,

I am building openocd for the 1st time (latest git from today). I have the following compile error:

make[6]: Entering directory `/home/bmentink/opt/Arm Tools/openocd/src/jtag'
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../src -I../../src   -g -O2 -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -MT core.lo -MD -MP -MF .deps/core.Tpo -c -o core.lo core.c
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -g -O2 -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -MT core.lo -MD -MP -MF .deps/core.Tpo -c core.c -o core.o
cc1: warnings being treated as errors
core.c: In function ‘adapter_init’:
core.c:1360:22: error: declaration of ‘jtag_only’ shadows a global declaration
interface.h:295:20: error: shadowed declaration is here
make[6]: *** [core.lo] Error 1
make[6]: Leaving directory `/home/bmentink/opt/Arm Tools/openocd/src/jtag'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/bmentink/opt/Arm Tools/openocd/src/jtag'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/bmentink/opt/Arm Tools/openocd/src/jtag'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/bmentink/opt/Arm Tools/openocd/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/bmentink/opt/Arm Tools/openocd/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bmentink/opt/Arm Tools/openocd'
make: *** [all] Error 2

I tried commenting out the offending line in core.c and it got past that point, but not sure that was the right thing to do. I am not sure where

to find interface.h.

Also, the build failed later on building the doc files … could not find version.texi

error is:

         $restore $backupdir/* `echo "./openocd.info" | sed 's|[^/]*$||'`; \
        fi; \
        rm -rf $backupdir; exit $rc
openocd.texi:12: @include `version.texi': No such file or directory.
openocd.texi:37: warning: undefined flag: VERSION.
openocd.texi:38: warning: undefined flag: UPDATED.
openocd.texi:58: warning: undefined flag: VERSION.
openocd.texi:59: warning: undefined flag: UPDATED.
makeinfo: Removing output file `openocd.info' due to errors; use --force to preserve.
make[2]: *** [openocd.info] Error 1
make[2]: Leaving directory `/home/bmentink/opt/Arm Tools/openocd/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bmentink/opt/Arm Tools/openocd'
make: *** [all] Error 2

Is the latest git broke?

Thanks,

Bernie