[Rstplib-users] Re: [readline] RSTPLIB Installation Question!!
Status: Alpha
Brought to you by:
ralex
From: Y.H. K. <is...@ms...> - 2002-01-17 06:30:20
|
Hi Alex and all, I just get the patch and fix the source code, with CFLAGS include -DOLD_READLINE, I can make source OKAY with the following environment, PLATFORM 1: mandrake 8.0 kernel 2.4.3-20 with readline 4.1 ==== ... gcc bridge.o stp_cli.o stp_to.o -lutil -lreadline -ltermcap -lpthread -L. -lrstp -luid -lcli -o bridge ./libuid.a(uid_sock.o): In function `UiD_SocketInit': /home/sam/rstplib/uid_sock.c:95: the use of `tmpnam' is dangerous, better use `mkstemp' gcc -g -Wall -D_REENTRANT -D__LINUX__ -DSTP_DBG=1 -DOLD_READLINE -c -o mngr.o mngr.c gcc mngr.o -lutil -lreadline -ltermcap -lpthread -L. -luid -lcli -o mngr ./libuid.a(uid_sock.o): In function `UiD_SocketInit': /home/sam/rstplib/uid_sock.c:95: the use of `tmpnam' is dangerous, better use `mkstemp' ... ==== ==== PLATFORM 2: mandrake 7.0 kernel 2.2.14 with readline 4.0 ... gcc -g -Wall -D_REENTRANT -D__LINUX__ -DSTP_DBG=1 -DOLD_READLINE -c -o cli.o cli.c cli.c: In function `rl_read_cli': cli.c:394: warning: passing arg 2 of `rl_callback_handler_install' from incompat ible pointer type cli.c: In function `cli_private_completion': cli.c:485: warning: implicit declaration of function `completion_matches' cli.c:485: warning: assignment makes pointer from integer without a cast cli.c: In function `rl_init': cli.c:499: warning: passing arg 2 of `rl_callback_handler_install' from incompat ible pointer type cli.c:500: warning: passing arg 2 of `rl_bind_key' from incompatible pointer type cli.c:501: warning: assignment from incompatible pointer type rm -f libcli.a ar cru libcli.a cli.o ranlib libcli.a gcc bridge.o stp_cli.o stp_to.o -lutil -lreadline -ltermcap -lpthread -L. -lrst p -luid -lcli -o bridge gcc -g -Wall -D_REENTRANT -D__LINUX__ -DSTP_DBG=1 -DOLD_READLINE -c -o mngr.o mngr.c gcc mngr.o -lutil -lreadline -ltermcap -lpthread -L. -luid -lcli -o mngr ... ==== PLATFORM 3: However, I tried it with Mandrake 8.1 and readline 4.2 is still fail...... MISS libtermcap!? ... rm -f libcli.a ar cru libcli.a cli.o ranlib libcli.a gcc bridge.o stp_cli.o stp_to.o -lutil -lreadline -ltermcap -lpthread -L. -lrst p -luid -lcli -o bridge /usr/bin/ld: cannot find -ltermcap collect2: ld returned 1 exit status make: *** [bridge] Error 1 ... [root@linux lib]# ls -la | grep termcap lrwxrwxrwx 1 root root 19 1月 15 23:15 libtermcap.so.2 -> libtermcap.so.2.0.8* -rwxr-xr-x 1 root root 11992 7月 31 02:49 libtermcap.so.2.0.8* ==== I think the readline must have some problem with compatibility, I am a newbie for 802.1w, still confused for status machine...... @_@|| thank you, Alex, best regards, --Ku > Attached is a patch to solve readline version incompatibility problem. > If you work with RedHat 7.2 and/or readline 4.2, delete the definition > OLD_READLINE in CFLAGS in Makefile. > In future there will be configure in our project, is there volunteer[s]? > > Best regards, Alex |