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

                 Summary: ./configure ignores sdl2 requirements when the sdl1
client is built as well
                 Project: Freeciv
            Submitted by: sveinung
            Submitted on: Tue 10 Sep 2013 04:42:49 PM GMT
                Category: bootstrap
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 

    _______________________________________________________

Details:

./configure permits many clients to be built at once. When asked to only build
the sdl2 client it will complain about missing sdl2 libraries. When asked to
build it with the sdl client it won't. It will complain when built with the qt
client. Other combinations that include sdl and sdl2 that I have tested have
the problem as well.

SDL2 alone:

./configure --enable-debug --enable-client=sdl2

(...)

checking for threads implementation... pthreads
checking for SDL2... no
checking for sdl2-config... no
checking for SDL2 - version >= 2.0.0... yes
*** The sdl2-config script installed by SDL2 could not be found
*** If SDL2 was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL2_CONFIG environment variable to the
*** full path to sdl2-config.
configure: error: specified client 'sdl2' not configurable (SDL2 >= 2.0.0 is
needed (www.libsdl.org))

configure failed

SDL and SDL2:

./configure --enable-debug --enable-client=sdl,sdl2 && make

(...)

  CC       widget_scrollbar.lo
  CC       widget_window.lo
  CC       wldlg.lo
  CCLD     libgui-sdl.la
make[3]: Leaving directory
`/home/sveinung/Master/freeciv/trunk/client/gui-sdl'
Making all in gui-sdl2
make[3]: Entering directory
`/home/sveinung/Master/freeciv/trunk/client/gui-sdl2'
  CC       SDL2_gfxPrimitives.lo
In file included from SDL2_gfxPrimitives.c:40:0:
SDL2_gfxPrimitives.h:76:42: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:77:41: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:81:42: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:82:41: error: unknown type name 'SDL_Renderer'
In file included from SDL2_gfxPrimitives.c:40:0:
SDL2_gfxPrimitives.h:86:42: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:87:41: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:91:46: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:92:45: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:97:53: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:98:52: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:103:40: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:104:39: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:109:47: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:110:46: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:115:41: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:116:40: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:121:43: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:122:42: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:126:46: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:128:45: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:133:43: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:134:42: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:138:40: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:139:39: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:144:45: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:145:44: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:150:49: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:151:48: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:156:44: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:157:43: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:162:46: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:163:45: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:168:50: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:169:49: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:174:40: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:176:39: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:181:46: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:183:45: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:188:43: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:189:42: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:194:45: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:195:44: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:200:49: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:201:48: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:206:44: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:207:43: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:212:46: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:213:45: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:218:50: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:219:49: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:224:47: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:228:43: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:229:42: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:236:46: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:237:45: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:238:43: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.h:239:42: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:59:2: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:78:18: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:93:16: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:112:15: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:135:28: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:163:18: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:180:16: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:200:15: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:222:16: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:242:15: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:265:20: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:286:19: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:358:27: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:380:26: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:503:21: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:525:20: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:649:14: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:670:13: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:740:17: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:760:15: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:781:14: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:821:24: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1030:17: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1051:16: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1069:17: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1089:16: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1109:14: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1131:13: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1364:19: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1384:18: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1405:23: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1425:22: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1525:18: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1546:17: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1741:20: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1762:19: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1955:24: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:1976:23: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2119:21: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2234:14: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2257:13: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2276:20: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2298:19: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2322:17: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2354:16: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2388:19: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2420:18: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2454:23: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2488:22: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2517:18: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2537:20: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2603:17: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2664:20: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2684:19: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2779:32: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2947:24: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2967:23: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2989:27: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2989:83: error: unknown type name 'SDL_Texture'
SDL2_gfxPrimitives.c:3083:30: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:3245:21: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:3258:1: error: unknown type name 'SDL_Texture'
SDL2_gfxPrimitives.c: In function 'gfxPrimitivesSetFont':
SDL2_gfxPrimitives.c:3345:4: error: implicit declaration of function
'SDL_DestroyTexture' [-Werror=implicit-function-declaration]
SDL2_gfxPrimitives.c:3345:4: error: nested extern declaration of
'SDL_DestroyTexture' [-Werror=nested-externs]
SDL2_gfxPrimitives.c: At top level:
SDL2_gfxPrimitives.c:3405:19: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:3527:20: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:3548:17: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:3568:16: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:3668:17: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:3689:16: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c: In function '_murphyParaline':
SDL2_gfxPrimitives.c:3888:3: error: implicit declaration of function 'pixel'
[-Werror=implicit-function-declaration]
SDL2_gfxPrimitives.c:3888:3: error: nested extern declaration of 'pixel'
[-Werror=nested-externs]
SDL2_gfxPrimitives.c: In function '_murphyIteration':
SDL2_gfxPrimitives.c:4023:4: error: implicit declaration of function 'polygon'
[-Werror=implicit-function-declaration]
SDL2_gfxPrimitives.c:4023:4: error: nested extern declaration of 'polygon'
[-Werror=nested-externs]
SDL2_gfxPrimitives.c: At top level:
SDL2_gfxPrimitives.c:4240:20: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:4262:19: error: unknown type name 'SDL_Renderer'
SDL2_gfxPrimitives.c:2742:12: error: '_gfxPrimitivesCompareInt' defined but
not used [-Werror=unused-function]
SDL2_gfxPrimitives.c:2752:13: error: 'gfxPrimitivesPolyIntsGlobal' defined but
not used [-Werror=unused-variable]
SDL2_gfxPrimitives.c:2759:12: error: 'gfxPrimitivesPolyAllocatedGlobal'
defined but not used [-Werror=unused-variable]
SDL2_gfxPrimitives.c:3609:15: error: '_evaluateBezier' defined but not used
[-Werror=unused-function]
SDL2_gfxPrimitives.c:4054:13: error: '_murphyWideline' defined but not used
[-Werror=unused-function]
cc1: all warnings being treated as errors
make[3]: *** [SDL2_gfxPrimitives.lo] Error 1
make[3]: Leaving directory
`/home/sveinung/Master/freeciv/trunk/client/gui-sdl2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sveinung/Master/freeciv/trunk/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sveinung/Master/freeciv/trunk'
make: *** [all] Error 2





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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