PDA

View Full Version : Problem installing keepalived on FC5!!



visham
18th May 2007, 11:22 AM
Hi to all,

I'm having problems with keepalived installation on my machine with FC5 and a 2.6.20.4 kernel. I got the following messages during installation:


[root@localhost keepalived-1.1.13]# ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for strip... strip
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/md5.h usability... yes
checking openssl/md5.h presence... yes
checking for openssl/md5.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking for MD5_Init in -lcrypto... yes
checking for SSL_CTX_new in -lssl... yes
checking for poptGetContext in -lpopt... yes
checking for kernel version... 2.4.20
checking for /usr/src/linux/net/core/link_watch.c... no
checking net/ip_vs.h usability... no
checking net/ip_vs.h presence... no
checking for net/ip_vs.h... no
configure: WARNING: keepalived will be built without LVS support.
checking for kernel netlink support... yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for working memcmp... yes
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for select... yes
checking for socket... yes
checking for strerror... yes
checking for strtol... yes
checking for uname... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating genhash/Makefile
config.status: creating keepalived/core/Makefile
config.status: creating keepalived/include/config.h
config.status: creating keepalived.spec
config.status: creating keepalived/Makefile
config.status: creating lib/Makefile
config.status: creating keepalived/vrrp/Makefile

Keepalived configuration
------------------------
Keepalived version : 1.1.13
Compiler : gcc
Compiler flags : -g -O2
Extra Lib : -lpopt -lssl -lcrypto
Use IPVS Framework : No
IPVS sync daemon support : No
Use VRRP Framework : Yes
Use LinkWatch : No
Use Debug flags : No
[root@localhost keepalived-1.1.13]# make
make -C lib || exit 1;
make[1]: Entering directory `/usr/src/keepalived-1.1.13/lib'
gcc -g -O2 -I. -Wall -Wunused -Wstrict-prototypes -c memory.c
gcc -g -O2 -I. -Wall -Wunused -Wstrict-prototypes -c utils.c
gcc -g -O2 -I. -Wall -Wunused -Wstrict-prototypes -c notify.c
gcc -g -O2 -I. -Wall -Wunused -Wstrict-prototypes -c timer.c
gcc -g -O2 -I. -Wall -Wunused -Wstrict-prototypes -c scheduler.c
gcc -g -O2 -I. -Wall -Wunused -Wstrict-prototypes -c vector.c
gcc -g -O2 -I. -Wall -Wunused -Wstrict-prototypes -c list.c
gcc -g -O2 -I. -Wall -Wunused -Wstrict-prototypes -c html.c
gcc -g -O2 -I. -Wall -Wunused -Wstrict-prototypes -c parser.c
gcc -g -O2 -I. -Wall -Wunused -Wstrict-prototypes -c signals.c
make[1]: Leaving directory `/usr/src/keepalived-1.1.13/lib'
make -C keepalived
make[1]: Entering directory `/usr/src/keepalived-1.1.13/keepalived'
make[2]: Entering directory `/usr/src/keepalived-1.1.13/keepalived/core'
gcc -g -O2 -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-gcc -g -O2 -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_4_ -D_WITHOUT_LVS_ -D_WITH_VRRP_ -c layer4.c
layer4.c: In function ‘tcp_socket_state’:
layer4.c:111: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness
gcc -g -O2 -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_4_ -D_WITHOUT_LINKWATCH_ -D_WITHOUT_LVS_ -D_WITHOUT_IPVS_SYNCD_ -c vrrp_parser.c
gcc -g -O2 -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_4_ -D_WITHOUT_LINKWATCH_ -D_WITHOUT_LVS_ -D_WITHOUT_IPVS_SYNCD_ -c vrrp.c
vrrp.c: In function ‘vrrp_in_chk_ipsecah’:
vrrp.c:146: warning: pointer targets in passing argument 1 of ‘hmac_md5’ differ in signedness
vrrp.c: In function ‘vrrp_build_ipsecah’:
vrrp.c:407: warning: pointer targets in passing argument 1 of ‘hmac_md5’ differ in signedness
gcc -g -O2 -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-gcc -g -O2 -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_4_ -D_WITHOUT_LINKWATCH_ -D_WITHOUT_LVS_ -gcc -g -O2 -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_4_ -D_WITHOUT_LINKWATCH_ -D_WITHOUT_LVS_ -D_WITHOUT_IPVS_SYNCD_ -c vrrp_netlink.c
vrrp_netlink.c: In function ‘netlink_socket’:
vrrp_netlink.c:89: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness
gcc -g -O2 -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_4_ -D_WITHOUT_LINKWATCH_ -D_WITHOUT_LVS_ -D_WITHOUT_IPVS_SYNCD_ -c vrrp_arp.c
vrrp_arp.c: In function ‘send_gratuitous_arp’:
vrrp_arp.c:84: warning: pointer targets in initialization differ in signedness
gcc -g -O2 -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_4_ -D_WITHOUT_LINKWATCH_ -D_WITHOUT_LVS_ -D_WITHOUT_IPVS_SYNCD_ -c vrrp_if.c
vrrp_if.c: In function ‘if_mii_read’:
vrrp_if.c:103: warning: dereferencing type-punned pointer will break strict-aliasing rules
vrrp_if.c: In function ‘if_mii_status’:
vrrp_if.c:130: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -g -O2 -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_4_ -D_WITHOUT_LINKWATCH_ -D_WITHOUT_LVS_ -gcc -g -O2 -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_4_ -D_WITHOUT_LINKWATCH_ -D_WITHOUT_LVS_ -D_WITHOUT_IPVS_SYNCD_ -c vrrp_ipsecah.c
make[2]: Leaving directory `/usr/src/keepalived-1.1.13/keepalived/vrrp'
Building ../bin/keepalived
strip ../bin/keepalived

Make complete
make[1]: Leaving directory `/usr/src/keepalived-1.1.13/keepalived'
make -C genhash
make[1]: Entering directory `/usr/src/keepalived-1.1.13/genhash'
gcc -g -O2 -I/usr/src/linux/include -I../lib -Wall -Wunused -Wstrict-prototypes -c -o main.o main.c
gcc -g -O2 -I/usr/src/linux/include -I../lib -Wall -Wunused -Wstrict-prototypes -c -o sock.o sock.c
gcc -g -O2 -I/usr/src/linux/include -I../lib -Wall -Wunused -Wstrict-prototypes -c -o layer4.o layer4.c
layer4.c: In function ‘tcp_socket_state’:
layer4.c:97: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness
gcc -g -O2 -I/usr/src/linux/include -I../lib -Wall -Wunused -Wstrict-prototypes -c -o http.o http.c
http.c: In function ‘finalize’:
http.c:99: warning: pointer targets in passing argument 1 of ‘dump_buffer’ differ in signedness
gcc -g -O2 -I/usr/src/linux/include -I../lib -Wall -Wunused -Wstrict-prototypes -c -o ssl.o ssl.c
Building ../bin/genhash
strip ../bin/genhash

Make complete
make[1]: Leaving directory `/usr/src/keepalived-1.1.13/genhash'

Make complete
[root@localhost keepalived-1.1.13]# make install
make -C keepalived install
make[1]: Entering directory `/usr/src/keepalived-1.1.13/keepalived'
install -d /usr/local/sbin
install -m 700 ../bin/keepalived /usr/local/sbin/
install -d /usr/local/etc/init.d
install -m 755 etc/init.d/keepalived.init /usr/local/etc/init.d/keepalived
install -d /usr/local/etc/keepalived/samples
install -m 644 etc/keepalived/keepalived.conf /usr/local/etc/keepalived/
install -m 644 ../doc/samples/* /usr/local/etc/keepalived/samples/
install -d /usr/local/man/man/man5
install -d /usr/local/man/man/man8
install -m 644 ../doc/man/man5/keepalived.conf.5 /usr/local/man/man/man5
install -m 644 ../doc/man/man8/keepalived.8 /usr/local/man/man/man8
make[1]: Leaving directory `/usr/src/keepalived-1.1.13/keepalived'
make -C genhash install
make[1]: Entering directory `/usr/src/keepalived-1.1.13/genhash'
install -d /usr/local/bin
install -m 755 ../bin/genhash /usr/local/bin/
install -d /usr/local/man/man/man1
install -m 644 ../doc/man/man1/genhash.1 /usr/local/man/man/man1
make[1]: Leaving directory `/usr/src/keepalived-1.1.13/genhash'
[root@localhost keepalived-1.1.13]#

Can someone pls tell me how to solve this? It doesn't install the files in the right directories...for example, the /etc/keepalived/ folder is not created. I'm using keepalived-1.1.13.tar.gz.

Warm regards,
Visham

markkuk
18th May 2007, 12:01 PM
You need to set the install directory as a parameter to the ./configure script. Use "./configure --help" to see the available options.