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

[DPU] Fix unit tests compilation after merge from master branch. #2478

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

oleksandrivantsiv
Copy link
Collaborator

What I did
Fix unit tests compilation issue after merge from the master branch:

/bin/bash ../../libtool  --tag=CXX   --mode=link g++ -Wl,-wrap,if_nameindex -Wl,-wrap,if_freenameindex -g -O2 -ffile-prefix-map=/sonic/src/sonic-swss=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -o tests_portsyncd tests_portsyncd-portsyncd_ut.o tests_portsyncd-linksync.o tests_portsyncd-mock_dbconnector.o tests_portsyncd-mock_shell_command.o tests_portsyncd-mock_table.o tests_portsyncd-mock_hiredis.o tests_portsyncd-mock_redisreply.o -L/usr/src/gtest -lnl-genl-3 -lhiredis -lhiredis -lswsscommon -lswsscommon -lgtest -lgtest_main -lnl-3 -lnl-route-3 -lpthread -lnl-nf-3 -lnl-route-3 -lnl-genl-3 -lnl-3 -lhiredis
libtool: link: g++ -Wl,-wrap -Wl,if_nameindex -Wl,-wrap -Wl,if_freenameindex -g -O2 -ffile-prefix-map=/sonic/src/sonic-swss=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -o tests_portsyncd tests_portsyncd-portsyncd_ut.o tests_portsyncd-linksync.o tests_portsyncd-mock_dbconnector.o tests_portsyncd-mock_shell_command.o tests_portsyncd-mock_table.o tests_portsyncd-mock_hiredis.o tests_portsyncd-mock_redisreply.o  -L/usr/src/gtest -lswsscommon -lgtest -lgtest_main -lpthread -lnl-nf-3 -lnl-route-3 -lnl-genl-3 -lnl-3 -lhiredis
/usr/bin/ld: tests_portsyncd-linksync.o: in function `bool std::operator==<char, std::char_traits<char>, std::allocator<char> >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char const*)':
/usr/include/c++/10/bits/basic_string.h:6187: undefined reference to `g_switchType[abi:cxx11]'
/usr/bin/ld: /usr/include/c++/10/bits/basic_string.h:6187: undefined reference to `g_switchType[abi:cxx11]'
collect2: error: ld returned 1 exit status

Why I did it
To fix compilation of SWSS deb package.

How I verified it
Compile SWSS deb package.

Details if related

@prsunny prsunny merged commit f093be3 into sonic-net:dash Oct 4, 2022
prsunny pushed a commit that referenced this pull request Oct 11, 2022
*Fix unit tests compilation issue after merge from the master branch:
Pterosaur pushed a commit to Pterosaur/sonic-swss that referenced this pull request Nov 5, 2022
…ic-net#2478)

*Fix unit tests compilation issue after merge from the master branch:
oleksandrivantsiv added a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Dec 21, 2022
…ic-net#2478)

*Fix unit tests compilation issue after merge from the master branch:
theasianpianist pushed a commit to theasianpianist/sonic-swss that referenced this pull request Jul 21, 2023
…ic-net#2478)

*Fix unit tests compilation issue after merge from the master branch:
theasianpianist pushed a commit to theasianpianist/sonic-swss that referenced this pull request Jul 25, 2023
…ic-net#2478)

*Fix unit tests compilation issue after merge from the master branch:
theasianpianist pushed a commit to theasianpianist/sonic-swss that referenced this pull request Jul 27, 2023
…ic-net#2478)

*Fix unit tests compilation issue after merge from the master branch:
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 this pull request may close these issues.

2 participants