LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-17-2015, 09:01 AM   #1
Methraton
LQ Newbie
 
Registered: Feb 2015
Location: Milan
Posts: 1

Rep: Reputation: Disabled
Problem compiling keepalived-1.2.15


Hi to all,
I hope this is the correct section to post, if I'm wrong correct me or point me in the good direction.

I have problems compiling keepalived-1.2.15 under slackware.
Please can anyone help me? I'm stuck and I don't know how to go on

root@slrtr:~/keepalived-1.2.15# uname -or
3.10.17 GNU/Linux

root@slrtr:~/keepalived-1.2.15# cat /etc/slackware-version
Slackware 14.1


Here is the output of ./configure

root@slrtr:~/keepalived-1.2.15# ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/man --docdir=/usr/doc/keepalived-1.2.15 --build=x86_64-slackware-linux
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for strip... strip
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/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 whether ETHERTYPE_IPV6 is declared... yes
checking for crypt in -lcrypt... yes
checking for MD5_Init in -lcrypto... yes
checking for SSL_CTX_new in -lssl... yes
checking for nl_socket_alloc in -lnl-3... yes
checking for genl_connect in -lnl-genl-3... yes
checking for kernel version... 3.10.17
checking for IPVS syncd support... yes
checking for kernel macvlan support... no
checking whether SO_MARK is declared... 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 lib/config.h
config.status: creating keepalived.spec
config.status: creating keepalived/Makefile
config.status: creating lib/Makefile
config.status: creating keepalived/vrrp/Makefile
config.status: creating keepalived/check/Makefile
config.status: creating keepalived/libipvs-2.6/Makefile

Keepalived configuration
------------------------
Keepalived version : 1.2.15
Compiler : gcc
Compiler flags : -g -O2 -I/usr/include/libnl3
Extra Lib : -lssl -lcrypto -lcrypt -lnl-genl-3 -lnl-3
Use IPVS Framework : Yes
IPVS sync daemon support : Yes
IPVS use libnl : Yes
fwmark socket support : Yes
Use VRRP Framework : Yes
Use VRRP VMAC : No
SNMP support : No
SHA1 support : No
Use Debug flags : No


And here the output of make
root@slrtr:~/keepalived-1.2.15# make
make -C lib || exit 1;
make[1]: Entering directory `/root/keepalived-1.2.15/lib'
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c memory.c
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c utils.c
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c notify.c
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c timer.c
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c scheduler.c
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c vector.c
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c list.c
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c html.c
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c parser.c
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c signals.c
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c logger.c
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c list_head.c
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c buffer.c
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c command.c
gcc -g -O2 -I/usr/include/libnl3 -I. -Wall -Wunused -Wstrict-prototypes -D_WITHOUT_SNMP_ -c vty.c
make[1]: Leaving directory `/root/keepalived-1.2.15/lib'
make -C keepalived
make[1]: Entering directory `/root/keepalived-1.2.15/keepalived'
make[2]: Entering directory `/root/keepalived-1.2.15/keepalived/core'
gcc -g -O2 -I/usr/include/libnl3 -I/usr/src/linux/include -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_6_ -D_WITH_LVS_ -D_WITH_VRRP_ -D_WITHOUT_SNMP_ -D_WITH_SO_MARK_ -c main.c
gcc -g -O2 -I/usr/include/libnl3 -I/usr/src/linux/include -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_6_ -D_WITH_LVS_ -D_WITH_VRRP_ -D_WITHOUT_SNMP_ -D_WITH_SO_MARK_ -c daemon.c
gcc -g -O2 -I/usr/include/libnl3 -I/usr/src/linux/include -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_6_ -D_WITH_LVS_ -D_WITH_VRRP_ -D_WITHOUT_SNMP_ -D_WITH_SO_MARK_ -c pidfile.c
gcc -g -O2 -I/usr/include/libnl3 -I/usr/src/linux/include -I/usr/src/linux/include -I../include -I../../lib -Wall -Wunused -Wstrict-prototypes -D_KRNL_2_6_ -D_WITH_LVS_ -D_WITH_VRRP_ -D_WITHOUT_SNMP_ -D_WITH_SO_MARK_ -c layer4.c
In file included from ../include/../libipvs-2.6/ip_vs.h:12:0,
from ../include/check_data.h:38,
from ../include/check_api.h:27,
from ../include/layer4.h:37,
from layer4.c:24:
/usr/src/linux/include/linux/types.h:14:26: error: conflicting types for 'fd_set'
typedef __kernel_fd_set fd_set;
^
In file included from /usr/include/sys/types.h:219:0,
from /usr/include/sys/uio.h:24,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:27,
from ../include/layer4.h:30,
from layer4.c:24:
/usr/include/sys/select.h:75:5: note: previous declaration of 'fd_set' was here
} fd_set;
^
In file included from ../include/../libipvs-2.6/ip_vs.h:12:0,
from ../include/check_data.h:38,
from ../include/check_api.h:27,
from ../include/layer4.h:37,
from layer4.c:24:
/usr/src/linux/include/linux/types.h:15:25: error: conflicting types for 'dev_t'
typedef __kernel_dev_t dev_t;
^
In file included from /usr/include/sys/uio.h:24:0,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:27,
from ../include/layer4.h:30,
from layer4.c:24:
/usr/include/sys/types.h:60:17: note: previous declaration of 'dev_t' was here
typedef __dev_t dev_t;
^
In file included from ../include/../libipvs-2.6/ip_vs.h:12:0,
from ../include/check_data.h:38,
from ../include/check_api.h:27,
from ../include/layer4.h:37,
from layer4.c:24:
/usr/src/linux/include/linux/types.h:19:17: error: conflicting types for 'nlink_t'
typedef __u32 nlink_t;
^
In file included from /usr/include/sys/uio.h:24:0,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:27,
from ../include/layer4.h:30,
from layer4.c:24:
/usr/include/sys/types.h:75:19: note: previous declaration of 'nlink_t' was here
typedef __nlink_t nlink_t;
^
In file included from ../include/../libipvs-2.6/ip_vs.h:12:0,
from ../include/check_data.h:38,
from ../include/check_api.h:27,
from ../include/layer4.h:37,
from layer4.c:24:
/usr/src/linux/include/linux/types.h:25:26: error: conflicting types for 'timer_t'
typedef __kernel_timer_t timer_t;
^
In file included from /usr/include/sys/types.h:132:0,
from /usr/include/sys/uio.h:24,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:27,
from ../include/layer4.h:30,
from layer4.c:24:
/usr/include/time.h:103:19: note: previous declaration of 'timer_t' was here
typedef __timer_t timer_t;
^
In file included from ../include/../libipvs-2.6/ip_vs.h:12:0,
from ../include/check_data.h:38,
from ../include/check_api.h:27,
from ../include/layer4.h:37,
from layer4.c:24:
/usr/src/linux/include/linux/types.h:45:26: error: conflicting types for 'loff_t'
typedef __kernel_loff_t loff_t;
^
In file included from /usr/include/sys/uio.h:24:0,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:27,
from ../include/layer4.h:30,
from layer4.c:24:
/usr/include/sys/types.h:44:18: note: previous declaration of 'loff_t' was here
typedef __loff_t loff_t;
^
In file included from ../include/../libipvs-2.6/ip_vs.h:12:0,
from ../include/check_data.h:38,
from ../include/check_api.h:27,
from ../include/layer4.h:37,
from layer4.c:24:
/usr/src/linux/include/linux/types.h:111:17: error: conflicting types for 'uint64_t'
typedef __u64 uint64_t;
^
In file included from /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/include/stdint.h:9:0,
from ../include/layer4.h:29,
from layer4.c:24:
/usr/include/stdint.h:55:27: note: previous declaration of 'uint64_t' was here
typedef unsigned long int uint64_t;
^
In file included from ../include/../libipvs-2.6/ip_vs.h:12:0,
from ../include/check_data.h:38,
from ../include/check_api.h:27,
from ../include/layer4.h:37,
from layer4.c:24:
/usr/src/linux/include/linux/types.h:112:17: error: conflicting types for 'u_int64_t'
typedef __u64 u_int64_t;
^
In file included from /usr/include/sys/uio.h:24:0,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:27,
from ../include/layer4.h:30,
from layer4.c:24:
/usr/include/sys/types.h:203:1: note: previous declaration of 'u_int64_t' was here
__u_intN_t (64, __DI__);
^
In file included from ../include/../libipvs-2.6/ip_vs.h:12:0,
from ../include/check_data.h:38,
from ../include/check_api.h:27,
from ../include/layer4.h:37,
from layer4.c:24:
/usr/src/linux/include/linux/types.h:113:17: error: conflicting types for 'int64_t'
typedef __s64 int64_t;
^
In file included from /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/include/stdint.h:9:0,
from ../include/layer4.h:29,
from layer4.c:24:
/usr/include/stdint.h:40:19: note: previous declaration of 'int64_t' was here
typedef long int int64_t;
^
In file included from ../include/../libipvs-2.6/ip_vs.h:12:0,
from ../include/check_data.h:38,
from ../include/check_api.h:27,
from ../include/layer4.h:37,
from layer4.c:24:
/usr/src/linux/include/linux/types.h:134:23: error: conflicting types for 'blkcnt_t'
typedef unsigned long blkcnt_t;
^
In file included from /usr/include/sys/uio.h:24:0,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:27,
from ../include/layer4.h:30,
from layer4.c:24:
/usr/include/sys/types.h:235:20: note: previous declaration of 'blkcnt_t' was here
typedef __blkcnt_t blkcnt_t; /* Type to count number of disk blocks. */
^
make[2]: *** [layer4.o] Error 1
make[2]: Leaving directory `/root/keepalived-1.2.15/keepalived/core'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/root/keepalived-1.2.15/keepalived'
make: *** [all] Error 2
 
Old 02-17-2015, 05:27 PM   #2
codepress
LQ Newbie
 
Registered: Nov 2014
Posts: 1

Rep: Reputation: Disabled
I am having same issue on opensuse 13.2 64 bit 3.16.7 kernel
 
Old 05-28-2015, 09:22 AM   #3
dagmoller
LQ Newbie
 
Registered: May 2015
Posts: 2

Rep: Reputation: Disabled
solved, add --with-kernel-dir=/usr/src/linux/include/uapi to ./configure line
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keepalived problem with two vrrp_instance on different interfaces igorzas Linux - Networking 6 08-21-2012 07:08 AM
Keepalived problem with load balancing shorif2000 Linux - Networking 1 07-26-2012 12:19 PM
Need help ti monitor KEEPALIVED cluster hhvv Linux - Desktop 1 07-01-2008 01:11 PM
Problem installing keepalived on FC5!! vishamr2000 Fedora 3 05-19-2007 05:29 AM
Help with keepalived!! vishamr2000 Linux - Networking 1 05-15-2007 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration