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

[build] fix issue when executing build-commissioner-libs.sh multiple times #250

Merged
merged 3 commits into from
Apr 2, 2024

Conversation

ZhangLe2016
Copy link
Contributor

When developers run the 'build-commissioner-libs.sh' script multiple times, they might see the following error during compiling the libevent:

error: call to undeclared function 'pipe2'; ISO C99 and later do not support implicit function declarations ...

In fact, we did not use pip2 in libevent. We can turn it off by using the macro EVENT_HAVE-PIPE2=0

When developers run the 'build-commissioner-libs.sh' script multiple
times, they might see the following error during compiling the libevent:

error: call to undeclared function 'pipe2'; ISO C99 and later do not
support implicit function declarations ...

In fact, we did not use pip2 in libevent. We can turn it off by using
the macro EVENT_HAVE-PIPE2=0
@ZhangLe2016
Copy link
Contributor Author

@jwhui seems that I cannot add reviewers into this PR, could you please add me into this project as a contributor? thanks.

@wgtdkp
Copy link
Member

wgtdkp commented Apr 1, 2024

Better add this to third_party/libevent/CMakeLists.txt:

set(EVENT__HAVE_PIPE2 0 CACHE BOOL "disable use of pipe2 in libevent" FORCE)

@wgtdkp wgtdkp self-requested a review April 1, 2024 07:20
@codecov-commenter
Copy link

codecov-commenter commented Apr 1, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 73.35%. Comparing base (de8e82c) to head (2704165).
Report is 1 commits behind head on main.

❗ Current head 2704165 differs from pull request most recent head 9cc2a53. Consider uploading reports for the commit 9cc2a53 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #250   +/-   ##
=======================================
  Coverage   73.35%   73.35%           
=======================================
  Files          71       71           
  Lines        7420     7421    +1     
=======================================
+ Hits         5443     5444    +1     
  Misses       1977     1977           
Files Coverage Δ
src/app/border_agent.cpp 92.50% <100.00%> (ø)
src/app/border_agent.hpp 100.00% <ø> (ø)
src/app/br_discover.cpp 89.47% <ø> (ø)
src/app/cli/interpreter.cpp 79.70% <100.00%> (ø)
src/app/cli/interpreter.hpp 100.00% <ø> (ø)
src/app/cli/job.cpp 100.00% <100.00%> (ø)
src/app/cli/job.hpp 100.00% <ø> (ø)
src/app/commissioner_app.hpp 100.00% <ø> (ø)
src/app/file_logger.hpp 100.00% <ø> (ø)
src/app/mdns_handler.cpp 85.71% <100.00%> (ø)
... and 19 more

When developers run the 'build-commissioner-libs.sh' script multiple
times, they might see the following error during compiling the libevent:

error: call to undeclared function 'pipe2'; ISO C99 and later do not
support implicit function declarations ...

In fact, we did not use pip2 in libevent. We can turn it off by using
the macro EVENT_HAVE-PIPE2=0
When developers run the 'build-commissioner-libs.sh' script multiple
times, they might see the following error during compiling the libevent:

error: call to undeclared function 'pipe2'; ISO C99 and later do not
support implicit function declarations ...

In fact, we did not use pip2 in libevent. We can turn it off by using
the macro EVENT_HAVE-PIPE2=0
Copy link
Member

@wgtdkp wgtdkp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks! 👍

@wgtdkp wgtdkp requested a review from jwhui April 2, 2024 02:26
Copy link
Contributor

@librasungirl librasungirl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@librasungirl librasungirl changed the title [build] fix the exection issue of script build-commissioner-libs.sh [build] fix issue when executing build-commissioner-libs.sh multiple times Apr 2, 2024
@jwhui jwhui changed the title [build] fix issue when executing build-commissioner-libs.sh multiple times [build] fix issue when executing build-commissioner-libs.sh multiple times Apr 2, 2024
@jwhui jwhui merged commit cf6b6c0 into openthread:main Apr 2, 2024
33 checks passed
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.

5 participants