Skip to content

CentOs make redis2.6.11 error #1027

@liguirong98

Description

@liguirong98

lsb_release -a

LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.6 (Final)
Release: 5.6
Codename: Final

uname -a

Linux lovm09 2.6.18-238.el5 #1 SMP Thu Jan 13 15:51:15 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

make

cd src && make all
make[1]: Entering directory /home/ligr/redis-2.4.9/src' MAKE hiredis make[2]: Entering directory/home/ligr/redis-2.4.9/deps/hiredis'
cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/limits.h:122,
from /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/syslimits.h:7,
from /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include/limits.h:11,
from /usr/include/bits/socket.h:31,
from /usr/include/sys/socket.h:35,
from net.c:35:
/usr/include/bits/local_lim.h:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before numeric constant
In file included from /usr/include/sys/socket.h:35,
from net.c:35:
/usr/include/bits/socket.h:218: error: expected specifier-qualifier-list before ‘socklen_t’
/usr/include/bits/socket.h: In function ‘__cmsg_nxthdr’:
/usr/include/bits/socket.h:278: error: ‘struct msghdr’ has no member named ‘msg_control’
/usr/include/bits/socket.h:279: error: ‘struct msghdr’ has no member named ‘msg_controllen’
/usr/include/bits/socket.h:281: error: ‘struct msghdr’ has no member named ‘msg_control’
/usr/include/bits/socket.h:281: error: ‘struct msghdr’ has no member named ‘msg_controllen’
In file included from net.c:35:
/usr/include/sys/socket.h: At top level:
/usr/include/sys/socket.h:110: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
/usr/include/sys/socket.h:115: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
/usr/include/sys/socket.h:124: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
/usr/include/sys/socket.h:129: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
/usr/include/sys/socket.h:152: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
/usr/include/sys/socket.h:163: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
/usr/include/sys/socket.h:187: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
/usr/include/sys/socket.h:193: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
/usr/include/sys/socket.h:210: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
In file included from net.c:40:
/usr/include/arpa/inet.h:66: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
In file included from net.c:44:
/usr/include/netdb.h:544: error: expected specifier-qualifier-list before ‘socklen_t’
/usr/include/netdb.h:647: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
/usr/include/netdb.h:648: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
/usr/include/netdb.h:649: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
net.c: In function ‘redisSetReuseAddr’:
net.c:67: error: too many arguments to function ‘setsockopt’
net.c: In function ‘redisSetTcpNoDelay’:
net.c:116: error: too many arguments to function ‘setsockopt’
net.c: In function ‘redisCheckSocketError’:
net.c:165: error: ‘socklen_t’ undeclared (first use in this function)
net.c:165: error: (Each undeclared identifier is reported only once
net.c:165: error: for each function it appears in.)
net.c:165: error: expected ‘;’ before ‘errlen’
net.c:167: error: ‘errlen’ undeclared (first use in this function)
net.c:167: error: too many arguments to function ‘getsockopt’
net.c: In function ‘redisContextSetTimeout’:
net.c:184: error: too many arguments to function ‘setsockopt’
net.c:188: error: too many arguments to function ‘setsockopt’
net.c: In function ‘redisContextConnectTcp’:
net.c:210: error: ‘struct addrinfo’ has no member named ‘ai_next’
net.c:216: error: ‘struct addrinfo’ has no member named ‘ai_addr’
net.c:216: error: ‘struct addrinfo’ has no member named ‘ai_addrlen’
net.c:216: error: too many arguments to function ‘connect’
net.c: In function ‘redisContextConnectUnix’:
net.c:263: error: too many arguments to function ‘connect’
make[2]: *** [net.o] Error 1
make[2]: Leaving directory /home/ligr/redis-2.4.9/deps/hiredis' make[1]: *** [dependencies] Error 2 make[1]: Leaving directory/home/ligr/redis-2.4.9/src'
make: *** [all] Error 2

help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions