openl2tp.org
http://forums.openl2tp.org/

Error Installing openl2tp on CentOS
http://forums.openl2tp.org/viewtopic.php?f=3&t=108
Page 1 of 1

Author:  ssubbu [ Wed Jun 20, 2012 7:16 pm ]
Post subject:  Error Installing openl2tp on CentOS

Hi Everyone,

I have trouble installing openl2tp on CentOS.
I am using Kernel:2.6.32-71.el6.i686

I download openl2tp-1.8 version and when use the make command, I am getting the following error:

openl2tp-1.8]# make
rm -f l2tp_rpc.h
rpcgen -N -M -C -L -h -o l2tp_rpc.h l2tp_rpc.x
rm -f l2tp_rpc_server.c l2tp_rpc_server.c.tmp
rpcgen -N -M -C -L -m -o l2tp_rpc_server.c.tmp l2tp_rpc.x
cat l2tp_rpc_server.c.tmp | sed -e 's/switch (rqstp->rq_proc) {/if (l2tp_api_rpc_check_request(transp) < 0) return; switch (rqstp->rq_proc) {/' > l2tp_rpc_server.c
rm -f l2tp_rpc_client.c
rpcgen -N -M -C -L -l -o l2tp_rpc_client.c l2tp_rpc.x
rm -f l2tp_rpc_xdr.c
rpcgen -N -M -C -L -c -o l2tp_rpc_xdr.c l2tp_rpc.x
flex -ol2tp_config_token.c l2tp_config_token.l
bison -d -o l2tp_config_parse.c l2tp_config_parse.y
make -C usl EXTRA_CFLAGS=" -DL2TP_ASYNC_RPC"
make[1]: Entering directory `/root/openl2tp-1.8/usl'
gcc -c -I. -MMD -Wall -Werror -Wno-strict-aliasing -O -g usl_fd.c -o usl_fd.o
gcc -c -I. -MMD -Wall -Werror -Wno-strict-aliasing -O -g usl_misc.c -o usl_misc.o
gcc -c -I. -MMD -Wall -Werror -Wno-strict-aliasing -O -g usl_pid.c -o usl_pid.o
gcc -c -I. -MMD -Wall -Werror -Wno-strict-aliasing -O -g usl_signal.c -o usl_signal.o
gcc -c -I. -MMD -Wall -Werror -Wno-strict-aliasing -O -g usl_timer.c -o usl_timer.o
gcc -c -I. -MMD -Wall -Werror -Wno-strict-aliasing -O -g usl_fsm.c -o usl_fsm.o
ar rus libusl.a usl_fd.o usl_misc.o usl_pid.o usl_signal.o usl_timer.o usl_fsm.o
ar: creating libusl.a
make[1]: Leaving directory `/root/openl2tp-1.8/usl'
make -C cli EXTRA_CFLAGS=" -DL2TP_ASYNC_RPC"
make[1]: Entering directory `/root/openl2tp-1.8/cli'
gcc -c -O -MMD -Wall -Werror -I.. cli_lib.c -o cli_lib.o
cli_lib.c:24:31: error: readline/readline.h: No such file or directory
cli_lib.c:25:30: error: readline/history.h: No such file or directory
cc1: warnings being treated as errors
cli_lib.c: In function 'cli_stuff_args':
cli_lib.c:197: error: implicit declaration of function 'strlen'
cli_lib.c:197: error: incompatible implicit declaration of built-in function 'strlen'
cli_lib.c: In function 'cli_redirect_io':
cli_lib.c:216: error: 'rl_instream' undeclared (first use in this function)
cli_lib.c:216: error: (Each undeclared identifier is reported only once
cli_lib.c:216: error: for each function it appears in.)
cli_lib.c:217: error: 'rl_outstream' undeclared (first use in this function)
cli_lib.c: In function 'cli_find_node':
cli_lib.c:297: error: incompatible implicit declaration of built-in function 'strlen'
cli_lib.c:305: error: implicit declaration of function 'index'
cli_lib.c:305: error: incompatible implicit declaration of built-in function 'index'
cli_lib.c:311: error: implicit declaration of function 'strncasecmp'
cli_lib.c: In function 'cli_find_args':
cli_lib.c:417: error: incompatible implicit declaration of built-in function 'index'
cli_lib.c: In function 'cli_execute':
cli_lib.c:454: error: incompatible implicit declaration of built-in function 'strlen'
cli_lib.c: In function 'cli_arg_parse_bool':
cli_lib.c:609: error: implicit declaration of function 'strcasecmp'
cli_lib.c: In function 'cli_arg_parse_hex':
cli_lib.c:677: error: incompatible implicit declaration of built-in function 'strlen'
make[1]: *** [cli_lib.o] Error 1
make[1]: Leaving directory `/root/openl2tp-1.8/cli'
make: *** [subdir-cli] Error 2

Thanks in advance for your help.

Author:  jchapman [ Fri Aug 03, 2012 12:32 pm ]
Post subject:  Re: Error Installing openl2tp on CentOS

Quote:
cli_lib.c:24:31: error: readline/readline.h: No such file or directory
cli_lib.c:25:30: error: readline/history.h: No such file or directory

Try installing readline-devel.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/