Open clock999 opened 3 years ago
@clock999 : on what system do you try to compile? macOS or Linux, what version/distro and what remake source file did you use?
HI,
This is the link where I downloaded the source: https://jaist.dl.sourceforge.net/project/bashdb/remake/4.3%2Bdbg-1.5/remake-4.3%2Bdbg-1.5.tar.gz.
My steps are just simple.
cd to remake-4.3+dbg-1.5 ./configure make
But I met the errors:
src/main.o: In function main': /home/wy/sw1/remake-4.3+dbg-1.5/src/main.c:2377: undefined reference to
dbg_cmd_info_targets'
/home/wy/sw1/remake-4.3+dbg-1.5/src/main.c:2386: undefined reference to dbg_cmd_info_targets' /home/wy/sw1/remake-4.3+dbg-1.5/src/main.c:2383: undefined reference to
dbg_cmd_info_tasks'
src/debugger/cmd.o: In function enter_debugger': /home/wy/sw1/remake-4.3+dbg-1.5/src/debugger/cmd.c:550: undefined reference to
add_history'
/home/wy/sw1/remake-4.3+dbg-1.5/src/debugger/cmd.c:551: undefined reference to dbg_cmd_step' /home/wy/sw1/remake-4.3+dbg-1.5/src/debugger/cmd.c:454: undefined reference to
cmd_initialize'
/home/wy/sw1/remake-4.3+dbg-1.5/src/debugger/cmd.c:547: undefined reference to add_history' /home/wy/sw1/remake-4.3+dbg-1.5/src/debugger/cmd.c:548: undefined reference to
execute_line'
/home/wy/sw1/remake-4.3+dbg-1.5/src/debugger/cmd.c:555: undefined reference to `dbg_cmd_quit'
@clock999 what distro / OS?
The os is ubuntu 16.04.
Install libreadline-dev
and it should compile fine (see #3) - it did for me at least.
Hello,
I am trying to use remake from the source code. But there is a build error while doing the compile. The error information is as below. I just run ./configure and make. Could you help with this? Thanks a lot!
gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -DHAVE_CONFIG_H -I. -g -O2 -MT main.o -MD -MP -MF $depbase.Tpo -c -o main.o main.c &&\ mv -f $depbase.Tpo $depbase.Po main.c: In function ‘main’: main.c:1493:14: warning: passing argument 2 of ‘error’ makes integer from pointer without a cast [-Wint-conversion] "warning: you specified a debugger option, but you don't have readline support"); ^ In file included from main.c:18:0: makeint.h:470:6: note: expected ‘size_t {aka long unsigned int}’ but argument is of type ‘char ’ void error (const gmk_floc flocp, size_t length, const char fmt, ...) ^ main.c:1492:7: error: too few arguments to function ‘error’ error (NILF, ^ In file included from main.c:18:0: makeint.h:470:6: note: declared here void error (const gmk_floc flocp, size_t length, const char fmt, ...) ^ main.c:1495:14: warning: passing argument 2 of ‘error’ makes integer from pointer without a cast [-Wint-conversion] "debugger support compiled in. Debugger options will be ignored."); ^ In file included from main.c:18:0: makeint.h:470:6: note: expected ‘size_t {aka long unsigned int}’ but argument is of type ‘char ’ void error (const gmk_floc flocp, size_t length, const char fmt, ...) ^ main.c:1494:7: error: too few arguments to function ‘error’ error (NILF,