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: ‘openolt::OnuInfo’ has not been declared #6

Open
fridolinsiegmund opened this issue Aug 31, 2023 · 1 comment
Open

error: ‘openolt::OnuInfo’ has not been declared #6

fridolinsiegmund opened this issue Aug 31, 2023 · 1 comment

Comments

@fridolinsiegmund
Copy link
Contributor

Hi,
I am trying to build openolt for a radisys OLT, therefore debian 9. It compiles successful for a long time, until the actual openolt agent is compiled. There I run into this problem:

g++-6 -g -O2 -I/usr/local/include -I/usr/local/include/pcapplusplus/ -std=c++11 -fpermissive -Wno-literal-suffix -I/home/fsiegmund/openolt/agent/build/bal-oss-api-3.10.2.2/include  -DBCMOS_MSG_QUEUE_DOMAIN_SOCKET -DBCMOS_MSG_QUEUE_UDP_SOCKET -DBCMOS_MEM_CHECK -DBCMOS_SYS_UNITTEST -DENABLE_LOG -DENABLE_CLI -I../protos -I./device -I./device/rlt-1600x-w -I../protos/googleapis/gens -I./device -I./device/rlt-1600x-w -I./device/generic  `pkg-config --cflags protobuf grpc` -DVERSION=\"3.10.0-dev\" -DBAL_VER=\"3.10.2.2\" -DLABEL_VCS_URL=\"https://gerrit.opencord.org/openolt\" -DLABEL_VCS_REF=\"b3ef7dcfdbf4e1cbb8437be29f8d7a79e1705144\" -DLABEL_BUILD_DATE=\"2023-08-31T15:21:44Z\" -DLABEL_COMMIT_DATE=\"2023-08-22T14:31:11-04:00\" -DFLOW_CHECKER -USCALE_AND_PERF -I./ -I./common -c src/indications.cc -o src/indications.o
In file included from src/indications.cc:18:0:
./common/core.h:251:64: error: ‘openolt::OnuInfo’ has not been declared
 Status GetOnuInfo_(uint32_t intf_id, uint32_t onu_id, openolt::OnuInfo *response);
                                                                ^~~~~~~
./common/core.h:252:56: error: ‘openolt::PonIntfInfo’ has not been declared
 Status GetPonInterfaceInfo_(uint32_t intf_id, openolt::PonIntfInfo *response);
                                                        ^~~~~~~~~~~
Makefile:455: recipe for target 'src/indications.o' failed
make: *** [src/indications.o] Error 1

Do you have any Idea what could went wrong?

Thanks & Best

@fridolinsiegmund
Copy link
Contributor Author

fridolinsiegmund commented Sep 1, 2023

Hi,
I found the Problem: The openolt.proto pulled in version 5.2.1 does not contain the messages OnuInfo etc, at other places in your makefiles the version 5.4.6 is specified which contains the respective message types.

Also I fixed another Problem: when building ONL 4.19 with your specified commit id from ONL, the mirror for apt is outdated and therefore the whole building fails.

See my pull request for the fixes:

#7

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