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

Compiling problem on FreeBSD 8.1

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
ophmun



Joined: 19 Dec 2010
Posts: 1

PostPosted: Sun Dec 19, 2010 5:43 pm    Post subject: Compiling problem on FreeBSD 8.1 Reply with quote

The OS is FreeBSD 8.1 ( pcre and zlib installed )

I've had some trouble compiling TinTin++ 2.00.4.

Code:
gcc -Wall  -O2 -pipe  -D_GNU_SOURCE -DHAVE_CONFIG_H   -I/usr/local/include -c forkpty.c
forkpty.c:23:21: error: stropts.h: No such file or directory
forkpty.c: In function 'open_slave':
forkpty.c:86: error: 'I_FIND' undeclared (first use in this function)
forkpty.c:86: error: (Each undeclared identifier is reported only once
forkpty.c:86: error: for each function it appears in.)
forkpty.c:96: error: 'I_PUSH' undeclared (first use in this function)
*** Error code 1

Stop in /tmp/tt/src.


stropts.h is not in my system, and I don't know what package should be installed for this header file.

You can find some packages on Fedora (arm-gp2x-linux-glibc-2.3.6-6.fc11.noarch, etc..), but what on FreeBSD??[/code]
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Sun Dec 19, 2010 7:04 pm    Post subject: Reply with quote

Easiest is probably to remove the #run command.

Edit system.c and change do_run to:
Code:

DO_COMMAND(do_run)
{
    return ses
}


Next edit forkpty.c and change row 3 to:
Code:

#if 0 && !defined(HAVE_PTY_H) && defined(HAVE__DEV_PTMX) && !defined(HAVE_FORKPTY)


That might get it to compile.
Back to top
View user's profile Send private message Send e-mail
Slither



Joined: 17 May 2014
Posts: 22

PostPosted: Sat May 17, 2014 12:19 pm    Post subject: Reply with quote

[quote="Scandum"]Edit system.c and change do_run to:
Code:

DO_COMMAND(do_run)
{
    return ses
}


You need a semicolon after "return ses".

Is this issue going to be fixed? The 2.01.0 beta includes sys/ioctl.h but still requires stropts.h
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Sat May 17, 2014 4:45 pm    Post subject: Reply with quote

I don't have a system to test this on, so best if someone else figures it out.
Back to top
View user's profile Send private message Send e-mail
Slither



Joined: 17 May 2014
Posts: 22

PostPosted: Sat May 17, 2014 6:46 pm    Post subject: Reply with quote

Scandum wrote:
I don't have a system to test this on, so best if someone else figures it out.


VMWare mostly eliminates the need for multiple systems.
Back to top
View user's profile Send private message
shevegen



Joined: 01 May 2005
Posts: 26

PostPosted: Sun May 25, 2014 11:44 am    Post subject: Reply with quote

Quote:
VMWare mostly eliminates the need for multiple systems.


Why should Scandum run some esoteric OS he does not use?

He gave advice how to fix it - if anyone uses that unknown OS mentioned then they can surely feedback whether it works or whether it does not.

Real people will use Linux and compile from source. I do, and tintin works beautifully on it.
Back to top
View user's profile Send private message
Slysven



Joined: 10 Apr 2011
Posts: 365
Location: As "Jomin al'Bara" in WoTMUD or Wiltshire, UK

PostPosted: Fri Jun 06, 2014 2:30 pm    Post subject: Reply with quote

*prepares a bucket of water to put out the flames...*
Real people use a *nix system {A BSD Unix OR GNU/Linux is fine, Cygwin is acceptable only if your boss won't let you totally uncouple from the Redmond Hegemony} and compile from source, yep, and we should encourage the world domination by such OS's... POSIX_ME_HARDER
Back to top
View user's profile Send private message
Xozes



Joined: 09 Oct 2014
Posts: 25

PostPosted: Sun Oct 12, 2014 11:20 am    Post subject: Reply with quote

shevegen wrote:
Quote:
VMWare mostly eliminates the need for multiple systems.


Why should Scandum run some esoteric OS he does not use?

He gave advice how to fix it - if anyone uses that unknown OS mentioned then they can surely feedback whether it works or whether it does not.

Real people will use Linux and compile from source. I do, and tintin works beautifully on it.


Esoteric. You mean like Linux was esoteric for 2 decades? Yea. Good thing people didn't listen to that rotgut back then either huh?

Screw linux and their "holier than thou" attitudes, and their Poetteringware. FreeBSD FTW.
Back to top
View user's profile Send private message
PowerGod



Joined: 04 Aug 2014
Posts: 339

PostPosted: Mon Oct 13, 2014 4:11 am    Post subject: Reply with quote

Slysven wrote:
*prepares a bucket of water to put out the flames...*
Real people use a *nix system {A BSD Unix OR GNU/Linux is fine, Cygwin is acceptable only if your boss won't let you totally uncouple from the Redmond Hegemony} and compile from source, yep, and we should encourage the world domination by such OS's... POSIX_ME_HARDER


I'm sorry to feed the OT but I feel called into question...
Real people are also stuck with Windows because of the Games made just for that platform, and isn't really fun rebooting everytime stopping everything else just to play a game (and no, virtual machines are too slow to be useful)... so at the end Windows becomes the main platform to do even the rest... (I'm following with interest what Steam is trying to obtain anyway...)

Cygwin seems like the light of the heavens to me, and made me able to do many of the things I was missing from linux, so insted of using WinTin I was able to compile the "real program" and use #SYSTEM commands too Smile
An this is very useful because I use TinTin++ even on an handheld with linux so I can use the same scripts Smile

So at the end of the day, I'm more a fan of GNU than other else Big Smile
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 -> General Discussion 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