opencord / openolt

OpenOLT repository
Apache License 2.0
45 stars 13 forks source link

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

Open fridolinsiegmund opened 1 year ago

fridolinsiegmund commented 1 year ago

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 commented 1 year ago

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:

https://github.com/opencord/openolt/pull/7