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

Problems compiling under Debian

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



Joined: 21 Jan 2008
Posts: 11

PostPosted: Mon Jan 21, 2008 9:22 am    Post subject: Problems compiling under Debian Reply with quote

When I try to compile the source under Debian I'm getting this warning in main.c

gcc -Wall -D_GNU_SOURCE -DHAVE_CONFIG_H -c main.c
main.c: In function 'main':
main.c:205: warning: comparison is always true due to limited range of data type

Which corresponds to the line
while ((c = getopt(argc, argv, "e: h r: t: v")) != EOF)

The program will run without problem as long as you don't pass any command line variables to it. If you do you get an endless stream of
Unknown option '<y char with two dots over it>', meaning its probably reading well past EOF when launching.

I've apt-get installed pretty much every program or library I can think of that would be needed by Debian to compile tt++, but no effect yet. Can anyone suggest a prog or library that if missing might cause this problem?

Also, when I launch the precompiled Linux binary I get:
-bash: ./tt++: cannot execute binary file

This isn't so critical if I can compile my own.

Thanks,
Steve
Back to top
View user's profile Send private message
titeuf



Joined: 29 Jul 2006
Posts: 84

PostPosted: Mon Jan 21, 2008 11:27 am    Post subject: Reply with quote

Take a look at this thread
it's probably the same bug and in there you'll find the fix for it.
public-transportation clinics insurance-licensing lumber-yards engineer prescriptions-online humane-societies dept-of-transportation social-service government-jobs law-firms pain-killers provider Cialis food-stamps low-income-housing online-pharmacies birth-certificates society-of-cpa tattoo-parlors communty retailers dmv forensic-science home-inspectors music-stores pediatricians day-cares chiro rottweiler-breeders highways agricultural passport-office airflights travel-agent school-districts chihuahua-rescue child-care deptartment-of-revenue psychologists


Last edited by titeuf on Wed Dec 17, 2008 8:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
sdb



Joined: 21 Jan 2008
Posts: 11

PostPosted: Mon Jan 21, 2008 12:27 pm    Post subject: Reply with quote

Indeed that is the same problem and same fix. I had searched the forums for the warning I had received, but not on that line of code.

Thanks for the assist.
Back to top
View user's profile Send private message
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