> Hi,
>
> After a long hiatus, I'm again trying to build things on freebsd.
>
> Seems I've got a good pull of the git.
>
> I then run
>   ./bootstrap
> then
>   ./configure --enable-maintainer-mode --enable-ft2232_libftdi
> --disable-doxygen-html
> then
>   gmake
> then I get error:
>   gmake[2]: Entering directory
> `/usr/home/steve/projects/include/freebsd/usr/ports/devel/openocd_port/work/openocd-0.4.20100103.237a707/doc'
>   ...
>   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.
>
> Am I missing a depend, or did I skip a build step required to generate
> version.texi?

Well, after a couple more bootstraps, configures, etc, that error
disappeared.  Probably when I exported LDFLAGS+=-L/usr/local/lib if I
had to guess.

Also, I needed to add

    #elif defined(__FreeBSD__)
             HostOs = "linux";

to line 1364 of src/helper/command.c, which I noticed is generated on
configure, so obviously, the fix really belongs elsewhere.

> Also, since the binary built, I ran it and got:
>    ....
>    Error: 24 1 tcl.c:1013 handle_interface_command(): The specified
> JTAG interface was not found (ft2232)
>    User : 25 1 command.c:527 command_print(): The following JTAG
> interfaces are available:
>    Debug: 26 1 command.c:608 run_command(): Command failed with error code 
> -101
>    ....
>
> I ran it with sudo, so it's not a permissions issue; perhaps
> --enable-ft2232_libftdi didn't take?

Missed the warning about libftdi < 0.16; upgraded to 0.17, and
everything's shiny....

So, to recap, looks like all I need is the tweak to command.c to
maintain freebsd compatibility.

Best,
Steve
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to