Re: [Freeciv-Dev] (PR#40300) can't compile S2_2

2008-06-22 Thread Jason Dorje Short

URL: http://bugs.freeciv.org/Ticket/Display.html?id=40300 

Jason Dorje Short wrote:

 It seems to me that this is a missing 
 dependency for api_gen.c however; it should depend on the toluaxx 
 program itself so if that program changes it gets regenerated.

Like this.

-jason

Index: server/scripting/Makefile.am
===
--- server/scripting/Makefile.am	(revision 14826)
+++ server/scripting/Makefile.am	(working copy)
@@ -34,5 +34,5 @@
 
 BUILT_SOURCES = api_gen.c api_gen.h
 
-api_gen.c api_gen.h: api.pkg
+api_gen.c api_gen.h: api.pkg $(TOLUA)
 	$(TOLUA) -n api -o $(srcdir)/api_gen.c -H $(srcdir)/api_gen.h $(srcdir)/api.pkg
___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] (PR#40300) can't compile S2_2

2008-06-22 Thread Jason Dorje Short

URL: http://bugs.freeciv.org/Ticket/Display.html?id=40300 

Marko Lindqvist wrote:
 URL: http://bugs.freeciv.org/Ticket/Display.html?id=40300 
 
 2008/6/22 Jason Dorje Short [EMAIL PROTECTED]:
 URL: http://bugs.freeciv.org/Ticket/Display.html?id=40300 

 api_gen.c:11:19: error: tolua.h: No such file or directory

 I'm fairly sure this is after a fresh compilation.
 
  It seems that api_gen.c has not been regenerated with toluaxx. It
 might require --enable-maintainer-mode to work correctly if
 api_gen.[ch] already exist.
 
  Here is header of api_gen.c when generated with toluaxx:
 
 /*
 ** Lua binding: api
 ** Generated automatically by toluaxx-1.1.0 on Sun Jun 22 05:57:04 2008.
 */

Okay ignore that last.  It was a fresh checkout of the dependencies 
directory only; the server directory containing the stale copy of 
api_gen.c was unchanged.  It seems to me that this is a missing 
dependency for api_gen.c however; it should depend on the toluaxx 
program itself so if that program changes it gets regenerated.

/*
** Lua binding: api
** Generated automatically by tolua 5.0a on Sat Jun 21 22:56:45 2008.
*/

-jason



___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] (PR#40300) can't compile S2_2

2008-06-22 Thread Jason Dorje Short

URL: http://bugs.freeciv.org/Ticket/Display.html?id=40300 

Marko Lindqvist wrote:
 URL: http://bugs.freeciv.org/Ticket/Display.html?id=40300 
 
 2008/6/22 Jason Dorje Short [EMAIL PROTECTED]:
 URL: http://bugs.freeciv.org/Ticket/Display.html?id=40300 

 api_gen.c:11:19: error: tolua.h: No such file or directory

 I'm fairly sure this is after a fresh compilation.
 
  It seems that api_gen.c has not been regenerated with toluaxx. It
 might require --enable-maintainer-mode to work correctly if
 api_gen.[ch] already exist.
 
  Here is header of api_gen.c when generated with toluaxx:
 
 /*
 ** Lua binding: api
 ** Generated automatically by toluaxx-1.1.0 on Sun Jun 22 05:57:04 2008.
 */

This error occurs on a fresh checkout of S2_2.  So it seems to me 
something must be wrong.

-jason



___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] (PR#40300) can't compile S2_2

2008-06-22 Thread Marko Lindqvist

URL: http://bugs.freeciv.org/Ticket/Display.html?id=40300 

2008/6/22 Jason Dorje Short [EMAIL PROTECTED]:

 URL: http://bugs.freeciv.org/Ticket/Display.html?id=40300 

 api_gen.c:11:19: error: tolua.h: No such file or directory

 I'm fairly sure this is after a fresh compilation.

 It seems that api_gen.c has not been regenerated with toluaxx. It
might require --enable-maintainer-mode to work correctly if
api_gen.[ch] already exist.

 Here is header of api_gen.c when generated with toluaxx:

/*
** Lua binding: api
** Generated automatically by toluaxx-1.1.0 on Sun Jun 22 05:57:04 2008.
*/


 - ML



___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


Re: [Freeciv-Dev] (PR#40300) can't compile S2_2

2008-06-22 Thread Marko Lindqvist

URL: http://bugs.freeciv.org/Ticket/Display.html?id=40300 

2008/6/22 Jason Dorje Short:

 It seems to me that this is a missing
 dependency for api_gen.c however; it should depend on the toluaxx
 program itself so if that program changes it gets regenerated.

 Like this.

 This will break cross-compile at least. (well, cross-compiling is not
working exactly right at the moment, but at least it is possible)

 This has been discussed several times in the past and current model
has been considered lesser evil.


 - ML



___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev