Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Alternative Civs > Freeciv > Compiling error... please help
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
04.Sep: `FC` 2.0.5 COMPLETED AND RELEASED
27.Jul: `FC` 2.0.4 COMPLETED AND RELEASED
16.Jul: `FC` 2.0.3 COMPLETED AND RELEASED

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
CMaster2003 is offline CMaster2003
Settler
Pitesti, Romania
Nov 2003
time: 05:33
  Old Post 04-01-2004 03:01
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Compiling error... please help Support Apolyton, buy Alpha Centauri

I have finally (almost) managed to compile freeciv with Mingw and Msys(I'll post a thread to tell others what is needed) and everything works fine until the creation of civserver.exe and civclient.exe. The reason is the following error:


"In function 'handle_readline_input_callback' [...]/sernet.c:160: undefined reference to 'handle_stdin_close' "


Here's the function's code:


#ifdef HAVE_LIBREADLINE
/ **************************************************
**************************/
#define HISTORY_FILENAME ".civserver_history"
#define HISTORY_LENGTH 100
static char *history_file = NULL;
static bool readline_handled_input = FALSE;
static bool readline_initialized = FALSE;
/ **************************************************
***************************
...
**************************************************
***************************/
static void handle_readline_input_callback(char *line)
{
if (no_input)
return;
if (!line) {
handle_stdin_close(); /* maybe print an 'are you sure?' message? */
return;
}

if (line[0] != '\0')
add_history(line);

con_prompt_enter(); /* just got an 'Enter' hit */
handle_stdin_input((struct connection*)NULL, line);

readline_handled_input = TRUE;
}
#endif /* HAVE_LIBREADLINE */



My guess is that it's something going on with
#ifdef HAVE_LIBREADLINE ; I mean maybe this variable is not defined and so the compiler doesn't recognizes that function.
Here's the definition of it:

#ifndef SOCKET_ZERO_ISNT_STDIN
static void handle_stdin_close(void)
{
freelog(LOG_NORMAL, _("Server cannot read standard input. Ignoring input."));
no_input = TRUE;
}
#endif


Again it can be something wrong with "#ifndef ...".
I could've tried to modify these things on my on but the consequences might be desatrous since those variables are used in many other .c files (I think) and so I wouldn't have done anything but make things worse!

If anyone knows what is wrong please give me a hand. This is all the info I can provide about this error...

LAST QUESTION: Is freeciv 1.15 ready for download? (if yes, where from?(the source and the compiled program pls))

Per is offline Per
Freeciv Developer

May 2002
time: 06:33
  Old Post 04-01-2004 17:03
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Increase Your PM Length

Check if HAVE_LIBREADLINE is defined in config.h

The 1.15.0 release won't be out for a few more months.

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:33
  Old Post 04-01-2004 17:28 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Got spare money?

That function is not very important; it is only needed if you need to run the civserver in a script, which people only need when they run permanent servers like civserver.freeciv.org. So if you want to you can just comment out the function call.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:33.
Apolyton Time is 00:33.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0267 seconds (87.17% PHP - 12.83% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net