URL:
  <http://gna.org/bugs/?21696>

                 Summary: [patch] build fix: libfreeciv-srv.la depends on lua
libraries
                 Project: Freeciv
            Submitted by: prlw1
            Submitted on: Thu 20 Feb 2014 12:46:39 AM UTC
                Category: general
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.4.2
         Discussion Lock: Any
        Operating System: None
         Planned Release: 

    _______________________________________________________

Details:

The problem still exists in trunk (revision 24142) from code inspection.

Compiling with recent libtool:

  CCLD     libfreeciv-srv.la
  CCLD     freeciv-server
./.libs/libfreeciv-srv.so: undefined reference to `tolua_tousertype'
../common/.libs/libfreeciv.so: undefined reference to `luaopen_table'
...

It is libfreeciv.so which depends on the lua libraries rather than
freeciv_server.

The following patch against 2.4.2 fixes things for me:

--- server/Makefile.am.orig 2014-02-08 13:17:47.000000000 +0000
+++ server/Makefile.am
@@ -133,6 +133,7 @@ srvlibs = \
  $(top_builddir)/server/scripting/libscripting_server.la
 
 libfreeciv_srv_la_LIBADD = \
+ $(LUA_LIBS) $(TOLUA_LIBS) $(LUASQL_LIBS) \
  $(srvlibs)
 
 freeciv_server_LDFLAGS = $(GGZDMOD_LDFLAGS)
@@ -140,7 +141,6 @@ freeciv_server_LDFLAGS = $(GGZDMOD_LDFLA
 freeciv_server_LDADD = \
  ./libfreeciv-srv.la \
  $(top_builddir)/common/libfreeciv.la \
- $(LUA_LIBS) $(TOLUA_LIBS) $(LUASQL_LIBS) \
  $(INTLLIBS) \
  $(MAPIMG_WAND_LIBS) \
  $(FCDB_MYSQL_LIBS) $(FCDB_POSTGRES_LIBS) $(FCDB_SQLITE3_LIBS) \





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21696>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


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

Reply via email to