GNS3 / iouyap

Bridge IOU to UDP, TAP and Ethernet.
GNU General Public License v3.0
24 stars 12 forks source link

Can't build iouyap on ubuntu 12.04 #11

Closed herzcthu closed 9 years ago

herzcthu commented 9 years ago

I've cloned latest source code. Build on ubuntu 12.04 not works.

$ make gcc -I -g -DDEBUG -Wall -c -o iouyap.o iouyap.c bison -y -d netmap_parse.y mv -f y.tab.c netmap_parse.c gcc -I -g -DDEBUG -Wall -c -o netmap_parse.o netmap_parse.c flex -t netmap_scan.l > netmap_scan.c gcc -I -g -DDEBUG -Wall -c -o netmap_scan.o netmap_scan.c gcc -I -g -DDEBUG -Wall -c -o netmap.o netmap.c gcc -I -g -DDEBUG -Wall -c -o config.o config.c gcc -I iouyap.o netmap_parse.o netmap_scan.o netmap.o config.o -liniparser -lpthread -o iouyap /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 11 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 12 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 12 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 13 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 14 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 15 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 16 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 17 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 18 has invalid symbol index 13 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 21 /usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_line): relocation 0 has invalid symbol index 2 /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In function _start': (.text+0x20): undefined reference tomain' netmap_parse.o: In function yyparse': netmap_parse.c:(.text+0x82a): undefined reference tounpack_port' netmap_parse.c:(.text+0xd41): undefined reference to yap_verbose' netmap.o: In functionend_segment': netmap.c:(.text+0x614): undefined reference to yap_verbose' netmap.c:(.text+0x796): undefined reference toyap_verbose' netmap.o: In function add_node': netmap.c:(.text+0x8c8): undefined reference toyap_verbose' netmap.c:(.text+0xa5a): undefined reference to yap_appl_id' netmap.c:(.text+0xa8f): undefined reference topack_port' netmap.c:(.text+0xa9c): undefined reference to port_table' netmap.o: In functiondump_port_table': netmap.c:(.text+0xaec): undefined reference to port_table' netmap.c:(.text+0xb1b): undefined reference tounpack_port' netmap.c:(.text+0xb4f): undefined reference to port_table' netmap.c:(.text+0xb82): undefined reference toyap_appl_id' netmap.c:(.text+0xba8): undefined reference to port_table' netmap.c:(.text+0xbe1): undefined reference toyap_appl_id' netmap.c:(.text+0xc00): undefined reference to pack_port' netmap.o: In functionparse_netmap': netmap.c:(.text+0xeb0): undefined reference to yap_verbose' config.o: In functionini_find': config.c:(.text+0xf): undefined reference to yap_config' config.o: In functionini_find_id': config.c:(.text+0xc5): undefined reference to yap_appl_id' config.o: In functionini_find_port': config.c:(.text+0x14f): undefined reference to yap_appl_id' config.o: In functionini_getstr': config.c:(.text+0x1e1): undefined reference to yap_config' config.o: In functionini_getstr_id': config.c:(.text+0x2d0): undefined reference to yap_appl_id' config.o: In functionini_getstr_port': config.c:(.text+0x38f): undefined reference to yap_appl_id' config.o: In functionini_getint': config.c:(.text+0x508): undefined reference to yap_config' config.o: In functionini_getint_id': config.c:(.text+0x5f6): undefined reference to yap_appl_id' config.o: In functionini_getint_port': config.c:(.text+0x6b5): undefined reference to yap_appl_id' config.o: In functionini_getbool': config.c:(.text+0x80d): undefined reference to yap_config' config.o: In functionini_getbool_id': config.c:(.text+0x8fb): undefined reference to yap_appl_id' config.o: In functionini_getbool_port': config.c:(.text+0x9ba): undefined reference to yap_appl_id' config.o: In functionini_getdouble': config.c:(.text+0xb12): undefined reference to yap_config' config.o: In functionini_getdouble_id': config.c:(.text+0xc0d): undefined reference to yap_appl_id' config.o: In functionini_getdouble_port': config.c:(.text+0xccc): undefined reference to `yap_appl_id' collect2: error: ld returned 1 exit status make: *\ [iouyap] Error 1 rm netmap_scan.c netmap_parse.c

grossmj commented 9 years ago

I have fixed a problem in the Makefile, can you sync and try again?

Thanks,

herzcthu commented 9 years ago

I works now. Compilation success.