Menu

Undefined errors

Help
2014-07-21
2015-08-23
  • Sivaprasad Addepalli

    I tried to install the remake, facing below errors. Please help us to resolve those:
    Version used : remake-3.82+dbg0.9
    Errors : cc -g -O2 -o make ar.o arscan.o commands.o default.o dir.o expand.o file.o function.o getopt.o getopt1.o implicit.o job.o main.o misc.o read.o remake.o remote-stub.o rule.o signame.o strcache.o variable.o version.o vpath.o hash.o buildargv.o debug.o print.o trace.o break.o cmd.o fns.o file2line.o msg.o stack.o -lrt
    main.o: In function main': /home/xsivaad/proj-remake/remake-3.82+dbg0.9/main.c:2457: undefined reference todbg_cmd_info_targets'
    /home/xsivaad/proj-remake/remake-3.82+dbg0.9/main.c:2462: undefined reference to dbg_cmd_info_targets' cmd.o: In functionenter_debugger':
    /home/xsivaad/proj-remake/remake-3.82+dbg0.9/debugger/cmd.c:496: undefined reference to add_history' /home/xsivaad/proj-remake/remake-3.82+dbg0.9/debugger/cmd.c:497: undefined reference toexecute_line'
    /home/xsivaad/proj-remake/remake-3.82+dbg0.9/debugger/cmd.c:499: undefined reference to add_history' /home/xsivaad/proj-remake/remake-3.82+dbg0.9/debugger/cmd.c:500: undefined reference todbg_cmd_step'
    /home/xsivaad/proj-remake/remake-3.82+dbg0.9/debugger/cmd.c:504: undefined reference to dbg_cmd_quit' /home/xsivaad/proj-remake/remake-3.82+dbg0.9/debugger/cmd.c:403: undefined reference tocmd_initialize'
    collect2: ld returned 1 exit status
    make[2]: [make] Error 1
    make[2]: Leaving directory /home/xsivaad/proj-remake/remake-3.82+dbg0.9' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/xsivaad/proj-remake/remake-3.82+dbg0.9'
    make: [all] Error 2

     
  • Sivaprasad Addepalli

    Is this supported only for 64 bit machines.

    I tried to install this using 32 bit gcc compiler, will it be ok ?

     
  • Rocky Bernstein

    Rocky Bernstein - 2014-07-22

    The message:

    undefined reference to add_history

    generally means you don't have the libhistory library which is part of GNU ReadLine.

    When you ran the configure script, it should have reported whether or not if found GNU ReadLine support history. The message before checking is

    checking whether readline supports history...
    

    Given what you got, I suppose the configuration should have errored out rather than give just a warning. I'll have to check this though.

    Finally, this doesn't feel like a "discussion" but rather, a request for help. There is a help mailing list. There is also an issue tracker for remake in git. Given this, move the "discussion" there. I don't think I want to participate any further in this forum about this.

     
  • Sivaprasad Addepalli

    Thanks for the information. But I want to know whether we can install with 32 bit gcc or not, because when I installed with gcc 64 bit, I didn't see these errors.

    • I tried with 64bit gcc and used m32 option, in this case also I am able to get errors.
    • When installed with 32bit gcc, errors are seen.

    -When using 64 bit gcc, it is success, but final executable is also 64 bit, but we want 32 bit remake executable.

     

Log in to post a comment.