Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while executing make command (build) #934

Open
AnkitR4 opened this issue Aug 8, 2023 · 0 comments
Open

error while executing make command (build) #934

AnkitR4 opened this issue Aug 8, 2023 · 0 comments

Comments

@AnkitR4
Copy link

AnkitR4 commented Aug 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant