Project

General

Profile

Bug #101

Error with EP method in gdp_router_nat.cc

Added by Neil Agarwal over 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Routing Layer
Start date:
06/04/2017
Due date:
% Done:

0%


Description

When running adm/install-gdp-router-click.sh, the following compilation error appears:

../elements/local/gdp_router_nat.cc: In member function ‘virtual int GDPRouterNat::initialize(ErrorHandler*)’:
../elements/local/gdp_router_nat.cc:260:26: error: ‘ep_sd_notify’ was not declared in this scope
ep_sd_notify("READY=1\n");

../elements/local/gdp_router_nat.cc: In member function ‘virtual void GDPRouterNat::selected(int, int)’:
../elements/local/gdp_router_nat.cc:588:55: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result -Wunused-result read(processFD, _readBuffer, READ_BUF_SIZE);
^
elements.mk:391: recipe for target 'gdp_router_nat.o' failed
make[1]: *** [gdp_router_nat.o] Error 1
make[1]: Leaving directory '/home/neil/click/userlevel'
Makefile:57: recipe for target 'userlevel' failed
make: *** [userlevel] Error 2
[FATAL] Could not compile gdp-router-click

I was able to recompile it without error after commenting out line 260 in ~/click/elements/local/gdp_router_nat.cc which was "ep_sd_notify("READY=1\n");"

I thought it may have to do with the EP library not properly installing but I recompiled the EP library and I still had the same problem.

History

#1 Updated by Eric Allman about 6 years ago

  • Status changed from New to Resolved
  • Assignee set to Eric Allman

There were two small errors causing this problem. It should be fixed in commit:2bc2cc46.

#2 Updated by Rick Pratt about 5 years ago

  • Status changed from Resolved to Closed

Closed, fix confirmed. Note that the router is now statically linked (to isolate net3 from net4 in parallel deployment) which required a Makefile -lsystemd addition to support ep_sp_notify().

#3 Updated by Eric Allman over 4 years ago

  • Project changed from Click GDP Routers to GDP
  • Category set to Routing Layer

Also available in: Atom PDF