OK I've tried another box now, yet I have a feeling something is missing (distro = Gentoo)
These lines seem to be the start of the trouble: ../dlls/../public/tier0/memdbgon.h:21:19: tchar.h: No such file or directory ../dlls/../public/tier0/memdbgon.h:29:20: crtdbg.h: No such file or directory Any idea what provides these? I couldn't find them existing as files on the last box which at least got further than this, so a library problem? Here's the full log of the relevant section: Valve Software - vcprojtomake.exe (Aug 11 2005) Memory leak: mempool blocks left in memory: 456 make -f Makefile.mod CC=/usr/bin/gcc CPLUS=/usr/bin/g++ CPP_LIB="/usr/lib/gcc-lib/i386-pc-linux-gnu/3.4.1/libstdc++.a /usr/lib/gcc-lib/i386-pc-linux-gnu/3.4.1/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=" -march=pentium -mmmx -O3 -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 /root/eftc/game/bin/tier0_i486.so /root/eftc/game/bin/vstdlib_i486.so" ARCH=i486 GAME_DIR=/root/eftc/game MOD_CONFIG=hl_DebugEFTCMPWin32 NAME=eftcmp_server XERCES_INC_DIR=/root/xerces-c-src_2_6_0/include XERCES_LIB_DIR=/root/xerces-c-src_2_6_0/lib make[1]: Entering directory `/root/eftc/src/linux_sdk' mkdir -p obj/eftcmp_server/dlls/game_shared mkdir -p obj/eftcmp_server/dlls mkdir -p obj/eftcmp_server/dlls/tier1 mkdir -p obj/eftcmp_server/dlls/public mkdir -p obj/eftcmp_server/dlls/hl2_dll mkdir -p obj/eftcmp_server/dlls/public/keyframe mkdir -p obj/eftcmp_server/dlls/public/tier0 mkdir -p obj/eftcmp_server/dlls/common mkdir -p obj/eftcmp_server/dlls/game_shared/hl2 mkdir -p obj/eftcmp_server/dlls/eftcmp_dll mkdir -p obj/eftcmp_server/dlls/game_shared/eftcmp /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/eftcmp_dll -I../dlls/../game_shared/eftcmp -DEFTCMP -DHL2_DLL -DUSES_SAVERESTORE -D_DEBUG -Dfopen=dont_use_fopen -DGAME_DLL -Dsprintf=use_Q_snprintf_instead_of_sprintf -DVECTOR -Dstrncpy=use_Q_strncpy_instead -D_snprintf=use_Q_snprintf_instead -DPROTECTED_THINGS_ENABLE -march=pentium -mmmx -O3 -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/eftcmp_server/dlls/game_shared/activitylist.o -c ../dlls/../game_shared/activitylist.cpp In file included from ../dlls/../public/tier1/utlmemory.h:33, from ../dlls/../public/tier1/utlvector.h:20, from ../dlls/./cbase.h:40, from ../dlls/../game_shared/activitylist.cpp:8: ../dlls/../public/tier0/memdbgon.h:21:19: tchar.h: No such file or directory ../dlls/../public/tier0/memdbgon.h:29:20: crtdbg.h: No such file or directory In file included from ../dlls/../public/tier1/utlmemory.h:33, from ../dlls/../public/tier1/utlvector.h:20, from ../dlls/./cbase.h:40, from ../dlls/../game_shared/activitylist.cpp:8: ../dlls/../public/tier0/memdbgon.h: In function `char* strdup_dbg(const char*, const char*, unsigned int)': ../dlls/../public/tier0/memdbgon.h:81: error: `_NORMAL_BLOCK' undeclared (first use this function) ../dlls/../public/tier0/memdbgon.h:81: error: (Each undeclared identifier is reported only once for each function it appears in.) ../dlls/../public/tier0/memdbgon.h:81: error: `_malloc_dbg' undeclared (first use this function) ../dlls/../public/tier0/memdbgon.h: In function `wchar_t* wcsdup_dbg(const wchar_t*, const char*, unsigned int)' Etc Etc Etc Thanks, --------------------------------------- Chris Adams -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alfred Reynolds Sent: 01 August 2005 20:43 To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] Linking error when compiling MOD on Linux You may need to install the developer packages of your particular GCC version. It has been a while since I was in RPM hell, I have blanked out all the stupid things I was forced to do to make RPM behave. You also look to be using GCC 3.2.2, you need at least 3.4.1 (preferably exactly 3.4.1). - Alfred ----Original Message---- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Adams Sent: Monday, August 01, 2005 12:32 PM To: hlcoders@list.valvesoftware.com Subject: RE: [hlcoders] Linking error when compiling MOD on Linux > Humm entirely possible, but I could only find one (with 'locate') > copy of each of the two library files that are in the Makefile: > > CPP_LIB="/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/libstdc++.a > /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/libgcc_eh.a" > > Where would I look to find the headers + if it turns out I have > duplicate copies or something, how would I specify which to use? I'm > beginning to think that perhaps I should find another box for the > compile :-) > > Thanks, > > --------------------------------------- > Chris Adams > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Alfred > Reynolds > Sent: 01 August 2005 19:01 > To: hlcoders@list.valvesoftware.com > Subject: RE: [hlcoders] Linking error when compiling MOD on Linux > > Looks like your C++ library doesn't match your header files, verify > you have the correct library path for it in your Makefile. > > - Alfred > > ----Original Message---- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Chris > Adams > Sent: Monday, August 01, 2005 7:12 AM To: > hlcoders@list.valvesoftware.com Subject: [hlcoders] Linking error > when compiling MOD on Linux > > > This is a multi-part message in MIME format. > > -- > > [ Picked text/plain from multipart/alternative ] Hey, > > > > (Apologies if this gets posted twice, I sent originally from the > > wrong email account) > > > > Just tried compiling my MOD code under Linux - it compiles > > everything with no problems but when we get to linking stage: > > > > ..... > > /usr/bin/ld: ./eftcmp_server_i486.so: undefined versioned symbol > > name std::time_put_w@@GLIBCPP_3.2 /usr/bin/ld: failed to set > > dynamic section sizes: Bad value > > collect2: ld returned 1 exit status > > make[1]: *** [eftcmp_server_i486.so] Error 1 > > make[1]: Leaving directory `/home/chris/eftc/src/linux_sdk' > > make: *** [mod] Error 2 > > > > # > > > > > > uname: > > Linux 2.6.8.1 #2 SMP Wed Jun 8 20:30:05 CEST 2005 i686 i686 i386 > > GNU/Linux > > > > rpm -q glibc > > glibc-2.3.2-11.9 > > > > If you'd like a full compilation log please say, or anything else > > for that matter :-) > > > > Thanks, > > > > --------------------------------------- > > Chris Adams > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list > archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list > archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders