TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Source Code: termcap?

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
juster



Joined: 11 Oct 2008
Posts: 1

PostPosted: Sat Oct 11, 2008 2:57 pm    Post subject: Source Code: termcap? Reply with quote

This isn't really a bug but I wasn't sure where to put this post.

tintin looks for termcap when 'configure'ing. configure checks for the tgetent function from termcap but I couldn't find it used in the source code.

So I removed termcap from the configure.in file, ran autoconf, ./configure, make, etc. and it seems to work fine.

The simple patch is below:
Code:

--- tt/src/configure.in   2007-11-18 07:14:58.000000000 -0800
+++ tt-patched/src/configure.in   2008-10-11 12:35:34.000000000 -0700
@@ -66,7 +66,7 @@
 # Checks for header files.
 
 AC_HEADER_STDC
-AC_CHECK_HEADERS([arpa/inet.h ctype.h fcntl.h net/errno.h netdb.h netinet/in.h param.h pthread.h socks.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/ptem.h sys/socket.h sys/termio.h sys/time.h termcap.h time.h unistd.h zlib.h util.h pty.h])
+AC_CHECK_HEADERS([arpa/inet.h ctype.h fcntl.h net/errno.h netdb.h netinet/in.h param.h pthread.h socks.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/ptem.h sys/socket.h sys/termio.h sys/time.h time.h unistd.h zlib.h util.h pty.h])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
@@ -90,7 +90,6 @@
 
 # Checks libraries
 
-AC_CHECK_LIB(termcap, tgetent)
 AC_CHECK_LIB(z, inflate)
 AC_CHECK_LIB(pthread, pthread_create)
 AC_CHECK_LIB(nsl, gethostbyname)


To use patch:
tar zxf tintin-1.98.5.tar.gz
cd tt
(copy/paste patch above to tt.patch file in tt directory)
patch -p1 < tt.patch
cd src
autoconf
./configure && make
...

Perhaps termcap is just a throwback to tintin++'s old code, it was removed, and forgotten about. Or perhaps I broke something doing this. I'll keep using my patched version and see if it breaks.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Sat Oct 11, 2008 3:56 pm    Post subject: Reply with quote

Looks like it is indeed not needed. Thanks for the fix. Smile
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group