You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 to nmctx_threadsafe'
/usr/bin/ld: /tmp/cckiKDID.o: in function setaffinity': pkt-gen.c:(.text+0x1c0c): undefined reference to pthread_setaffinity_np'
/usr/bin/ld: /tmp/cckiKDID.o: in function start_threads': pkt-gen.c:(.text+0x93c2): undefined reference to nmport_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 to nmport_undo_prepare'
/usr/bin/ld: pkt-gen.c:(.text+0x96dd): undefined reference to pthread_create' /usr/bin/ld: /tmp/cckiKDID.o: in function main_thread':
pkt-gen.c:(.text+0x9d03): undefined reference to sqrt' /usr/bin/ld: pkt-gen.c:(.text+0xa0e2): undefined reference to pthread_join'
/usr/bin/ld: pkt-gen.c:(.text+0xa121): undefined reference to nmport_close' /usr/bin/ld: /tmp/cckiKDID.o: in function main':
pkt-gen.c:(.text+0xbd75): undefined reference to nmport_prepare' /usr/bin/ld: pkt-gen.c:(.text+0xbe3c): undefined reference to nmport_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 to pthread_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
The text was updated successfully, but these errors were encountered:
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 to
nmctx_threadsafe'/usr/bin/ld: /tmp/cckiKDID.o: in function
setaffinity': pkt-gen.c:(.text+0x1c0c): undefined reference to
pthread_setaffinity_np'/usr/bin/ld: /tmp/cckiKDID.o: in function
start_threads': pkt-gen.c:(.text+0x93c2): undefined reference to
nmport_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 to
nmport_undo_prepare'/usr/bin/ld: pkt-gen.c:(.text+0x96dd): undefined reference to
pthread_create' /usr/bin/ld: /tmp/cckiKDID.o: in function
main_thread':pkt-gen.c:(.text+0x9d03): undefined reference to
sqrt' /usr/bin/ld: pkt-gen.c:(.text+0xa0e2): undefined reference to
pthread_join'/usr/bin/ld: pkt-gen.c:(.text+0xa121): undefined reference to
nmport_close' /usr/bin/ld: /tmp/cckiKDID.o: in function
main':pkt-gen.c:(.text+0xbd75): undefined reference to
nmport_prepare' /usr/bin/ld: pkt-gen.c:(.text+0xbe3c): undefined reference to
nmport_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 to
pthread_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
The text was updated successfully, but these errors were encountered: