I'm using fedora core 3 with gcc 3.4.2. I appear to be getting some
error with the compile of src/dlls/npc_talker.cpp.
linux_sdk]$ make
if [ -z "/usr/bin/gcc" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d . ];then mkdir .;fi
cd .
if [ ! -f "tier0_i486.so" ]; then ln -s
/home/nick/valve/hl2mp/bin/tier0_i486.so .; fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s
/home/nick/valve/hl2mp/bin/vstdlib_i486.so .; fi
./vcpm ../dlls/hl_sdk.vcproj
Valve Software - vcprojtomake.exe (Jul 12 2005)
Memory leak: mempool blocks left in memory: 469
make -f Makefile.mod CC=/usr/bin/gcc CPLUS=/usr/bin/g++
CPP_LIB="/usr/local/lib/libstdc++.a
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/libgcc_eh.a" BUILD_DIR=.
BUILD_OBJ_DIR=./obj SOURCE_DIR=.. SHLIBLDFLAGS=-shared
-Wl,-Map,mod_map.txt -Wl SHLIBEXT=so CLINK=/usr/bin/gcc
CFLAGS="-fpermissive -mtune=i686 -march=pentium -mmmx -m3dnow
-fpermissive -D_LINUX -DNDEBUG -Dstricmp=strcasecmp
-D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp
-D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca
-Dstrcmpi=strcasecmp -Usprintf=use_Q_snprintf_instead_of_sprintf
-Ustrncpy=use_Q_strncpy_instead -UPROTECTED_THINGS_ENABLE"
LDFLAGS="-lm -ldl /home/nick/valve/hl2mp/bin/tier0_i486.so
/home/nick/valve/hl2mp/bin/vstdlib_i486.so ./tier0_i486.so -lm"
ARCH=i486 GAME_DIR=/home/nick/valve/hl2mp
MOD_CONFIG=hl_ReleaseHL2MPWin32 NAME=server
XERCES_INC_DIR=/home/nick/xerces-c_2_6_0-redhat_80-gcc_32/include
XERCES_LIB_DIR=/home/nick/xerces-c_2_6_0-redhat_80-gcc_32/lib
make[1]: Entering directory `/home/nick/src2/src/linux_sdk'
mkdir -p obj/server/dlls/game_shared
mkdir -p obj/server/dlls
mkdir -p obj/server/dlls/tier1
mkdir -p obj/server/dlls/public
mkdir -p obj/server/dlls/hl2_dll
mkdir -p obj/server/dlls/public/keyframe
mkdir -p obj/server/dlls/public/tier0
mkdir -p obj/server/dlls/common
mkdir -p obj/server/dlls/game_shared/hl2
mkdir -p obj/server/dlls/hl2mp_dll
mkdir -p obj/server/dlls/game_shared/hl2mp
/usr/bin/g++ -w -I../dlls/../game_shared/hl2 -I../dlls/.
-I../dlls/../public -I../dlls/../public/tier1 -I../dlls/../game_shared
-I../dlls/../utils/common -I../dlls/../dlls -I../dlls/../../dlls
-I../dlls/../dlls/hl2_dll -I../dlls/../dlls/hl2mp_dll
-I../dlls/../game_shared/hl2mp -DHL2MP -DHL2_DLL -DUSES_SAVERESTORE
-DNDEBUG -DGAME_DLL -Dsprintf=use_Q_snprintf_instead_of_sprintf
-DVECTOR -Dstrncpy=use_Q_strncpy_instead
-D_snprintf=use_Q_snprintf_instead -DPROTECTED_THINGS_ENABLE
-fpermissive -mtune=i686 -march=pentium -mmmx -m3dnow -fpermissive
-D_LINUX -DNDEBUG -Dstricmp=strcasecmp -D_stricmp=strcasecmp
-D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf
-D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp
-Usprintf=use_Q_snprintf_instead_of_sprintf
-Ustrncpy=use_Q_strncpy_instead -UPROTECTED_THINGS_ENABLE -o
obj/server/dlls/npc_talker.o -c ../dlls/npc_talker.cpp
In file included from
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/memory:61,
from
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/string:48,
from ../dlls/../public/stdstring.h:26,
from ../dlls/ai_playerally.h:18,
from ../dlls/npc_talker.h:32,
from ../dlls/npc_talker.cpp:10:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:292:22:
macro "max" requires 2 arguments, but only 1 given
In file included from
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/memory:61,
from
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/string:48,
from ../dlls/../public/stdstring.h:26,
from ../dlls/ai_playerally.h:18,
from ../dlls/npc_talker.h:32,
from ../dlls/npc_talker.cpp:10:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:292:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:295:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:320:23:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:320:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:323:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:373:23:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:373:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:376:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:423:30:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:423:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:426:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:473:32:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:473:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:476:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:523:26:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:523:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:526:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:573:24:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:573:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:576:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:623:33:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:623:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:626:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:673:22:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:673:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:676:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:723:31:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:723:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:726:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:773:23:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:773:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:776:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:823:32:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:823:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:826:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:873:28:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:873:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:876:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:923:37:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:923:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:926:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:973:24:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:973:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:976:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:1029:25:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:1029:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:1032:
error: expected `;' before "static"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:1085:30:
macro "max" requires 2 arguments, but only 1 given
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:1085:
error: expected `;' before "throw"
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/limits:1088:
error: expected `;' before "static"
In file included from
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/string:48,
from ../dlls/../public/stdstring.h:26,
from ../dlls/ai_playerally.h:18,
from ../dlls/npc_talker.h:32,
from ../dlls/npc_talker.cpp:10:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/memory:77:62:
macro "max" requires 2 arguments, but only1 given
In file included from
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/string:48,
from ../dlls/../public/stdstring.h:26,
from ../dlls/ai_playerally.h:18,
from ../dlls/npc_talker.h:32,
from ../dlls/npc_talker.cpp:10:
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/memory:
In function `std::pair<_Tp*, ptrdiff_t>
std::__get_temporary_buffer(ptrdiff_t, _Tp*)':
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../../include/c++/3.4.2/memory:77:
error: `max' is not a member of `std::numeric_limits<int>'
make[1]: *** [obj/server/dlls/npc_talker.o] Error 1
make[1]: Leaving directory `/home/nick/src2/src/linux_sdk'
make: *** [mod] Error 2
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#
# SDK Makefile for x86 Linux
#
#
#############################################################################
# Developer configurable items
#############################################################################
# the name of the mod binary (_i486.so is appended to the end)
NAME=server
# the location of the vcproj that builds the mod
MOD_PROJ=../dlls/hl_sdk.vcproj
# the name of the mod configuration (typically <proj name>_<build
type><build target>)
MOD_CONFIG=hl_ReleaseHL2MPWin32
# the directory the base binaries (tier0_i486.so, etc) are located
#GAME_DIR=../../
GAME_DIR=/home/nick/valve/hl2mp
# compiler options (gcc 3.4.1 or above is required)
CC=/usr/bin/gcc
CPLUS=/usr/bin/g++
CLINK=/usr/bin/gcc
CPP_LIB="/usr/local/lib/libstdc++.a
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/libgcc_eh.a"
#CPP_LIB="/usr/lib/gcc/i386-redhat-linux/3.4.2/libstdc++.a
/usr/lib/gcc/i386-redhat-linux/3.4.2/libgcc_eh.a"
# put any compiler flags you want passed here
USER_CFLAGS=-fpermissive -mtune=i686 -march=pentium -mmmx -m3dnow
# link flags for your mod, make sure to include any special libraries here
LDFLAGS="-lm -ldl $(GAME_DIR)/bin/tier0_i486.so
$(GAME_DIR)/bin/vstdlib_i486.so ./tier0_i486.so -lm"
# XERCES 2.6.0 or above ( http://xml.apache.org/xerces-c/ ) is used by
the vcproj to makefile converter
# it must be installed before being able to run this makefile
XERCES_INC_DIR=/home/nick/xerces-c_2_6_0-redhat_80-gcc_32/include
XERCES_LIB_DIR=/home/nick/xerces-c_2_6_0-redhat_80-gcc_32/lib
# if you have xerces installed already you should be able to use the
two lines below
#XERCES_INC_DIR=/usr/include
#XERCES_LIB_DIR=/usr/lib
#############################################################################
# Things below here shouldn't need to be altered
#############################################################################
>>>>>>>>>>>>>>>>>
also g++ -v
Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/specs
Configured with: ./configure
Thread model: posix
gcc version 3.4.2
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Anyone seen this error before?
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders