Re: Building without fwmark on CentOS 5
Alexey Andrianov <[email protected]>
| Newsgroups | gmane.linux.keepalived.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello. Thank you for reporting this bug. The fix is in repo now and will be available in the next release. https://github.com/acassen/keepalived/commit/7d0170c4a764e9005d5e8694e0b1b34a06d04cc1 16.12.2014 21:46, Edson Marquezani Filho пишет: > Hello, everyone. > > I'm building Keepalived on a CentOS 5 box against a stock kernel > version (2.6.18), so I'm forced to disable fwmark feature, once it's > available only from 2.6.25 on. > > The problem is: the compilation still fails, with the following error. > > check_api.c: In function ‘dump_conn_opts’: > check_api.c:65: error: ‘conn_opts_t’ has no member named ‘fwmark’ > > Nonetheless, I was able to come up with a straighforward solution for > it. It seems a stretch of code was missing an 'ifdef' directive. I > just wanted to make you aware of it, but the definitive solution is up > to you, guys. (It may not be totally correct, I don't know.) > > The patch is below. > > --- keepalived/check/check_api.c.orig 2014-12-16 16:24:08.000000000 -0200 > +++ keepalived/check/check_api.c 2014-12-16 16:24:20.000000000 -0200 > @@ -62,8 +62,10 @@ > log_message(LOG_INFO, " Connection dest = %s", > inet_sockaddrtopair(&conn->dst)); > if (conn->bindto.ss_family) > log_message(LOG_INFO, " Bind to = %s", inet_sockaddrtopair(&conn->bindto)); > +#ifdef _WITH_SO_MARK_ > if (conn->fwmark != 0) > log_message(LOG_INFO, " Connection mark = %u", conn->fwmark); > +#endif > log_message(LOG_INFO, " Connection timeout = %d", > conn->connection_to/TIMER_HZ); > } > > Thank you. > -- Best regards, Alexey ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Keepalived-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/keepalived-devel