tag 436325 patch thanks Lucas Nussbaum <[EMAIL PROTECTED]> (07/08/2007): > make[3]: Entering directory `/build/user/ppracer-0.3.1/src' > if i486-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. > -DPP_DATADIR=\"/usr/share/games/ppracer\" -DTUXRACER_NO_ASSERT=1 > -DHAVE_SDL_MIXER=1 -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT > -I -I/usr/include/tcl8.4 -I/usr/include/freetype2 -MT ssbutton.o -MD -MP -MF > ".deps/ssbutton.Tpo" \ > -c -o ssbutton.o `test -f 'ppgltk/ssbutton.cpp' || echo > './'`ppgltk/ssbutton.cpp; \ > then mv -f ".deps/ssbutton.Tpo" ".deps/ssbutton.Po"; \ > else rm -f ".deps/ssbutton.Tpo"; exit 1; \ > fi > In file included from ./textures.h:25, > from ppgltk/ssbutton.cpp:24: > ./ppracer.h:118:17: error: tcl.h: No such file or directory > ./ppracer.h:195: error: expected initializer before '*' token > ./textures.h:59: error: variable or field 'register_texture_callbacks' > declared void > ./textures.h:59: error: 'Tcl_Interp' was not declared in this scope > ./textures.h:59: error: 'ip' was not declared in this scope
Hi Alexander & pkg-games, this is due to the empty -I flag. It looks like it comes from the following configure.in snippet: (else case). | if test "x$with_tcl_inc" != "x"; then | TCL_CFLAGS="-I$with_tcl_inc" | AC_MSG_NOTICE(["Using custom TCL headers directory: $with_tcl_inc"]) | else | TCL_CFLAGS="-I$TCL_INC_DIR $TCL_INCLUDE_SPEC" | fi Indeed, TCL_INCLUDE_SPEC contains the appropriate path, whereas TCL_INC_DIR is empty. I guess it is sufficient to conditionally add ``-I$TCL_INC_DIR'' only if TCL_INC_DIR isn't empty. After editing src/Makefile manually: -CXXFLAGS = -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I -I/usr/include/tcl8.4 -I/usr/include/freetype2 +CXXFLAGS = -g -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/tcl8.4 -I/usr/include/freetype2 I've been able to build successfully the .deb's, so I guess you can focus on fixing configure.in's code. Cheers, -- Cyril Brulebois
pgpl3cVLBgY0n.pgp
Description: PGP signature