It is currently Tue Aug 20, 2019 3:10 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: ippool problem
PostPosted: Mon Nov 14, 2011 6:21 am 

Joined: Thu Mar 24, 2011 5:08 pm
Posts: 8
I am trying to build a l2tp server with ip pool support on RHEL 6.0 x86_64. I downloaded the ippool package from here: http://sourceforge.net/projects/openl2t ... m/download. But i can't install it because of i have already installed libreadline.so.6()(64bit) and i have installed ppp-2.4.5,the dependency lays on lower version libreadline.so.5 and ppp 2.4.4. Have i downloaded the right package for ippool? How can i install that? thanks for your help.


Top
 Profile  
 
 Post subject: Re: ippool problem
PostPosted: Thu Nov 24, 2011 6:14 am 

Joined: Thu Mar 24, 2011 5:08 pm
Posts: 8
finally, i found a place to download the source of ippool at http://sourceforge.net/projects/openl2t ... ppool/1.3/, complile and install it, and it works.


Top
 Profile  
 
 Post subject: Re: ippool problem
PostPosted: Tue Feb 21, 2012 1:26 pm 

Joined: Tue Feb 21, 2012 1:20 pm
Posts: 1
I have a similar problem but when I try to compile de sources I get the following messages:

ake[1]: Entering directory `/usr/local/src/ippool-1.3/usl'
gcc -c -I. -MMD -Wall -Werror -O -g usl_timer.c -o usl_timer.o
usl_timer.c: In function âusl_timer_tick_handlerâ:
usl_timer.c:154: error: âUINT_MAXâ undeclared (first use in this function)
usl_timer.c:154: error: (Each undeclared identifier is reported only once
usl_timer.c:154: error: for each function it appears in.)
make[1]: *** [usl_timer.o] Error 1
make[1]: Leaving directory `/usr/local/src/ippool-1.3/usl'
make: *** [subdirs-all] Error 1

Do you have any idea how can I remove this error ?

Thanks.


Top
 Profile  
 
 Post subject: Re: ippool problem
PostPosted: Wed Feb 22, 2012 9:38 am 
Site Admin

Joined: Sun Jul 27, 2008 1:39 pm
Posts: 122
jatoledano wrote:
I have a similar problem but when I try to compile de sources I get the following messages:

ake[1]: Entering directory `/usr/local/src/ippool-1.3/usl'
gcc -c -I. -MMD -Wall -Werror -O -g usl_timer.c -o usl_timer.o
usl_timer.c: In function âusl_timer_tick_handlerâ:
usl_timer.c:154: error: âUINT_MAXâ undeclared (first use in this function)
usl_timer.c:154: error: (Each undeclared identifier is reported only once
usl_timer.c:154: error: for each function it appears in.)
make[1]: *** [usl_timer.o] Error 1
make[1]: Leaving directory `/usr/local/src/ippool-1.3/usl'
make: *** [subdirs-all] Error 1

What Linux distro are you using?


Top
 Profile  
 
 Post subject: Re: ippool problem
PostPosted: Wed Apr 11, 2012 5:01 pm 

Joined: Thu Feb 23, 2012 3:57 am
Posts: 2
centos 6.2(x86_64)
have a similar problem but when I try to compile de sources I get the following messages:

rm -f ippool_rpc_server.c ippool_rpc_server.c.tmp
rpcgen -N -M -C -L -m -o ippool_rpc_server.c.tmp ippool_rpc.x
cat ippool_rpc_server.c.tmp | sed -e 's/switch (rqstp->rq_proc) {/if (ippool_api_rpc_check_request(transp) < 0) return; switch (rqstp->rq_proc) {/' > ippool_rpc_server.c
rm -f ippool_rpc_client.c
rpcgen -N -M -C -L -l -o ippool_rpc_client.c ippool_rpc.x
rm -f ippool_rpc_xdr.c
rpcgen -N -M -C -L -c -o ippool_rpc_xdr.c ippool_rpc.x
rm -f ippool_rpc.h
rpcgen -N -M -C -L -h -o ippool_rpc.h ippool_rpc.x
gcc -I. -MMD -g -c -w -O ippool_rpc_xdr.c
gcc -I. -MMD -g -c -w -O ippool_rpc_client.c
make[1]: Entering directory `/usr/src/ippool-1.3/usl'
gcc -c -I. -MMD -Wall -Werror -O -g usl_fd.c -o usl_fd.o
gcc -c -I. -MMD -Wall -Werror -O -g usl_misc.c -o usl_misc.o
gcc -c -I. -MMD -Wall -Werror -O -g usl_pid.c -o usl_pid.o
gcc -c -I. -MMD -Wall -Werror -O -g usl_signal.c -o usl_signal.o
gcc -c -I. -MMD -Wall -Werror -O -g usl_timer.c -o usl_timer.o
gcc -c -I. -MMD -Wall -Werror -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 `/usr/src/ippool-1.3/usl'
make[1]: Entering directory `/usr/src/ippool-1.3/cli'
gcc -c -O -MMD -Wall -Werror -I.. cli_lib.c -o cli_lib.o
gcc -c -O -MMD -Wall -Werror -I.. cli_readline.c -o cli_readline.o
ar rus libcli.a cli_lib.o cli_readline.o
ar: creating libcli.a
make[1]: Leaving directory `/usr/src/ippool-1.3/cli'
make[1]: Entering directory `/usr/src/ippool-1.3/pppd'
gcc -o ippool.so -shared -g -I.. -I/usr/include/pppd -fPIC -D_linux_=1 ippool.c ../ippool_rpc_client.o ../ippool_rpc_xdr.o
/usr/bin/ld: ../ippool_rpc_client.o: relocation R_X86_64_32 against `xdr_ippool_api_app_msg_data' can not be used when making a shared object; recompile with -fPIC
../ippool_rpc_client.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [ippool.so] Error 1
make[1]: Leaving directory `/usr/src/ippool-1.3/pppd'
make: *** [subdirs-all] Error 1


Top
 Profile  
 
 Post subject: Re: ippool problem
PostPosted: Thu Apr 12, 2012 6:06 pm 
Site Admin

Joined: Sun Jul 27, 2008 1:39 pm
Posts: 122
stevenliang wrote:
centos 6.2(x86_64)
have a similar problem but when I try to compile de sources I get the following messages:
...
gcc -o ippool.so -shared -g -I.. -I/usr/include/pppd -fPIC -D_linux_=1 ippool.c ../ippool_rpc_client.o ../ippool_rpc_xdr.o
/usr/bin/ld: ../ippool_rpc_client.o: relocation R_X86_64_32 against `xdr_ippool_api_app_msg_data' can not be used when making a shared object; recompile with -fPIC
../ippool_rpc_client.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [ippool.so] Error 1
make[1]: Leaving directory `/usr/src/ippool-1.3/pppd'
make: *** [subdirs-all] Error 1

There's a bug in the makefile such that compile flags applied via CFLAGS are not used when compiling the RPC objects.

Try this as a workaround:
Code:
make OPT_CFLAGS=-fPIC


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 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