luigirizzo / netmap

Automatically exported from code.google.com/p/netmap
BSD 2-Clause "Simplified" License
1.86k stars 537 forks source link

error while executing make command (build) #934

Open AnkitR4 opened 1 year ago

AnkitR4 commented 1 year ago

i faced this error after giving the make command

make[1]: Entering directory '/home/XXXX/netmap/LINUX/build-apps/pkt-gen' cc -Wno-error=format-truncation -I/home/XXXX/netmap/apps/include -I/home/XXXX/netmap/sys/ -I/home/XXXX/netmap/libnetmap -L /home/XXXX/netmap/LINUX/build-libnetmap /home/XXXX/netmap/LINUX/../apps/pkt-gen/pkt-gen.c -lpcap -o pkt-gen /home/XXXX/netmap/LINUX/../apps/pkt-gen/pkt-gen.c: In function ‘txseq_body’: /home/XXXX/netmap/LINUX/../apps/pkt-gen/pkt-gen.c:221:24: warning: taking address of packed member of ‘struct pkt’ may result in an unaligned pointer value [-Waddress-of-packed-member] 221 | ((af) == AF_INET ? (p)->ipv4.f: (p)->ipv6.f) | ^ /home/XXXX/netmap/LINUX/../apps/pkt-gen/pkt-gen.c:2152:30: note: in expansion of macro ‘PKT’ 2152 | uint16_t w = (uint16_t )PKT(pkt, body, targ->g->af), t; | ^~~ /home/XXXX/netmap/LINUX/../apps/pkt-gen/pkt-gen.c:221:37: warning: taking address of packed member of ‘struct pkt’ may result in an unaligned pointer value [-Waddress-of-packed-member] 221 | ((af) == AF_INET ? (p)->ipv4.f: (p)->ipv6.f) | ^ /home/XXXX/netmap/LINUX/../apps/pkt-gen/pkt-gen.c:2152:30: note: in expansion of macro ‘PKT’ 2152 | uint16_t w = (uint16_t )PKT(pkt, body, targ->g->af), t; | ^~~ /usr/bin/ld: /tmp/cckiKDID.o: in function libnetmap_init': pkt-gen.c:(.text+0x23a): undefined reference tonmctx_threadsafe' /usr/bin/ld: /tmp/cckiKDID.o: in function setaffinity': pkt-gen.c:(.text+0x1c0c): undefined reference topthread_setaffinity_np' /usr/bin/ld: /tmp/cckiKDID.o: in function start_threads': pkt-gen.c:(.text+0x93c2): undefined reference tonmport_clone' /usr/bin/ld: pkt-gen.c:(.text+0x9460): undefined reference to nmport_open_desc' /usr/bin/ld: pkt-gen.c:(.text+0x9474): undefined reference tonmport_undo_prepare' /usr/bin/ld: pkt-gen.c:(.text+0x96dd): undefined reference to pthread_create' /usr/bin/ld: /tmp/cckiKDID.o: in functionmain_thread': pkt-gen.c:(.text+0x9d03): undefined reference to sqrt' /usr/bin/ld: pkt-gen.c:(.text+0xa0e2): undefined reference topthread_join' /usr/bin/ld: pkt-gen.c:(.text+0xa121): undefined reference to nmport_close' /usr/bin/ld: /tmp/cckiKDID.o: in functionmain': pkt-gen.c:(.text+0xbd75): undefined reference to nmport_prepare' /usr/bin/ld: pkt-gen.c:(.text+0xbe3c): undefined reference tonmport_open_desc' /usr/bin/ld: pkt-gen.c:(.text+0xc869): undefined reference to pthread_sigmask' /usr/bin/ld: pkt-gen.c:(.text+0xca1f): undefined reference topthread_sigmask' collect2: error: ld returned 1 exit status make[1]: [: pkt-gen] Error 1 make[1]: Leaving directory '/home/XXXX/netmap/LINUX/build-apps/pkt-gen' make: [netmap.mak:128: build-app-pkt-gen] Error 2