Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile the source code #122

Open
clock999 opened this issue Aug 2, 2021 · 5 comments
Open

Failed to compile the source code #122

clock999 opened this issue Aug 2, 2021 · 5 comments

Comments

@clock999
Copy link

clock999 commented Aug 2, 2021

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,

@boretom
Copy link
Collaborator

boretom commented Sep 26, 2021

@clock999 : on what system do you try to compile? macOS or Linux, what version/distro and what remake source file did you use?

@clock999
Copy link
Author

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'

@boretom
Copy link
Collaborator

boretom commented Oct 25, 2021

@clock999 what distro / OS?

@clock999
Copy link
Author

The os is ubuntu 16.04.

@boretom
Copy link
Collaborator

boretom commented Oct 26, 2021

Install libreadline-dev and it should compile fine (see #3) - it did for me at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants