Opened 9 years ago

Closed 9 years ago

Last modified 4 years ago

#5088 closed defect (fixed)

keepalived cross compiling disables vrrp feature

Reported by: framer99 Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: keepalived vrrp Cc:


When cross-compiling keepalived, the configure script skips trying to detect kernel netlink capability and disables VRRP feature. A cross-compiled keepalived executable will never have VRRP support if it was built staring with the stock configure script.

Furthermore, the LVS feature is also disabled in my cross-compile builds.

With both LVS and VRRP features disabled, the resulting keepalived executable performs absolutely NO useful function at all. Without VRRP or LVS features it just sits in a select() call forever.

The configure script has some logic to detect and prevent this type of build, but it looks like it only detects if both the LVS and VRRP features were manually disabled from the ./configure command line.

I'm not sure how the current Makefile ever cross-compiled a usable keepalived binary.

I don't want the LVS feature anyway, so I didn't attempt to get it to build.

I also switched the link_watch feature to enabled since the required .c file is present in the kernel source... not sure why it was disabled unless it's a 2.4 kernel thing?

Finally, the initscript has a typo where it's checking for th e presence of the keepalived.conf file, resulting in the keepalived initscript never actually starting the daemon.

2 patches attached.

Attachments (2)

005-keepalived_init_configfile_name_typo.patch (464 bytes) - added by framer99 9 years ago.
fix keepalived initscript typo
010-keepalived_cross_compile_force_vrrp_linkwatch.patch (499 bytes) - added by framer99 9 years ago.
keepalived cross compile force vrrp and link_watch enabled

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by framer99

fix keepalived initscript typo

Changed 9 years ago by framer99

keepalived cross compile force vrrp and link_watch enabled

comment:1 Changed 9 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Thanks - patches committed in r15746.

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.