-
Notifications
You must be signed in to change notification settings - Fork 239
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
Failed to build OTBR with SRPL support based on PR #1743 #2505
Comments
Hi @muralidhar-bn, have you enabled cmake options FYI the PR hasn't been updated for quite a long time so I'm not sure if it's still compatible with the recent code. cc @yuzhyang |
Hi @superwhd, yes we have enabled OTBR_SRP_REPLICATION and OTBR_DNS_DSO while building the project. We have taken the changes over following release tag - https://github.com/openthread/ot-br-posix/releases/tag/thread-reference-20230710 |
How did you enable them? Could you share your build command or the change to the build script? |
@superwhd We are using yocto build environment and enabled the EXTRA_OECMAKE flags as below in bb file
|
The options looks correct though I'm not familiar with yocto. However, the issue does look like the enablement of the options are missing. To double check that maybe you can add a compile-time macro check in |
we have verified as mentioned and below is the output
FYI, Initially we got, below errors after taking the patches and enabling the MACROS
So, we manually enabled adding below lines third_party/openthread/CMakeLists.txt After above changes we are getting the undefined referrence, which has been mentioned in above comments. |
FYI The preferred way of specifying Sorry I haven't been working on this feature for quite some time so I cannot recall all the details. @yuzhyang I wonder if you saw similar issues previously? |
Have used the following build options for reference. |
@mia1yang - We have verifired all build options suggested above are available in our build environment. But still same error is shown. Is there any macro not covered ? ot-br-posix/git-r0/git/third_party/openthread/repo/src/core/net/srp_replication.hpp:37:2: error: #error "SRP Replication requires SRP Server support (OPENTHREAD_CONFIG_SRP_SERVER_ENABLE)." yacto bb file |
Closing stale issue. |
Filing this issue for continuing discussion of the comment sent by @muralidhar-bn
We have created a environment with 2 OTBR's ( RPi4 with skyconnect RCP devices ) and 2 or more nanoleaf bulbs.
We want to test SPR replication using real environment. Can you provide test steps ?
enthread-spinel-rcp.a third_party/openthread/repo/src/lib/url/libopenthread-url.a -lutil -lrt -lanl && :
| /usr/src/debug/ot-br-posix/git/third_party/openthread/repo/src/core/net/srp_replication.cpp:723: error: undefined reference to 'otPlatSrplDnssdBrowse'
| /usr/src/debug/ot-br-posix/git/third_party/openthread/repo/src/core/net/srp_replication.cpp:755: error: undefined reference to 'otPlatSrplUnregisterDnssdService'
| /usr/src/debug/ot-br-posix/git/third_party/openthread/repo/src/core/net/srp_replication.cpp:723: error: undefined reference to 'otPlatSrplDnssdBrowse'
| /usr/src/debug/ot-br-posix/git/third_party/openthread/repo/src/core/net/srp_replication.cpp:745: error: undefined reference to 'otPlatSrplRegisterDnssdService'
| /usr/src/debug/ot-br-posix/git/third_party/openthread/repo/src/core/net/srp_replication.cpp:723: error: undefined reference to 'otPlatSrplDnssdBrowse'
| /usr/src/debug/ot-br-posix/git/third_party/openthread/repo/src/core/net/srp_replication.cpp:723: error: undefined reference to 'otPlatSrplDnssdBrowse'
| /usr/src/debug/ot-br-posix/git/third_party/openthread/repo/src/core/net/srp_replication.cpp:755: error: undefined reference to 'otPlatSrplUnregisterDnssdService'
| /usr/src/debug/ot-br-posix/git/third_party/openthread/repo/src/core/net/srp_replication.cpp:745: error: undefined reference to 'otPlatSrplRegisterDnssdService'
| /usr/src/debug/ot-br-posix/git/third_party/openthread/repo/src/core/net/srp_replication.cpp:755: error: undefined reference to 'otPlatSrplUnregisterDnssdService'
4. Can u suggest how to resolve these errors ? Above code is available in simulation folder could be the reason ?
The text was updated successfully, but these errors were encountered: