This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Insight broken with latest tcl/tk


Gene Smith wrote:
> Dave Lawrence wrote:
>> I also tried a snapshot of the latest insight sources, attempting to
>> build these gives me various undefined references at build time, I'll
>> list a few below:
>> c_parse
>> c_error
>> f_parse
>> f_error
>> objc_parse
>> java_error
>>
> 
> With the current CVS head I get this error. "read_pc" function (function
> ptr?) is implicitly declared. How would you fix this? This is u9.04 and
> x86_64.
> 
> gdb/../bfd -I../../insight_sources/gdb/../include -I../libdecnumber
> -I../../insight_sources/gdb/../libdecnumber
> -I../../insight_sources/gdb/gnulib -Ignulib  -DMI_OUT=1 -DTUI=1  -DGDBTK
>  -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
> -Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts -Werror
> -c -o gdbtk-cmds.o -MT gdbtk-cmds.o -MMD -MP -MF .deps/gdbtk-cmds.Tpo
> -I../../insight_sources/gdb/../libgui/src
> -I/home/gene/insight/insight_sources/tcl/generic
> -I/home/gene/insight/insight_sources/tk/generic
> -DGDBTK_LIBRARY=\"/home/gene/eabi/install/share/insight1.0\"
> -DSRC_DIR=\"/home/gene/insight/insight_sources/gdb\"
> ../../insight_sources/gdb/gdbtk/generic/gdbtk-cmds.c
> cc1: warnings being treated as errors
> ../../insight_sources/gdb/gdbtk/generic/gdbtk-cmds.c: In function ‘gdb_loc’:
> ../../insight_sources/gdb/gdbtk/generic/gdbtk-cmds.c:2147: error:
> implicit declaration of function ‘read_pc’
> make[2]: *** [gdbtk-cmds.o] Error 1

Well, I forced it to ignore errors but now on link I get undefined
reference to read_pc:
gcc -Wno-error      \
                -o gdb gdb.o libgdb.a \
                  ../sim/arm/libsim.a ../readline/libreadline.a
../opcodes/libopcodes.a ../bfd/libbfd.a  ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a   ../libgui/src/libgui.a
-L/home/gene/insight/insight_build/tk/unix -ltk8.4
-L/home/gene/insight/insight_build/tcl/unix -ltcl8.4   -lX11 -ldl
-lieee -lm -lncurses -lm     -lpython2.6  ../libiberty/libiberty.a
gnulib/libgnu.a
libgdb.a(gdbtk-cmds.o): In function `gdb_loc':
gdbtk-cmds.c:(.text+0x3503): undefined reference to `read_pc'
gdbtk-cmds.c:(.text+0x3533): undefined reference to `read_pc'
collect2: ld returned 1 exit status

I give up!




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]