.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Common Questions (http://forums.bots-united.com/forumdisplay.php?f=51)
-   -   badf error (http://forums.bots-united.com/showthread.php?t=5278)

Whitey 16-05-2006 16:26

badf error
 
After quite a few hours of errors now, I thought it best to sign up and post on the forums.


I've been surfing around the forums and seen the error a few times - the only solution I can see is compiling it on a win32 system. Well, I've tried compiling the source on my linux (FreeBSD) system...


Code:

[whitey@buck:~/podbot] make
"makefile", line 9: Unassociated shell command "bot_chat.o \
"makefile", line 10: Unassociated shell command "bot_client.o \
"makefile", line 11: Unassociated shell command "bot_combat.o \
"makefile", line 12: Unassociated shell command "bot_globals.o \
"makefile", line 13: Unassociated shell command "bot_sounds.o \
"makefile", line 14: Unassociated shell command "compress.o \
"makefile", line 15: Unassociated shell command "dll.o \
"makefile", line 16: Unassociated shell command "engine.o \
"makefile", line 17: Unassociated shell command "util.o \
"makefile", line 18: Unassociated shell command "waypoint.o
"makefile", line 38: warning: duplicate script for target "%.o" ignored
make: fatal errors encountered -- cannot continue


I've got the file path correct, I've upgraded metamod to version 1.9, I've setup the plugins.ini and the liblist.gam, my other loaded module (amx) works fine.

I've also put the amx_podbotmenu on there, the menu works fine, but obviously, it doesn't load the bots...


Code:

Currently loaded plugins:
      description      stat pend  file              vers      src  load  unlod
 [ 1] AMX              RUN  -    amx_mm_i586.so    v0.9.9    ini  ANY  ANY
 [ 2] CSStats          RUN  -    csstats_mm_i586.  v0.9.9    ini  ANY  ANY
 [ 3] Fun              RUN  -    fun_mm_i586.so    v0.9.9    ini  ANY  ANY
 [ 4] <podbot_mm_i386  badf load  podbot_mm_i386.s  v -      ini  -    -

Code:

        name: (nil)
        desc: <podbot_mm_i386.so>
      status: badfile
      action: load
    filename: addons/podbot/podbot_mm_i386.so
        file: podbot_mm_i386.so
    pathname: /usr/home/whitey/backup/hlds/cstrike/addons/podbot/podbot_mm_i386.so
        index: 4
      source: ini file
    loadable:  -
  unloadable:  -
      version: (nil)
        date: (nil)
      author: (nil)
          url: (nil)
      logtag: (nil)
      ifvers: (nil)
  last loaded: Thu Jan  1 10:00:00 1970
No DLLAPI functions.
No DLLAPI-Post functions.
No NEWAPI functions.
No NEWAPI-Post functions.
No Engine functions.
No Engine-Post functions.
Registered commands:
0 commands
Registered cvars:                      float value  string value
0 cvars
No child plugins.


Thanks for your help,



/Whitey

Whitey 16-05-2006 16:28

Re: badf error
 
Also, here's a copy of my directories and my plugins.ini...


Code:

[whitey@buck:~/backup/hlds/cstrike/addons/metamod] ls
dlls                    plugins.ini            sample_plugins.ini
[whitey@buck:~/backup/hlds/cstrike/addons/metamod] cd ../podbot/
[whitey@buck:~/backup/hlds/cstrike/addons/podbot] ls
botchat.txt            botweapons.cfg          podbot_mm_i386.so
botchats                pbmmdocs                podbot_mm_i586.so
botlogos.cfg            podbot.cfg              versionhistory.txt
botnames.txt            podbot_mm.dll          wptdefault
botskill.cfg            podbot_mm_amd64.so

Code:

; AMX Mod
 linux addons/amx/dlls/amx_mm_i586.so

; AMX Mod modules

; NOTE: don't declare 'pure' AMX Modules here
;      (those not having '_mm' in their filename)

; CS Stats (AMX module)
 linux addons/amx/modules/csstats_mm_i586.so

; Fun (AMX module)
 linux addons/amx/modules/fun_mm_i586.so

; Vexd Utilities (AMX module)
; linux addons/amx/modules/VexdUM_mm_i586.so

;EPoD bots
; linux EPODbot/EPB_i686.so

;PoD Bot mm
linux addons/podbot/podbot_mm_i386.so



Thanks,


/Whitey

KWo 16-05-2006 17:55

Re: badf error
 
Get the beta sources with makefile included there. Then try again. Write the output error list while server is loading.

Whitey 16-05-2006 18:50

Re: badf error
 
Ok, I realised I need HLDK and metamod source (duh)... I tried recompiling after setting the paths in makefile correctly and made again...



Code:

bot.cpp:7544: error: `EF_NODRAW' undeclared (first use this function)
bot.cpp:7548: error: `FL_CLIENT' undeclared (first use this function)
bot.cpp:7551: error: `UTIL_GetTeam' cannot be used as a function
bot.cpp:7552: error: `IsAlive' cannot be used as a function
bot.cpp:7565: error: `FInViewCone' cannot be used as a function
bot.cpp:7694: error: 'struct bot_t' has no member named 'dest_origin'
bot.cpp:7697: error: 'struct bot_t' has no member named 'dest_origin'
bot.cpp:7702: error: 'struct bot_t' has no member named 'dest_origin'
bot.cpp:7702: error: `ignore_glass' undeclared (first use this function)
bot.cpp:7702: error: `UTIL_TraceLine' undeclared (first use this function)
bot.cpp:7708: error: 'struct bot_t' has no member named 'dest_origin'
bot.cpp:7737: error: 'struct bot_t' has no member named 'dest_origin'
bot.cpp:7738: error: 'struct bot_t' has no member named 'dest_origin'
bot.cpp:7750: error: `Vector2D' undeclared (first use this function)
bot.cpp:7750: error: expected `;' before "vec2DirToPoint"
bot.cpp:7751: error: expected `;' before "vec2RightSide"
bot.cpp:7756: error: `vec2DirToPoint' undeclared (first use this function)
bot.cpp:7756: error: 'struct bot_t' has no member named 'dest_origin'
bot.cpp:7757: error: `vec2RightSide' undeclared (first use this function)
bot.cpp:7768: error: `DotProduct' undeclared (first use this function)
bot.cpp:7897: error: 'struct bot_t' has no member named 'pBotEnemy'
bot.cpp:7902: error: 'struct bot_t' has no member named 'pBotPickupItem'
bot.cpp:7903: error: 'struct bot_t' has no member named 'pItemIgnore'
bot.cpp:7903: error: 'struct bot_t' has no member named 'pBotPickupItem'
bot.cpp:7905: error: 'struct bot_t' has no member named 'pBotPickupItem'
bot.cpp:7908: error: 'struct bot_t' has no member named 'pShootBreakable'
bot.cpp:7928: error: `IN_MOVELEFT' undeclared (first use this function)
bot.cpp:7928: error: `IN_MOVERIGHT' undeclared (first use this function)
bot.cpp:7942: error: `UTIL_ClampVector' cannot be used as a function
bot.cpp:7943: error: `UTIL_ClampVector' cannot be used as a function
bot.cpp: In function `bool BotHasHostage(bot_t*)':
bot.cpp:7962: error: 'struct bot_t' has no member named 'pHostages'
bot.cpp:7962: error: `FNullEnt' undeclared (first use this function)
bot.cpp:7963: error: `TRUE' undeclared (first use this function)
bot.cpp:7965: error: `FALSE' undeclared (first use this function)
bot.cpp: At global scope:
bot.cpp:7978: error: `Vector' has not been declared
bot.cpp:7979: error: ISO C++ forbids declaration of `vecTargetPos' with no type
bot.cpp: In function `bool IsDeadlyDrop(bot_t*, int)':
bot.cpp:7982: error: `edict_t' undeclared (first use this function)
bot.cpp:7982: error: `pEdict' undeclared (first use this function)
bot.cpp:7982: error: 'struct bot_t' has no member named 'pEdict'
bot.cpp:7983: error: `Vector' undeclared (first use this function)
bot.cpp:7983: error: expected `;' before "vecBot"
bot.cpp:7984: error: `TraceResult' undeclared (first use this function)
bot.cpp:7984: error: expected `;' before "tr"
bot.cpp:7987: error: expected `;' before "vecMove"

That's a smidgon of all the errors...


EDIT:

Just saw your post KWo, I'll try that now :).



/Whitey

Whitey 16-05-2006 18:57

Re: badf error
 
Just tried that, and edited the makefile...


Code:

[whitey@buck:~/podbot] make
"makefile", line 7: Missing dependency operator
"makefile", line 26: Missing dependency operator
"makefile", line 28: Missing dependency operator
"makefile", line 30: Missing dependency operator
"makefile", line 42: Missing dependency operator
"makefile", line 60: Missing dependency operator
"makefile", line 62: Missing dependency operator
"makefile", line 63: warning: duplicate script for target "ifeq" ignored
"makefile", line 63: warning: duplicate script for target """" ignored
"makefile", line 64: warning: duplicate script for target "ifeq" ignored
"makefile", line 64: warning: duplicate script for target """" ignored
"makefile", line 65: warning: duplicate script for target "ifeq" ignored
"makefile", line 65: warning: duplicate script for target """" ignored
"makefile", line 66: warning: duplicate script for target "ifeq" ignored
"makefile", line 66: warning: duplicate script for target """" ignored
"makefile", line 67: warning: duplicate script for target "ifeq" ignored
"makefile", line 67: warning: duplicate script for target """" ignored
"makefile", line 68: Missing dependency operator
"makefile", line 69: warning: duplicate script for target "else" ignored
"makefile", line 70: warning: duplicate script for target "else" ignored
"makefile", line 71: warning: duplicate script for target "else" ignored
"makefile", line 72: warning: duplicate script for target "else" ignored
"makefile", line 73: warning: duplicate script for target "else" ignored
"makefile", line 74: Missing dependency operator
"makefile", line 76: Missing dependency operator
"makefile", line 77: warning: duplicate script for target "ifeq" ignored
"makefile", line 77: warning: duplicate script for target """" ignored
"makefile", line 78: warning: duplicate script for target "ifeq" ignored
"makefile", line 78: warning: duplicate script for target """" ignored
"makefile", line 79: warning: duplicate script for target "ifeq" ignored
"makefile", line 79: warning: duplicate script for target """" ignored
"makefile", line 81: Need an operator
"makefile", line 87: Missing dependency operator
"makefile", line 92: Missing dependency operator
"makefile", line 93: warning: duplicate script for target "ifeq" ignored
"makefile", line 93: warning: duplicate script for target """" ignored
"makefile", line 94: Missing dependency operator
"makefile", line 95: warning: duplicate script for target "else" ignored
"makefile", line 96: Missing dependency operator
"makefile", line 103: Missing dependency operator
"makefile", line 105: Missing dependency operator
"makefile", line 107: Missing dependency operator
"makefile", line 121: Missing dependency operator
"makefile", line 122: warning: duplicate script for target "ifeq" ignored
"makefile", line 122: warning: duplicate script for target """" ignored
"makefile", line 122: warning: duplicate script for target ""amd64"" ignored
"makefile", line 123: Missing dependency operator
"makefile", line 124: warning: duplicate script for target "else" ignored
"makefile", line 125: Missing dependency operator
"makefile", line 156: warning: duplicate script for target "/%.o" ignored
"makefile", line 160: warning: duplicate script for target "obj.win32" ignored
"makefile", line 160: warning: duplicate script for target "/%.o" ignored
"makefile", line 164: warning: duplicate script for target "obj.win32" ignored
"makefile", line 164: warning: duplicate script for target "/%.o" ignored
"makefile", line 169: warning: duplicate script for target "obj.linux" ignored
"makefile", line 172: warning: duplicate script for target "obj.win32" ignored
"makefile", line 175: warning: duplicate script for target "obj.linux" ignored
"makefile", line 178: warning: duplicate script for target "obj.win32" ignored
make: fatal errors encountered -- cannot continue


I'm pretty sure I edited what needs to be edited in the makefile...

Code:

SDKTOP=../hlsdk
SDKSRC=$(SDKTOP)/multiplayer
METADIR=../metamod/metamod
SRCDIR=.


That looks right to me...

Code:

[whitey@buck:~/podbot] cd ../hlsdk
[whitey@buck:~/hlsdk] cd multiplayer/
[whitey@buck:~/hlsdk/multiplayer] cd ../../podbot
[whitey@buck:~/podbot] cd ../metamod/metamod/
[whitey@buck:~/metamod/metamod]



/Whitey

KWo 16-05-2006 19:14

Re: badf error
 
Post Your all makefile (not only some parts of it). What the version of mingw are You using to compile stuff?
Write:
gcc -v
to get the version number.

Whitey 16-05-2006 19:26

Re: badf error
 
Makefile:

Code:

# Console command(s) for compiling on Cygwin/MinGW:
#  Example Cygwin: make HOST=cygwin
#        http://www.xake.dk/target/tools.html

MODNAME = podbot_mm
SRCFILES = bot.cpp bot_chat.cpp bot_client.cpp bot_combat.cpp bot_globals.cpp \
bot_sounds.cpp compress.cpp dll.cpp engine.cpp util.cpp waypoint.cpp

RESFILE = podbot_mm.rc

EXTRA_LIBS_LINUX =
EXTRA_LIBS_WIN32 =
EXTRA_LIBDIRS_LINUX = -Lextra/lib_linux
EXTRA_LIBDIRS_WIN32 = -Lextra/lib_win32

#EXTRA_FLAGS = -Dstrcmpi=strcasecmp

SDKTOP=../hlsdk
SDKSRC=$(SDKTOP)/multiplayer
METADIR=../metamod/metamod
SRCDIR=.

OBJDIR_LINUX=obj.linux
OBJDIR_WIN32=obj.win32

ifeq "$(shell uname | cut -d _ -f1)" "CYGWIN"
        HOST=cygwin
endif

ifdef ComSpec
        ifeq "$(HOST)" "cygwin"
                OS=LINUX
                MCPU=-mcpu
                PATH_WIN=/usr/local/cross-tools/i386-mingw32msvc/bin
                CLEAN=clean_linux
        else
                OS=WIN32
                MCPU=-mtune
                PATH_WIN=/mingw/bin
                CLEAN=clean_win32
        endif
else
        ifdef COMSPEC
                ifeq "$(HOST)" "cygwin"
                        OS=LINUX
                        MCPU=-mcpu
                        PATH_WIN=/usr/local/cross-tools/i386-mingw32msvc/bin
                        CLEAN=clean_linux
                else
                        OS=WIN32
                        MCPU=-mtune
                        PATH_WIN=/mingw/bin
                        CLEAN=clean_msys_w32
                endif
        else
                OS=LINUX
                PATH_WIN=/usr/local/cross-tools/i386-mingw32msvc/bin
                CLEAN=clean_linux
        endif
endif

ifeq "$(HOST)" "cygwin"
        ifeq "$(ARCH)" "amd64"
                CC_LINUX=g++-linux-x86_64
        else
                CC_LINUX=g++-linux
        endif
else
        ifeq "$(ARCH)" "amd64"
                CC_LINUX=g++-x86_64
        else
                CC_LINUX=g++
        endif
endif

ifeq "$(OS)" "LINUX"
        INSTALL=install -m 644
        LD_WINDLL= PATH=$(PATH_WIN) $(PATH_WIN)/dllwrap
        DEFAULT=linux
#        CLEAN=clean_linux
else        # WIN32
        INSTALL=cp
        CC_WIN32=g++
        LD_WINDLL= dllwrap
        DEFAULT=win32
#        CLEAN=clean_win32
endif

RES_WIN32=windres

# Just call everything i386 unless its a 64bit binary!
ifeq "$(ARCH)" "amd64"
        LIBFILE_LINUX = $(MODNAME)_amd64.so
else
        LIBFILE_LINUX = $(MODNAME)_i386.so
endif

LIBFILE_WIN32 = $(MODNAME).dll
TARGET_LINUX = $(OBJDIR_LINUX)/$(LIBFILE_LINUX)
TARGET_WIN32 = $(OBJDIR_WIN32)/$(LIBFILE_WIN32)

FILES_ALL = *.cpp *.h [A-Z]* *.rc
ifeq "$(OS)" "LINUX"
#        ASRCFILES := $(shell ls -t $(SRCFILES))
else
#        ASRCFILES := $(shell dir /b)
endif

OBJ_LINUX := $(SRCFILES:%.cpp=$(OBJDIR_LINUX)/%.o)
OBJ_WIN32 := $(SRCFILES:%.cpp=$(OBJDIR_WIN32)/%.o)
RES_OBJ_WIN32 := $(RESFILE:%.rc=$(OBJDIR_WIN32)/%.o)

# optimisation level; overridden for certain problematic files
CCO = -O2 -fomit-frame-pointer
#CCO = -O2

#use this one for debug
#CCO = -g3

# architecture tuning by arch type
ifeq "$(ARCH)" "amd64"
        CCOPT_ARCH =
else
        CCOPT_ARCH = -march=i586 $(MCPU)=i686
endif

#BASEFLAGS = -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp
BASEFLAGS =

CCOPT = $(CCO) $(CCOPT_ARCH) -fno-exceptions -fno-rtti -DNDEBUG
#CCOPT = $(CCO) $(CCOPT_ARCH) -fno-exceptions -fno-rtti
#CCOPT = $(CCO) $(CCOPT_ARCH) -DNDEBUG


INCLUDEDIRS= -I$(SRCDIR) -I$(METADIR) -I$(SDKSRC)/engine -I$(SDKSRC)/common -I$(SDKSRC)/pm_shared -I$(SDKSRC)/dlls -I$(SDKSRC) $(EXTRA_INCLUDEDIRS)
#CFLAGS=-Wall -Wno-unknown-pragmas
CFLAGS=$(BASEFLAGS) -Wall -Wno-unknown-pragmas

ODEF = -DOPT_TYPE=\"optimized\"
#ODEF =
CFLAGS:=$(CCOPT) $(CFLAGS) $(ODEF)

DO_CC_LINUX=$(CC_LINUX) $(CFLAGS) -fPIC $(INCLUDEDIRS) -DLINUX -o $@ -c $<
DO_CC_WIN32=$(CC_WIN32) $(CFLAGS) $(INCLUDEDIRS) -DWIN32 -o $@ -c $<
DO_RES_WIN32=$(RES_WIN32) -I$(SRCDIR) -I$(METADIR) -i $< -O coff -o $@
LINK_LINUX=$(CC_LINUX) $(CFLAGS) -shared -ldl -lm -static-libgcc $(OBJ_LINUX) $(EXTRA_LIBDIRS_LINUX) $(EXTRA_LIBS_LINUX) -s -o $@
LINK_WIN32=$(CC_WIN32) -mdll -Xlinker --add-stdcall-alias $(OBJ_WIN32) $(RES_OBJ_WIN32) $(EXTRA_LIBDIRS_WIN32) $(EXTRA_LIBS_WIN32) -s -o $@
#for debug use 2 below
#LINK_LINUX=$(CC_LINUX) $(CFLAGS) -shared -ldl -lm -static-libgcc $(OBJ_LINUX) $(EXTRA_LIBDIRS_LINUX) $(EXTRA_LIBS_LINUX) -o $@
#LINK_WIN32=$(CC_WIN32) -mdll -Xlinker --add-stdcall-alias $(OBJ_WIN32) $(RES_OBJ_WIN32) $(EXTRA_LIBDIRS_WIN32) $(EXTRA_LIBS_WIN32) -o $@

$(OBJDIR_LINUX)/%.o: $(SRCDIR)/%.cpp
        $(DO_CC_LINUX)

$(OBJDIR_WIN32)/%.o: $(SRCDIR)/%.cpp
        $(DO_CC_WIN32)

# compiling windows resource file
$(OBJDIR_WIN32)/%.o: $(SRCDIR)/%.rc $(INFOFILES)
        $(DO_RES_WIN)

# compiling windows resource file
$(OBJDIR_WIN32)/%.o: $(SRCDIR)/%.rc
        $(DO_RES_WIN32)

default: $(DEFAULT)

$(TARGET_LINUX): $(OBJDIR_LINUX) $(OBJ_LINUX)
        $(LINK_LINUX)

$(TARGET_WIN32): $(OBJDIR_WIN32) $(OBJ_WIN32) $(RES_OBJ_WIN32)
        $(LINK_WIN32)

$(OBJDIR_LINUX):
        mkdir $@

$(OBJDIR_WIN32):
        mkdir $@

win32: $(TARGET_WIN32)

linux: $(TARGET_LINUX)
       
clean: $(CLEAN)

clean_linux:
        test -n "$(OBJDIR_LINUX)"
        -rm -f $(OBJDIR_LINUX)/*.o

clean_win32:
        -if exist $(OBJDIR_WIN32)\*.o del /q $(OBJDIR_WIN32)\*.o
       
clean_msys_w32:
        test -n "$(OBJDIR_WIN32)"
        -rm -f $(OBJDIR_WIN32)/*.o
       

clean_both: clean_linux clean_win32




gcc:

Code:

[whitey@buck:~/podbot] gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.2 [FreeBSD] 20040728



Thanks,



/Whitey

[NvT]_KaszpiR_ 16-05-2006 19:59

Re: badf error
 
make -v

and what shell are you using?

most;ly your errors are related to makefile

i suggest you change any line tkat ends with slash \ to the single line
just delete the slahs and the enwline character, so the text will create one long line.

Whitey 16-05-2006 20:01

Re: badf error
 
Quote:

Originally Posted by [NvT]_KaszpiR_
make -v

and what shell are you using?


make -v gives me the same errors...


I'm using bash as far as I know..



/Whitey

[NvT]_KaszpiR_ 16-05-2006 20:19

Re: badf error
 
try
make --version
similiar in bash
bash --version

Whitey 16-05-2006 20:22

Re: badf error
 
Quote:

Originally Posted by [NvT]_KaszpiR_
try
make --version
similiar in bash
bash --version



bash --version outputs fine...

Code:

[whitey@buck:~] bash --version
GNU bash, version 3.00.16(1)-release (i386-portbld-freebsd5.4)
Copyright (C) 2004 Free Software Foundation, Inc.

However I can't get a version on make... I tried man make too, and I couldn't see anything about it on there =/.



/Whitey

[NvT]_KaszpiR_ 16-05-2006 23:27

Re: badf error
 
or maybe you don;t have make ;)

Whitey 16-05-2006 23:45

Re: badf error
 
Quote:

Originally Posted by [NvT]_KaszpiR_
or maybe you don;t have make ;)


I'm pretty sure I have make...


Code:

make: no target to make.

If I didn't have make, it'd output /bin/bash: make no such command, or something like that...


Any other suggestions? =/.



/Whitey

[NvT]_KaszpiR_ 17-05-2006 09:10

Re: badf error
 
i don't know freebsd, but maybe you're missing some packages, in example some devel or others for buildin stuff drom source, do you have any problems with making other programs under freebsd?

Whitey 17-05-2006 14:14

Re: badf error
 
Quote:

Originally Posted by [NvT]_KaszpiR_
i don't know freebsd, but maybe you're missing some packages, in example some devel or others for buildin stuff drom source, do you have any problems with making other programs under freebsd?


Never any problems - and I talked to people in the #freebsdhelp channel - libstdc++ is included on the FreeBSD setup by default.



/Whitey

KWo 17-05-2006 18:09

Re: badf error
 
@KaszpiR - take my makefile included into beta sources and try to use it directly on Your linux gentoo. Just install on it mingw (3.4.2), get mm1.19 sources and HLSDK 2.3p3 and try to compile with my makefile then check if compiled by You binary works. To make sure my makefile works correctly also on linux machines.

Whitey 17-05-2006 18:49

Re: badf error
 
I really appreciate the work you guys put into this by the way - and the quick replies I've been getting :).


I loved the original PODBot, and I've tried out _mm on my local hlds - works like a charm :).


/Whitey

[NvT]_KaszpiR_ 17-05-2006 22:26

Re: badf error
 
KWo just f**ed me on the instant messenger :D
and here are my results on gentoo

makefile is wrong, it does not have the proper MCPU variable - thus the compiler dies

looks like it is okay under cygwin, but under linux it works different
here is my solution:
- in makefile find text
Code:

OBJDIR_LINUX=obj.linux
OBJDIR_WIN32=obj.win32

below that oine write
Code:

MCPU=-mtune
now it shoudl work properly


below the full makefile link to wiki
http://wiki.bots-united.com/index.ph...mpile_Makefile

Whitey 18-05-2006 00:06

Re: badf error
 
Quote:

Originally Posted by [NvT]_KaszpiR_
KWo just f**ed me on the instant messenger :D
and here are my results on gentoo

makefile is wrong, it does not have the proper MCPU variable - thus the compiler dies

looks like it is okay under cygwin, but under linux it works different
here is my solution:
- in makefile find text
Code:

OBJDIR_LINUX=obj.linux
OBJDIR_WIN32=obj.win32

below that oine write
Code:

MCPU=-mtune
now it shoudl work properly


below the full makefile link to wiki
http://wiki.bots-united.com/index.ph...mpile_Makefile



Didn't help :<


Code:

[whitey@buck:~/podbot] make
"makefile", line 27: Need an operator
"makefile", line 29: Need an operator
"makefile", line 31: Need an operator
"makefile", line 43: Need an operator
"makefile", line 61: Need an operator
"makefile", line 63: Need an operator
"makefile", line 64: warning: duplicate script for target "ifeq" ignored
"makefile", line 64: warning: duplicate script for target """" ignored
"makefile", line 65: warning: duplicate script for target "ifeq" ignored
"makefile", line 65: warning: duplicate script for target """" ignored
"makefile", line 66: warning: duplicate script for target "ifeq" ignored
"makefile", line 66: warning: duplicate script for target """" ignored
"makefile", line 67: warning: duplicate script for target "ifeq" ignored
"makefile", line 67: warning: duplicate script for target """" ignored
"makefile", line 68: warning: duplicate script for target "ifeq" ignored
"makefile", line 68: warning: duplicate script for target """" ignored
"makefile", line 69: Need an operator
"makefile", line 75: Need an operator
"makefile", line 77: Need an operator
"makefile", line 78: warning: duplicate script for target "ifeq" ignored
"makefile", line 78: warning: duplicate script for target """" ignored
"makefile", line 79: warning: duplicate script for target "ifeq" ignored
"makefile", line 79: warning: duplicate script for target """" ignored
"makefile", line 80: warning: duplicate script for target "ifeq" ignored
"makefile", line 80: warning: duplicate script for target """" ignored
"makefile", line 82: Need an operator
"makefile", line 88: Need an operator
"makefile", line 93: Need an operator
"makefile", line 94: warning: duplicate script for target "ifeq" ignored
"makefile", line 94: warning: duplicate script for target """" ignored
"makefile", line 95: Need an operator
"makefile", line 97: Need an operator
"makefile", line 104: Need an operator
"makefile", line 106: Need an operator
"makefile", line 108: Need an operator
"makefile", line 122: Need an operator
"makefile", line 123: warning: duplicate script for target "ifeq" ignored
"makefile", line 123: warning: duplicate script for target """" ignored
"makefile", line 124: Need an operator
"makefile", line 126: Need an operator
"makefile", line 161: warning: duplicate script for target "obj.win32/%.o" ignored
"makefile", line 165: warning: duplicate script for target "obj.win32/%.o" ignored
make: fatal errors encountered -- cannot continue

This is FreeBSD by the way :).



/Whitey

[NvT]_KaszpiR_ 18-05-2006 09:07

Re: badf error
 
hmm as we can see, FreeBSD got wicked makefile.
i guess the makefile for FreeBSD must be completely rewritten
i bet you want to get only linux binary - it will be easier ;)

Whistler 18-05-2006 12:11

Re: badf error
 
try the GNU make, not the BSD make :)

and I don't think there is a FreeBSD version of HLDS, so you may need to cross-compile the GNU/Linux target.

Whitey 18-05-2006 19:54

Re: badf error
 
Quote:

Originally Posted by [NvT]_KaszpiR_
hmm as we can see, FreeBSD got wicked makefile.
i guess the makefile for FreeBSD must be completely rewritten
i bet you want to get only linux binary - it will be easier ;)



Well I tried the linux binary originally - KWo recommended I tried to compile as the binary didn't work =/.


CS simply will not load it - gives it a badf error...



/Whitey

Whitey 18-05-2006 21:58

Re: badf error
 
Quote:

Originally Posted by Whistler
try the GNU make, not the BSD make :)

and I don't think there is a FreeBSD version of HLDS, so you may need to cross-compile the GNU/Linux target.


Sorry, I didn't see your reply before :P. GNU make?



/Whitey

Whitey 20-05-2006 23:24

Re: badf error
 
Any new updates or ideas guys?...



/Whitey

[NvT]_KaszpiR_ 21-05-2006 00:53

Re: badf error
 
just a digression , maybe it can help anyway
read http://www.freebsd.org/doc/en_US.ISO...c-install.html
as superuser/root run system upgrade, then
cd /usr/ports/emulators/linux_base-suse-9.2
make install clean

in etc/rc.conf
Code:

linux_enable="YES"
restart machine


and while biulding binary you may need to use linux headers (don't askme for more, i'm not familiar with freebsd)

Whitey 21-05-2006 01:35

Re: badf error
 
Quote:

Originally Posted by [NvT]_KaszpiR_
just a digression , maybe it can help anyway
read http://www.freebsd.org/doc/en_US.ISO...c-install.html
as superuser/root run system upgrade, then
cd /usr/ports/emulators/linux_base-suse-9.2
make install clean

in etc/rc.conf
Code:

linux_enable="YES"
restart machine


and while biulding binary you may need to use linux headers (don't askme for more, i'm not familiar with freebsd)


Well I can make the install, but is there any other way than restarting the machine? I run some customers things on there, and they wouldn't be too happy if I had to restart it.



/Whitey

Whitey 21-05-2006 05:06

Re: badf error
 
Ok, I'm having a serious problem now I've done that...


Code:

Auto detecting CPU
Using AMD Optimised binary.
Auto-restarting the server on crash
./hlds_amd: relocation error: /lib/libc.so.6: symbol _dl_starting_up, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem
Sun May 21 13:05:25 EST 2006: Server restart in 10 seconds
./hlds_amd: relocation error: /lib/libc.so.6: symbol _dl_starting_up, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem
Sun May 21 13:05:35 EST 2006: Server restart in 10 seconds
^CSun May 21 13:05:38 EST 2006: Server Quit

That's when I boot up the server. I can't get my server to run anymore...



/Whitey

KWo 21-05-2006 08:30

Re: badf error
 
Quote:

Originally Posted by Whitey
I've been surfing around the forums and seen the error a few times - the only solution I can see is compiling it on a win32 system.

I'm getting this - when You cross-compile it under win32 (or You get my binaries I cross-compiled for linux) - it works for You. So - it has nothing to the code/release.

About amd64 - if You want to use amd64 binaries - You need to have everything amd64 compatible - metamod, CS then - also podbot mm.

Whitey 21-05-2006 08:36

Re: badf error
 
Quote:

Originally Posted by KWo
About amd64 - if You want to use amd64 binaries - You need to have everything amd64 compatible - metamod, CS then - also podbot mm.

Well, my server's not an AMD, but since I made that thing KaszpiR recommended, it seems to think it is =/




/Whitey

[NvT]_KaszpiR_ 21-05-2006 15:14

Re: badf error
 
first of all revert changes in /etc/rc.conf about Linuxe emulation, seems thi is wrong

Whitey 21-05-2006 23:14

Re: badf error
 
Quote:

Originally Posted by [NvT]_KaszpiR_
first of all revert changes in /etc/rc.conf about Linuxe emulation, seems thi is wrong



ok, I changed the following..

linux_enable="YES"


to


linux_enable="NO"


However, I don't know how to remove the "linux base" from my system..




/Whitey

[NvT]_KaszpiR_ 22-05-2006 12:58

Re: badf error
 
http://www.freebsd.org/cgi/man.cgi?q...lete&sektion=1


All times are GMT +2. The time now is 14:07.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.