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

Problem Compiling on Ubuntu Breezy Badger (5.10)

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



Joined: 01 May 2005
Posts: 7
Location: Saratoga Springs, New York

PostPosted: Wed Jun 07, 2006 8:23 pm    Post subject: Problem Compiling on Ubuntu Breezy Badger (5.10) Reply with quote

I ran into a problem compiling tintin's source on an Ubuntu Breezy Badger machine. Here's what I got:


Code:
~/tt/src$ make
gcc -Wall  -D_GNU_SOURCE -DHAVE_CONFIG_H     -c action.c
In file included from action.c:29:
tintin.h:31:18: error: zlib.h: No such file or directory
tintin.h:33:31: error: readline/readline.h: No such file or directory
tintin.h:34:30: error: readline/history.h: No such file or directory
In file included from action.c:29:
tintin.h:427: error: syntax error before ‘z_stream’
tintin.h:427: warning: no semicolon at end of struct or union
tintin.h:460: error: syntax error before ‘}’ token
tintin.h:472: error: syntax error before ‘Keymap’
tintin.h:472: warning: no semicolon at end of struct or union
tintin.h:473: error: ‘time’ redeclared as different kind of symbol
/usr/include/time.h:184: error: previous declaration of ‘time’ was here
tintin.h:482: error: syntax error before ‘}’ token
action.c: In function ‘do_action’:
action.c:40: error: dereferencing pointer to incomplete type
action.c: In function ‘do_unaction’:
action.c:79: error: dereferencing pointer to incomplete type
action.c: In function ‘check_all_actions’:
action.c:105: error: dereferencing pointer to incomplete type
action.c:117: error: dereferencing pointer to incomplete type
make: *** [action.o] Error 1


Configure didn't report any problems, so it must just assume I have that lib, which apparently I don't. Just thought I'd let you know so you could look into it.
_________________
The road goes ever on and on,
down from the door where it began.
Now far ahead the road has gone,
and I must follow if I can.
- JRR Tolkien
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Wed Jun 07, 2006 9:07 pm    Post subject: Reply with quote

I reckon ./configure said:

Quote:

checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes

...

checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes


Regardless, there's not too much I can do about it since I don't know a whole lot about autoconf =]

I asume it compiles okay after installing readline and zlib.
Back to top
View user's profile Send private message Send e-mail
Alcon



Joined: 01 May 2005
Posts: 7
Location: Saratoga Springs, New York

PostPosted: Wed Jun 07, 2006 9:44 pm    Post subject: Reply with quote

That's weird...

Code:
checking readline/history.h usability... no
checking readline/history.h presence... no
checking for readline/history.h... no
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no


Code:

checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes


I definately have readline installed and I just installed the dev packages for zlib (I just had the lib installed before). But configure definately doesn't report any kind of error.

Query why its not finding readline. Ubuntu is a Debian derivative so it probably stores it in a weird place. Where is tintin looking for it right now?

Edit: ok, installing the zlib-dev package fixed the zlib problem I'm gonna go see if there's a similar issue with readline.

Edit 2: Yep that did it. Maybe make a note in the install file that ubuntu (and probably debian too) users need to make sure that they have the zlib1g-dev/zlibc and libreadline-dev/libreadline-dbg packages installed before compiling.
_________________
The road goes ever on and on,
down from the door where it began.
Now far ahead the road has gone,
and I must follow if I can.
- JRR Tolkien
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Thu Jun 08, 2006 5:43 am    Post subject: Reply with quote

Alcon wrote:

Edit: ok, installing the zlib-dev package fixed the zlib problem I'm gonna go see if there's a similar issue with readline.

Edit 2: Yep that did it. Maybe make a note in the install file that ubuntu (and probably debian too) users need to make sure that they have the zlib1g-dev/zlibc and libreadline-dev/libreadline-dbg packages installed before compiling.

Okie, I'll make a mention of it in the install section.

Btw, can you check if the pre-compiled slackware binary works for Ubuntu?
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