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

Multiple Definitions #120

Open
gierens opened this issue Apr 9, 2022 · 0 comments · May be fixed by #121
Open

Multiple Definitions #120

gierens opened this issue Apr 9, 2022 · 0 comments · May be fixed by #121

Comments

@gierens
Copy link

gierens commented Apr 9, 2022

I tried to compile this on Debian 11 with GCC version 10.2.1, and it appears that newer versions of the C compiler are less forgiving with multiple definitions during linking. Compiling fails due to quite a few multiple definitions:

admin@test:/tmp/libmoon$ ./build.sh 2>&1 | grep 'multiple definition'
/usr/bin/ld: /tmp/libmoon/deps/dpdk/x86_64-native-linuxapp-gcc/lib/librte_pmd_e1000.a(igb_rxtx.o):(.bss+0x0): multiple definition of `igb_flow_list'; /tmp/libmoon/deps/dpdk/x86_64-native-linuxapp-gcc/lib/librte_pmd_e1000.a(igb_ethdev.o):(.bss+0x0): first defined here
...
/usr/bin/ld: /tmp/libmoon/deps/dpdk/x86_64-native-linuxapp-gcc/lib/librte_pmd_ixgbe.a(ixgbe_tm.o):(.bss+0x30): multiple definition of `filter_syn_list'; CMakeFiles/libmoon.dir/src/timestamping_ixgbe.c.o:/tmp/libmoon/deps/dpdk/drivers/net/ixgbe/ixgbe_ethdev.h:403: first defined here
/usr/bin/ld: /tmp/libmoon/deps/dpdk/x86_64-native-linuxapp-gcc/lib/librte_pmd_ixgbe.a(ixgbe_tm.o):(.bss+0x40): multiple definition of `filter_ethertype_list'; CMakeFiles/libmoon.dir/src/timestamping_ixgbe.c.o:/tmp/libmoon/deps/dpdk/drivers/net/ixgbe/ixgbe_ethdev.h:401: first defined here
/usr/bin/ld: /tmp/libmoon/deps/dpdk/x86_64-native-linuxapp-gcc/lib/librte_pmd_ixgbe.a(ixgbe_tm.o):(.bss+0x50): multiple definition of `filter_ntuple_list'; CMakeFiles/libmoon.dir/src/timestamping_ixgbe.c.o:/tmp/libmoon/deps/dpdk/drivers/net/ixgbe/ixgbe_ethdev.h:399: first defined here
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

Successfully merging a pull request may close this issue.

1 participant