Hi!
I justed cloned the repository and executed "make", which fails when linking:
gcc -Wl,-O2 -Wl,-E action.o atomic_ops.o basex.o bit_scan.o cfg_core.o cfg_parser.o core_cmd.o crc.o daemonize.o data_lump.o data_lump_rpl.o dns_cache.o dprint.o dset.o dst_blacklist.o endianness.o error.o flags.o ... parser/sdp/sdp_helpr_funcs.o rand/fastrand.o rand/isaac/rand.o cfg/cfg.o cfg/cfg_ctx.o cfg/cfg_script.o cfg/cfg_select.o cfg/cfg_struct.o lex.yy.o cfg.tab.o -ldl -lresolv -o ser cfg.tab.o: In function `yyparse': /home/darilion/software/siprouter/sip-router/cfg.tab.c:4478: multiple definition of `yyparse' y.tab.o:/home/darilion/software/siprouter/sip-router/y.tab.c:4527: first defined here collect2: ld returned 1 exit status make: *** [ser] Error 1
any hints?
thanks klaus
On Jun 29, 2009 at 13:11, Klaus Darilion klaus.mailinglists@pernau.at wrote:
Hi!
I justed cloned the repository and executed "make", which fails when linking:
gcc -Wl,-O2 -Wl,-E action.o atomic_ops.o basex.o bit_scan.o cfg_core.o cfg_parser.o core_cmd.o crc.o daemonize.o data_lump.o data_lump_rpl.o dns_cache.o dprint.o dset.o dst_blacklist.o endianness.o error.o flags.o ... parser/sdp/sdp_helpr_funcs.o rand/fastrand.o rand/isaac/rand.o cfg/cfg.o cfg/cfg_ctx.o cfg/cfg_script.o cfg/cfg_select.o cfg/cfg_struct.o lex.yy.o cfg.tab.o -ldl -lresolv -o ser cfg.tab.o: In function `yyparse': /home/darilion/software/siprouter/sip-router/cfg.tab.c:4478: multiple definition of `yyparse' y.tab.o:/home/darilion/software/siprouter/sip-router/y.tab.c:4527: first
^^^^^^^^^^^^ Why do you have a y.tab.c? sip-router compilation produces only cfg.tab.c. Did you run yacc or bison manually on cfg.y?
Try rm y.tab.c and see if it works. If it doesn't then send me the output of bison -V, y.tab.c and cfg.tab.c.
Andrei
Andrei Pelinescu-Onciul schrieb:
On Jun 29, 2009 at 13:11, Klaus Darilion klaus.mailinglists@pernau.at wrote:
y.tab.o:/home/darilion/software/siprouter/sip-router/y.tab.c:4527: first
^^^^^^^^^^^^
Why do you have a y.tab.c? sip-router compilation produces only cfg.tab.c. Did you run yacc or bison manually on cfg.y?
Try rm y.tab.c and see if it works. If it doesn't then send me the output of bison -V, y.tab.c and cfg.tab.c.
You are right - I have no idea what I have done wrong, maybe I have mixed up some old and new sip-router files.
Thanks Klaus