Re: [hlcoders] linux binary compiling issues, missing reference

2006-11-06 Thread Stefan Bermig

got a nice hint

-msse fixed that error :)

so now i have to fix another minor one to get it running, thanks for you
help guys.

stefan

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] linux binary compiling issues, missing reference

2006-11-06 Thread Stefan Bermig

uhh...

i forgot to add the new libraries to the Makefile, my bad. now this error
is gone, but i ran right into the next one. using gcc 3.4 and gcc 4.1

/stefan/srcds/src/dlls/ai_activity.o -c
/home/stefan/srcds/src/dlls/ai_activity.cpp
In file included from /home/stefan/srcds/src/dlls/../public/vector.h:35,
 from /home/stefan/srcds/src/dlls/../public/vmatrix.h:34,
 from /home/stefan/srcds/src/dlls/cbase.h:41,
 from /home/stefan/srcds/src/dlls/ai_activity.cpp:7:
/usr/lib/gcc/i586-suse-linux/4.1.0/include/xmmintrin.h:35:3: error: #error
"SSE instruction set not enabled"
/home/stefan/srcds/src/dlls/../public/vector.h:234: error: expected ‘;’
before ‘&’ token
/home/stefan/srcds/src/dlls/../public/vector.h:235: error: expected `;'
before ‘const’
/home/stefan/srcds/src/dlls/../public/vector.h:235: error: expected ‘;’
before ‘&’ token
/home/stefan/srcds/src/dlls/../public/vector.h:238: error: expected `;'
before ‘void’
/home/stefan/srcds/src/dlls/../public/vector4d.h:160: error: expected ‘;’
before ‘&’ token
/home/stefan/srcds/src/dlls/../public/vector4d.h:161: error: expected `;'
before ‘const’
/home/stefan/srcds/src/dlls/../public/vector4d.h:161: error: expected ‘;’
before ‘&’ token
/home/stefan/srcds/src/dlls/../public/vector4d.h:163: error: expected `;'
before ‘private’
/home/stefan/srcds/src/dlls/../public/vector4d.h: In member function ‘void
Vector4DAligned::InitZero()’:
/home/stefan/srcds/src/dlls/../public/vector4d.h:632: error: ‘class
Vector4DAligned’ has no member named ‘AsM128’
/home/stefan/srcds/src/dlls/../public/vector4d.h:632: error: ‘_mm_set1_ps’
was not declared in this scope
/home/stefan/srcds/src/dlls/../public/vector4d.h: In function ‘void
Vector4DWeightMADSSE(vec_t, const Vector4DAligned&, Vector4DAligned&,
const Vector4DAligned&, Vector4DAligned&)’:
/home/stefan/srcds/src/dlls/../public/vector4d.h:663: error: ‘__m128’ was
not declared in this scope
/home/stefan/srcds/src/dlls/../public/vector4d.h:663: error: expected `;'
before ‘packed’
/home/stefan/srcds/src/dlls/../public/vector4d.h:666: error: ‘class
Vector4DAligned’ has no member named ‘AsM128’
/home/stefan/srcds/src/dlls/../public/vector4d.h:666: error: ‘class
Vector4DAligned’ has no member named ‘AsM128’
/home/stefan/srcds/src/dlls/../public/vector4d.h:666: error: ‘const class
Vector4DAligned’ has no member named ‘AsM128’
/home/stefan/srcds/src/dlls/../public/vector4d.h:666: error: ‘packed’ was
not declared in this scope
/home/stefan/srcds/src/dlls/../public/vector4d.h:666: error: ‘_mm_mul_ps’
was not declared in this scope
/home/stefan/srcds/src/dlls/../public/vector4d.h:666: error: ‘_mm_add_ps’
was not declared in this scope
/home/stefan/srcds/src/dlls/../public/vector4d.h:667: error: ‘class
Vector4DAligned’ has no member named ‘AsM128’
/home/stefan/srcds/src/dlls/../public/vector4d.h:667: error: ‘class
Vector4DAligned’ has no member named ‘AsM128’
/home/stefan/srcds/src/dlls/../public/vector4d.h:667: error: ‘const class
Vector4DAligned’ has no member named ‘AsM128’
make[1]: *** [obj/server_i486//home/stefan/srcds/src/dlls/ai_activity.o]
Error 1

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Srcds startup problems

2006-09-11 Thread Stefan Bermig

I think i got it working somehow. Problem really seem to be the 2 files
(tier and vstdlib).

Having a path like this in the makefile makes the binary work:

#GamePath = /home/stefan/srcds

Using ../.. instead prevents the binary from working although they're both
pointing at the same directory.

Yet they're still linked to /lib/ as well for some reason. so i need the
gamepath like this and the two files in the lib folder to make it work.

I hope you guys have a solution for this as i am stuck after one week of
working on this ;)

Thx for you help so far.

Stefan

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Srcds startup problems

2006-09-11 Thread Stefan Bermig

i noticed my server binary seems to be linked to tier0_i486.so twice?

  ldd server_i486.so
linux-gate.so.1 =>  (0xe000)
libm.so.6 => /lib/libm.so.6 (0xb75dd000)
libdl.so.2 => /lib/libdl.so.2 (0xb75d9000)
/home/stefan/srcds/bin/tier0_i486.so (0xb75a3000)
/home/stefan/srcds/bin/vstdlib_i486.so (0xb758f000)
libc.so.6 => /lib/libc.so.6 (0xb746e000)
/lib/ld-linux.so.2 (0x8000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb745a000)
tier0_i486.so => /lib/tier0_i486.so (0xb7424000)

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Srcds startup problems

2006-09-11 Thread Stefan Bermig

Here's my make file. I am pretty sure i set them up properly ;) Do these
two files have to be in the srcds/bin or srcds/moddir/bin folder?

Also i still don't have a fix for the missing vphysics_i486.so file :(

#
# 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=/home/stefan/srcds/src/dlls/rnl_server.vcproj
# the name of the mod configuration (typically _)
MOD_CONFIG=rnl_server_ReleaseRNLWin32

# the directory the base binaries (tier0_i486.so, etc) are located
#GAME_DIR=../../
GAME_DIR=/home/stefan/srcds

# compiler options (gcc 3.4.1 or above is required)
CC=/usr/bin/gcc
CPLUS=/usr/bin/g++
CLINK=/usr/bin/gcc

// These folders say it's 3.4.3 but they're from a 3.4.4 rpm package.
CPP_LIB="/usr/lib/gcc/i386-redhat-linux/3.4.3/libstdc++.a
/usr/lib/gcc/i386-redhat-linux/3.4.3/libgcc_eh.a"

# put any compiler flags you want passed here
USER_CFLAGS=

# 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"

# 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/alfred/tmp/xerces-c-src_2_6_0/include
#XERCES_LIB_DIR=/home/alfred/tmp/xerces-c-src_2_6_0/lib
# if you have xerces installed already you should be able to use the two
lines below
XERCES_INC_DIR=/home/stefan/xerces/include
XERCES_LIB_DIR=/home/stefan/xerces/lib


#
# Things below here shouldn't need to be altered
#
MAKE=make

# the dir we want to put binaries we build into
BUILD_DIR=.
# the place to put object files
BUILD_OBJ_DIR=$(BUILD_DIR)/obj

# the location of the source code
SOURCE_DIR=..

# the CPU target for the build, must be i486 for now
ARCH=i486
ARCH_CFLAGS=-mtune=i686 -march=pentium -mmmx -O3

# -fpermissive is so gcc 3.4.x doesn't complain about some template stuff
BASE_CFLAGS=-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
SHLIBEXT=so
SHLIBCFLAGS=-fPIC
SHLIBLDFLAGS=-shared -Wl,-Map,[EMAIL PROTECTED] -Wl

#flags passed to the c compiler
CFLAGS="$(USER_CFLAGS) $(DEFINES) $(ARCH_CFLAGS) $(BASE_CFLAGS)
-Usprintf=use_Q_snprintf_instead_of_sprintf
-Ustrncpy=use_Q_strncpy_instead -UPROTECTED_THINGS_ENABLE"

# define list passed to make for the sub makefile
BASE_DEFINES=CC=$(CC) CPLUS=$(CPLUS) CPP_LIB=$(CPP_LIB) \
BUILD_DIR=$(BUILD_DIR) BUILD_OBJ_DIR=$(BUILD_OBJ_DIR) \
SOURCE_DIR=$(SOURCE_DIR) SHLIBLDFLAGS=$(SHLIBLDFLAGS)
SHLIBEXT=$(SHLIBEXT) \
CLINK=$(CLINK) CFLAGS=$(CFLAGS) LDFLAGS=$(LDFLAGS) \
ARCH=$(ARCH) GAME_DIR=$(GAME_DIR) MOD_CONFIG=$(MOD_CONFIG) NAME=$(NAME) 
\
XERCES_INC_DIR=$(XERCES_INC_DIR) XERCES_LIB_DIR=$(XERCES_LIB_DIR)

# Project Makefile
MAKE_MOD=Makefile.mod
MAKE_VCPM=Makefile.vcpm
MAKE_PLUGIN=Makefile.plugin

all: check vcpm mod

check:
if [ -z "$(CC)" ]; then echo "Compiler not defined."; exit; fi
if [ ! -d $(BUILD_DIR) ];then mkdir $(BUILD_DIR);fi
cd $(BUILD_DIR)

vcpm:
$(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES)

mod: vcpm
if [ ! -f "tier0_i486.so" ]; then ln -s $(GAME_DIR)/bin/tier0_i486.so .;
fi
if [ ! -f "vstdlib_i486.so" ]; then ln -s 
$(GAME_DIR)/bin/vstdlib_i486.so
.; fi
./vcpm $(MOD_PROJ)
$(MAKE) -f $(MAKE_MOD) $(BASE_DEFINES)

plugin:
$(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES)

clean:
 $(MAKE) -f $(MAKE_VCPM) $(BASE_DEFINES) clean
 $(MAKE) -f $(MAKE_PLUGIN) $(BASE_DEFINES) clean
 $(MAKE) -f $(MAKE_MOD) $(BASE_DEFINES) clean

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Srcds startup problems

2006-09-10 Thread Stefan Bermig

SuSE 10.1 / 9.3

with gcc 3.4.4 and Glibc 2.3.5 (?)

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Re: [hlcoders] Srcds startup problems

2006-09-10 Thread Stefan Bermig

Thanks for your help

it got me that far: For some reason the binaries are looking for
tier0_i486.so and vstdlib_i486.so in the /lib/ dir. I "solved" that by
copying these files there. of course for release i cannot keep it like
that for release. but i will ignore that for now.

Next problem is this one:

AppFramework : Unable to load module bin/vphysics_i486.so!
Unable to load interface VPhysics031 from bin/vphysics_i486.so

And i cannot seem to come up with any solution on google or forums.

Stefan

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



[hlcoders] Srcds startup problems

2006-09-09 Thread Stefan Bermig

Hi, this is Stefan from the Resistance And Liberation team.

I was told to post this here again, because it's more likely to get a
helpful answer, as it's more programming related than css or dods server
related.

Here we go:

A few days ago were offered a pub dedicated linux server
so i started messing with gcc to get our code compiled for linux.

It tooks me some time (2 days) and the help of another coder to get
them finally compiled and we came up with a 14 mb large file. Now the
problem is, this file does not work. According to the console the server
starts loading the map, materials, models and so on but eventually crashes
aftera few seconds repeatedly, hence the server never goes online.

I further messed with some cpu flags in the make file:

ARCH_CFLAGS=-mtune=i686 -march=pentium -mmmx -O3

and commented them back in, as i had them commented out for the first
compile (don't ask why  ). Anyway, with them in the makefile the
binary compiled fine, too, was 3 mb smaller but did not even load maps or
models.It eventually seemed to be worse.

Adding -debug to the command line didn't work either in the way i
hoped it would. When the server crashes it complains about the core dump
file
not being a valid core cump file:

./srcds_run: line 344: 17301 Segmentation fault (core dumped) $HL_CMD
"/home/stefan/srcds/core" is not a core dump: File format not
recognized
No stack.
debug.cmds:2: Error in sourced command file:
No frame selected.

Yet it creates a core file (on my pc without ID tag, on the server
with ID tag) but GDB doesn't read those files and debugging the running
process doesn't work either, as the adress it gives me when it stops seems
to
be empty.

GCC, GCC-C++ and so on (whatever else is needed) is at v. 3.4.4. GLibC
at v. 2.3.x (above the requirements), xerces works fine (v. 2.6 / 2.7)
and i am running on various linux kernels to test the binaries. I tested it
on 3 different mashines, get the same error on each mashine.

The debug log reads like this:

--
CRASH: Fr Sep  8 10:26:36 CEST 2006
Start Line: ./srcds_i686 -port 27015 +ip 86.110.65.5 -game rnl +maxplayers
24 +exec server.cfg -tickrate 66 -debug
Using host libthread_db library "/lib/libthread_db.so.1".
End of Source crash report
--

i tried different binaries already (468/amd) all the same error.

So for now i am stuck with a working compiler but broken binaries. I
greatly appreciate any help here as i am eager to finally get a
working linux build

Sincerly,

Stefan Bermig

___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders