Undefined reference to gdbmi__scan_string when building CGDB from the latest git source

60 views
Skip to first unread message

MountainRider

unread,
Jul 30, 2012, 1:02:14 PM7/30/12
to cgdb...@googlegroups.com
Hello, cgdb-dev,

When I build CGDB from the latest git source, I get the following errors:

libgdbmi.a(gdbmi_parser.o): In function `gdbmi_parser_parse_string':
/home/work/debugging/cgdb/lib/gdbmi/gdbmi_parser.c:105: undefined reference to `gdbmi__scan_string'
/home/work/debugging/cgdb/lib/gdbmi/gdbmi_parser.c:110: undefined reference to `gdbmi_lex'
/home/work/debugging/cgdb/lib/gdbmi/gdbmi_parser.c:127: undefined reference to `gdbmi__delete_buffer'
libgdbmi.a(gdbmi_parser.o): In function `gdbmi_parser_parse_file':
/home/work/debugging/cgdb/lib/gdbmi/gdbmi_parser.c:162: undefined reference to `gdbmi_lex'
/home/work/debugging/cgdb/lib/gdbmi/gdbmi_parser.c:156: undefined reference to `gdbmi_in'
libgdbmi.a(gdbmi_grammar.o): In function `gdbmi_error':
/home/work/debugging/cgdb/lib/gdbmi/../../../../cgdb/lib/gdbmi/src/gdbmi_grammar.y:27: undefined reference to `gdbmi_lex'
/home/work/debugging/cgdb/lib/gdbmi/../../../../cgdb/lib/gdbmi/src/gdbmi_grammar.y:30: undefined reference to `gdbmi_text'
/home/work/debugging/cgdb/lib/gdbmi/../../../../cgdb/lib/gdbmi/src/gdbmi_grammar.y:30: undefined reference to `gdbmi_lineno'
libgdbmi.a(gdbmi_grammar.o): In function `gdbmi_push_parse':
/home/work/debugging/cgdb/lib/gdbmi/../../../../cgdb/lib/gdbmi/src/gdbmi_grammar.y:301: undefined reference to `gdbmi_text'
/home/work/debugging/cgdb/lib/gdbmi/../../../../cgdb/lib/gdbmi/src/gdbmi_grammar.y:197: undefined reference to `gdbmi_text'
collect2: ld returned 1 exit status
make[3]: *** [gdbmi_driver] Error 1
make[3]: Leaving directory `/home/work/debugging/cgdb/lib/gdbmi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/work/debugging/cgdb/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/work/debugging/cgdb'
make: *** [all] Error 2

The entire output of the build is attached.

--
Thank you,
David

make.log

MountainRider

unread,
Jul 30, 2012, 1:07:42 PM7/30/12
to cgdb...@googlegroups.com
Forgot to redirect stderr to stdout on the first log.

make.log

Mike Mueller

unread,
Aug 1, 2012, 1:46:12 AM8/1/12
to cgdb...@googlegroups.com
On Mon, Jul 30, 2012 at 10:07 AM, MountainRider
<david....@koe-americas.com> wrote:
> Forgot to redirect stderr to stdout on the first log.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "cgdb-dev" group.
> To post to this group, send email to cgdb...@googlegroups.com.
> To unsubscribe from this group, send email to
> cgdb-dev+u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cgdb-dev/-/grWrsL0OwRwJ.
>
> For more options, visit https://groups.google.com/groups/opt_out.

Hey David,

> libgdbmi.a(gdbmi_grammar.o): In function `gdbmi_error':
> /home/work/debugging/cgdb/lib/gdbmi/../../../../cgdb/lib/gdbmi/src/gdbmi_grammar.y:27:
> undefined reference to `gdbmi_lex'

It looks like you have some residual files from the old directory
layout (I did some serious house-cleaning recently). For example,
there is no directory lib/gdbmi/src anymore. Can you wipe your build
directory clean and try again?

Also, if you still have the link errors, please let me know if you
have flex installed, and which version if so.

Thanks,
Mike

--
Mike Mueller
mi...@subfocal.net
Reply all
Reply to author
Forward
0 new messages