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 when setting NEIGHBOR_TABLE_ON_DISK to 1 #33

Open
adrianvidal opened this issue Feb 18, 2018 · 0 comments
Open

Error when setting NEIGHBOR_TABLE_ON_DISK to 1 #33

adrianvidal opened this issue Feb 18, 2018 · 0 comments

Comments

@adrianvidal
Copy link

I want OpenBTS to use an SQLite database for tracking neighbors, so I set NEIGHBOR_TABLE_ON_DISK to 1 in /openbts/Peering/NeighborTable.h. By default, the macro is set to 0.

Upon compiling, I encountered several errors. Many of these errors result from several functions/variables being undefined.

NeighborTable.cpp: In member function ‘bool Peering::NeighborTable::ntFindByIP(std::__cxx11::string, Peering::NeighborEntry*)’: NeighborTable.cpp:52:2: error: ‘NeighborTableMap’ has not been declared NeighborTableMap::iterator mit = mNeighborMap.find(ip); ^ NeighborTable.cpp:53:6: error: ‘mit’ was not declared in this scope if (mit == mNeighborMap.end()) { return false; } ^ NeighborTable.cpp:53:13: error: ‘mNeighborMap’ was not declared in this scope if (mit == mNeighborMap.end()) { return false; } ^ NeighborTable.cpp:54:26: error: ‘mit’ was not declared in this scope if (pentry) { *pentry = mit->second; } ^ NeighborTable.cpp: In member function ‘bool Peering::NeighborTable::ntFindByPeerAddr(const sockaddr_in*, Peering::NeighborEntry*)’: NeighborTable.cpp:63:2: error: ‘NeighborTableMap’ has not been declared NeighborTableMap::iterator mit = mNeighborMap.find(ipaddr); ^ NeighborTable.cpp:64:6: error: ‘mit’ was not declared in this scope if (mit == mNeighborMap.end()) { return false; } ^ NeighborTable.cpp:64:13: error: ‘mNeighborMap’ was not declared in this scope if (mit == mNeighborMap.end()) { return false; } ^ NeighborTable.cpp:65:26: error: ‘mit’ was not declared in this scope if (pentry) { *pentry = mit->second; } ^ NeighborTable.cpp: In member function ‘bool Peering::NeighborTable::ntFindByArfcn(int, int, Peering::NeighborEntry*)’: NeighborTable.cpp:77:7: error: ‘NeighborTableMap’ has not been declared for (NeighborTableMap::iterator mit = mNeighborMap.begin(); mit != mNeighborMa ^ NeighborTable.cpp:77:62: error: ‘mit’ was not declared in this scope for (NeighborTableMap::iterator mit = mNeighborMap.begin(); mit != mNeighborMa ^ NeighborTable.cpp:77:69: error: ‘mNeighborMap’ was not declared in this scope for (NeighborTableMap::iterator mit = mNeighborMap.begin(); mit != mNeighborMa ^ NeighborTable.cpp: In function ‘void makeNeighborSet(std::set<std::__cxx11::basic_string<char> >&)’: NeighborTable.cpp:158:20: error: ‘addNeighbor’ was not declared in this scope addNeighbor(&peer); ^ NeighborTable.cpp: In member function ‘bool Peering::NeighborTable::ntAddInfo(Peering::NeighborEntry&)’: NeighborTable.cpp:302:40: error: ‘address’ was not declared in this scope const char *ret = inet_ntop(AF_INET,&(address->sin_addr),addrString,255);

Is there something I am missing here? Or is there another way to configure OpenBTS to use SQLite databases for neighbors?

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