It is currently Wed Jul 18, 2018 3:19 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Error Installing openl2tp on CentOS
PostPosted: Wed Jun 20, 2012 7:16 pm 

Joined: Wed Jun 20, 2012 7:08 pm
Posts: 2
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.


Top
 Profile  
 
 Post subject: Re: Error Installing openl2tp on CentOS
PostPosted: Fri Aug 03, 2012 12:32 pm 
Site Admin

Joined: Sun Jul 27, 2008 1:39 pm
Posts: 122
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group