Server Help

ASSS Questions - Missing files in ASSS.DEV Plus Compile Error

corvey - Fri Apr 06, 2007 3:05 am
Post subject: Missing files in ASSS.DEV Plus Compile Error
There are missing files when try to load ASSS.DEV into Dev C++ 4.9.9.2


1. Bricklayer.c
2. Mapobj.h
3. stats.h




Then when I try to compile ASSS, it fails at: (debug log)

Code: Show/Hide

Compiler: Default compiler
Executing  make...
make.exe -f "Makefile" all
../windeps/install.exe core/backtrace ../build/asss.exe ../build/dbtool.exe ../build/database.dll ../build/funky.dll ../build/pymod.dll ../build/scoring.dll ../build/turf.dll py/exec.py py/fg_turf.py py/fg_wz.py py/fm_password.py py/watchgreen.py ../windeps/zlib1.dll ../windeps/pthreadGC2.dll ../windeps/python24.dll ../windeps/libdb4.dll ../bin
process_begin: CreateProcess((null), uname -s, ...) failed.

Execution terminated



My /src, /windeps, and src/include are in the DEV include. Python 2.4 installed as directed. I originally had 2.5 installed, it didn't work then either, so I went 2.4.4 and started FRESH, it still does not finish compiling.


Ok, so I now I try to add the linker ../windeps/pthreadGC2.dll in Project options. This is what I get:

Code: Show/Hide

Compiler: Default compiler
Building Makefile: "E:\ASSS SOURCE\asss-1.4.3\src\Makefile.win"
Executing  make...
make.exe -f "E:\ASSS SOURCE\asss-1.4.3\src\Makefile.win" all
gcc.exe -c contrib/auth_vie.c -o contrib/auth_vie.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c contrib/mark.c -o contrib/mark.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c contrib/voices.c -o contrib/voices.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/watchdamage.c -o core/watchdamage.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/admincmd.c -o core/admincmd.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/ap_multipub.c -o core/ap_multipub.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/arenaman.c -o core/arenaman.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/arenaperm.c -o core/arenaperm.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/auth_ban.c -o core/auth_ban.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/auth_file.c -o core/auth_file.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/auth_prefix.c -o core/auth_prefix.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/balls.c -o core/balls.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/banners.c -o core/banners.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/billing.c -o core/billing.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

core/billing.c: In function `check_connected':

core/billing.c:972: warning: passing arg 4 of `getsockopt' from incompatible pointer type

gcc.exe -c core/billing_ssc.c -o core/billing_ssc.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/bricks.c -o core/bricks.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/buy.c -o core/buy.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/bw_default.c -o core/bw_default.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/bw_nolimit.c -o core/bw_nolimit.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/capman.c -o core/capman.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

gcc.exe -c core/cfghelp.c -o core/cfghelp.o -I"C:/Dev-Cpp/include"  -I"E:/asss/asss-1.4.3/src/include"  -I"E:/ASSS SOURCE/asss-1.4.3/src"  -I"E:/ASSS SOURCE/asss-1.4.3/windeps"  -I"E:/ASSS SOURCE/asss-1.4.3/src/include"   

core/cfghelp.c:8:23: cfghelp.inc: No such file or directory
core/cfghelp.c: In function `find_sec':
core/cfghelp.c:14: error: `cfg_help_section_count' undeclared (first use in this function)
core/cfghelp.c:14: error: (Each undeclared identifier is reported only once
core/cfghelp.c:14: error: for each function it appears in.)
core/cfghelp.c:15: error: `cfg_help_sections' undeclared (first use in this function)

core/cfghelp.c: In function `find_key':
core/cfghelp.c:23: error: dereferencing pointer to incomplete type
core/cfghelp.c:24: error: dereferencing pointer to incomplete type
core/cfghelp.c:25: error: dereferencing pointer to incomplete type
core/cfghelp.c: At top level:
core/cfghelp.c:29: error: syntax error before "cfghelpint"

core/cfghelp.c:31: warning: braces around scalar initializer
core/cfghelp.c:31: warning: (near initialization for `cfghelpint')
core/cfghelp.c:31: error: `I_CFGHELP' undeclared here (not in a function)
core/cfghelp.c:31: warning: excess elements in scalar initializer

core/cfghelp.c:31: warning: (near initialization for `cfghelpint')
core/cfghelp.c:31: warning: excess elements in scalar initializer
core/cfghelp.c:31: warning: (near initialization for `cfghelpint')
core/cfghelp.c:31: warning: excess elements in scalar initializer
core/cfghelp.c:31: warning: (near initialization for `cfghelpint')
core/cfghelp.c:31: warning: excess elements in scalar initializer
core/cfghelp.c:31: warning: (near initialization for `cfghelpint')
core/cfghelp.c:32: error: `cfg_help_sections' undeclared here (not in a function)
core/cfghelp.c:32: warning: excess elements in scalar initializer
core/cfghelp.c:32: warning: (near initialization for `cfghelpint')
core/cfghelp.c:33: error: `cfg_help_section_count' undeclared here (not in a function)
core/cfghelp.c:33: warning: excess elements in scalar initializer
core/cfghelp.c:33: warning: (near initialization for `cfghelpint')
core/cfghelp.c:34: error: `cfg_help_all_section_names' undeclared here (not in a function)
core/cfghelp.c:34: warning: excess elements in scalar initializer
core/cfghelp.c:34: warning: (near initialization for `cfghelpint')
core/cfghelp.c:35: warning: excess elements in scalar initializer
core/cfghelp.c:35: warning: (near initialization for `cfghelpint')
core/cfghelp.c:36: warning: excess elements in scalar initializer
core/cfghelp.c:36: warning: (near initialization for `cfghelpint')
core/cfghelp.c:36: warning: data definition has no type or storage class

make.exe: *** [core/cfghelp.o] Error 1

Execution terminated


Anyone know whats going on?
corvey - Fri Apr 06, 2007 3:41 am
Post subject:
#include "cfghelp.inc"


Is it a typo in the original package, It should be "cfghelp.c"?


Ok, so I changed it, and it exploded...


It's too long of a debug log to post here. If you want it I can post it biggrin.gif
Cyan~Fire - Fri Apr 06, 2007 10:01 am
Post subject:
I think you might have to update your python location in one of the makefiles. I'll check it out when I get back from class and have a bit of time.
Smong - Sun Apr 08, 2007 3:56 pm
Post subject:
cfghelp.inc is correct. During the compilation process some python scripts are run to generate several .inc files. In order to do this from devcpp a custom makefile has to be used. Devcpp doesn't come with uname.exe so the makefile fails. Note, in your second attempt it looks like you disabled the custom makefile.

In the past I think the full version of asss came with the .inc files already generated. I just checked my copy of 143 and they don't seem to be there.

What I do on windows is use the precompiled version of asss. I then recompile individual modules when I edit them using a seperate project.
corvey - Sun Apr 08, 2007 4:34 pm
Post subject:
Smong wrote:
cfghelp.inc is correct. During the compilation process some python scripts are run to generate several .inc files. In order to do this from devcpp a custom makefile has to be used. Devcpp doesn't come with uname.exe so the makefile fails. Note, in your second attempt it looks like you disabled the custom makefile.

In the past I think the full version of asss came with the .inc files already generated. I just checked my copy of 143 and they don't seem to be there.

What I do on windows is use the precompiled version of asss. I then recompile individual modules when I edit them using a seperate project.



Do you have the custom makefile solution for ASSS version 1.43?

Which version in the past has the .inc files included, and can they be used in ASSS 1.43?
Smong - Sun Apr 08, 2007 4:43 pm
Post subject:
What I mean by custom makefile is that asss.dev refers to src/Makefile. If you look at the project options then the makefile tab you will see what I mean.

I don't think it's a good idea to use old .inc files, they will almost certainly be out of sync. Of all the versions of win asss I have lying around only 1.3.1 seems to have the inc files.
corvey - Sun Apr 08, 2007 5:24 pm
Post subject:
You must forgive me, I am still learning stuff so I can try to make a module.
I was hoping for a trouble free, error free, nothing needed to compile the server is itself, so I could concentrate on learning how to implement what I'm trying to do with the ASSS code and with knowledge that errors to be produce from my code was my fault and has nothing to do with ASSS code itself.

Ok I tried using the makefile in the Project settings. Still come up with uname error.
Smong - Sun Apr 08, 2007 5:44 pm
Post subject:
In that case I don't think you want to recompile the entire the server. I suggest downloading the precompiled version.

Then compile your custom modules in a separate project:
Wiki: Installing new modules: With Dev C++
corvey - Sun Apr 08, 2007 5:52 pm
Post subject:
That is the version I'm working with. I have also read that link before. I will re-read it again though and try to figure it out.

I would still like to know why ASSS server isn't able to be fully compiled on the fly in a complete package.


Thanks
BDwinsAlt - Sun Apr 08, 2007 7:54 pm
Post subject:
It kind of is precompiled when you think about it. You don't HAVE to have it recompiled unless you edit the source to a C file. With subgame you can only edit configuration files and things like that. You're limited to what you can do. A simple make deps, make every now and then won't hurt. It isn't even needed if you use python.

By the way, if you use the make on Linux it compiles with no error. I always have issues with Dev-C++. Try downloading a linux-like compiler for Windows.
corvey - Mon Apr 09, 2007 7:37 am
Post subject:
Ok, I successfully compiled and ran a very small test module. Now I have a lot more learning to do!


Thanks for your help.
tcsoccerman - Sun Oct 28, 2007 11:31 am
Post subject:
I am getting the same error he is with asss 1.4.4, and i conducted a search for cfghelp.inc and never found it..does someone have a copy of one that i could use?
CypherJF - Sun Oct 28, 2007 12:59 pm
Post subject:
This is the error log of when I try to compile using DevC++.

It does create the /build/ .stamp and deps.mk files.

Code: Show/Hide

Compiler: Default compiler
Executing  make...
make.exe -f "Makefile" all
process_begin: CreateProcess(NULL, uname -s, ...) failed.
Makefile:110: ../build/deps.mk: No such file or directory

../windeps/install.exe -d ../build/

../windeps/install.exe: cannot create directory `..\build\': File exists

make.exe: [../build/.stamp] Error 1 (ignored)

../windeps/install.exe Makefile ../build/.stamp

../windeps/python.exe ../scripts/makedeps.py -I. -Iinclude -I../build -I../windeps -D_REENTRANT -D_GNU_SOURCE  -I../windeps -I../windeps/mysqlinc -I../windeps/pythoninc \
      */*.c -P '$(BUILDDIR)/' -o ../build/deps.mk

makedeps: ignoring option: -D_REENTRANT
makedeps: ignoring option: -D_GNU_SOURCE
makedeps: warning: "need_errno.h" not found

makedeps: warning: "errno.h" not found
makedeps: warning: "unixstuff.h" not found

gcc -std=gnu99 -pipe -I. -Iinclude -I../build -I../windeps -D_REENTRANT -D_GNU_SOURCE  -g -Wall   -c -o ../build/main.o main\main.c
process_begin: CreateProcess(NULL, uname -s, ...) failed.

gcc: installation problem, cannot exec `cc1': No such file or directory

make.exe: *** [../build/main.o] Error 1

Execution terminated

tcsoccerman - Sun Oct 28, 2007 3:05 pm
Post subject:
i don't have deps.mk either..
CypherJF - Sun Oct 28, 2007 3:36 pm
Post subject:
deps.mk, I had to put the python.exe in the windep's folder.

I fixed my cc1 issue by
Quote:

I'm using Dev-C++ 4.9.9.2. I fixed this error by adding the path of cc1.exe to the compiler's binary paths.

Menu bar: "Tools|Compiler Options"
Compiler Options dialog: "Directories" tab
Directories Tab: "Binaries" sub tab
Add path to cc1.exe dir: "C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2" (you'll have to locate it on your system)
Shift+F11


But now I'm running into the compiler not reading the standard library header files provided by DevC++. The parameters are setup correctly in the environment, but it's not being passed correctly or something.

I'm hitting the comment after the suggestion above-
http://www.neowin.net/forum/lofiversion/index.php/t531328.html

Quote:

Compiler: Default compiler
Executing make...
make.exe -f "Makefile" all
process_begin: CreateProcess(NULL, uname -s, ...) failed.
Makefile:110: ../build/deps.mk: No such file or directory

../windeps/install.exe -d ../build/

../windeps/install.exe: cannot create directory `..\build\': File exists

make.exe: [../build/.stamp] Error 1 (ignored)
../windeps/install.exe Makefile ../build/.stamp

../windeps/python.exe ../scripts/makedeps.py -I. -Iinclude -I../build -I../windeps -D_REENTRANT -D_GNU_SOURCE -I../windeps -I../windeps/mysqlinc -I../windeps/pythoninc \
*/*.c -P '$(BUILDDIR)/' -o ../build/deps.mk

makedeps: ignoring option: -D_REENTRANT
makedeps: ignoring option: -D_GNU_SOURCE
makedeps: warning: "need_errno.h" not found

makedeps: warning: "errno.h" not found
makedeps: warning: "unixstuff.h" not found

gcc -std=gnu99 -pipe -I. -Iinclude -I../build -I../windeps -D_REENTRANT -D_GNU_SOURCE -g -Wall -c -o ../build/main.o main\main.c
process_begin: CreateProcess(NULL, uname -s, ...) failed.

main\main.c:4:20: limits.h: No such file or directory
main\main.c:5:19: stdio.h: No such file or directory
main\main.c:6:20: stdlib.h: No such file or directory
main\main.c:7:20: string.h: No such file or directory
In file included from include/asss.h:15,
from main\main.c:18:
include/defs.h:12:20: stddef.h: No such file or directory
In file included from include/defs.h:37,
from include/asss.h:15,
from main\main.c:18:
include/util.h:57: error: syntax error before "bytes"
include/util.h:59: error: syntax error before "size_t"
include/util.h:68: error: syntax error before "size_t"
include/util.h:82: error: syntax error before "size_t"

include/util.h:337: error: syntax error before "size_t"
include/util.h:337: warning: no semicolon at end of struct or union
include/util.h:339: error: syntax error before '}' token
In file included from include/util.h:346,
from include/defs.h:37,
from include/asss.h:15,
from main\main.c:18:
../windeps/pthread.h:247:18: time.h: No such file or directory
../windeps/pthread.h:256:20: setjmp.h: No such file or directory

../windeps/pthread.h:290:19: errno.h: No such file or directory
In file included from ../windeps/pthread.h:317,
from include/util.h:346,
from include/defs.h:37,
from include/asss.h:15,
from main\main.c:18:
../windeps/sched.h:119:25: sys/types.h: No such file or directory
In file included from ../windeps/pthread.h:317,
from include/util.h:346,
from include/defs.h:37,
from include/asss.h:15,
from main\main.c:18:
../windeps/sched.h:152: error: syntax error before "pid"
../windeps/sched.h:154: error: syntax error before "pid"
In file included from include/util.h:346,
from include/defs.h:37,
from include/asss.h:15,
from main\main.c:18:
../windeps/pthread.h:905: error: syntax error before "size_t"
../windeps/pthread.h:914: error: syntax error before "size_t"
In file included from include/defs.h:37,
from include/asss.h:15,
from main\main.c:18:
include/util.h:397: error: syntax error before "time_t"
include/util.h:397: warning: no semicolon at end of struct or union
include/util.h:398: warning: type defaults to `int' in declaration of `MMapData'
include/util.h:398: warning: data definition has no type or storage class

include/util.h:406: error: syntax error before '*' token
include/util.h:406: warning: type defaults to `int' in declaration of `MapFile'
include/util.h:406: warning: data definition has no type or storage class
include/util.h:408: error: syntax error before '*' token

include/util.h:411: error: syntax error before '*' token
In file included from include/defs.h:200,
from include/asss.h:15,
from main\main.c:18:
include/win32compat.h:7:21: windows.h: No such file or directory
include/win32compat.h:8:21: winsock.h: No such file or directory
include/win32compat.h:10:20: malloc.h: No such file or directory
...

make.exe: *** [../build/main.o] Error 1

Execution terminated



edit 1: i've been able to get the *.c files to compile into *.o; but I need to find out how to get the /build/*.o's built with the std library *.o files.

Quote:

Compiler: Default compiler
Executing make clean
process_begin: CreateProcess(NULL, uname -s, ...) failed.
Makefile:116: ../build/deps.mk: No such file or directory

../windeps/install.exe -d ../build/

../windeps/install.exe: cannot create directory `..\build\': File exists

make.exe: [../build/.stamp] Error 1 (ignored)

../windeps/install.exe Makefile ../build/.stamp

../windeps/python.exe ../scripts/makedeps.py -I. -Iinclude -IC:/Dev-Cpp/include -IC:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include -I../build -I../windeps -D_REENTRANT -D_GNU_SOURCE -I../windeps -I../windeps/mysqlinc -I../windeps/pythoninc \
*/*.c -P '$(BUILDDIR)/' -o ../build/deps.mk

makedeps: ignoring option: -IC:/Dev-Cpp/include
makedeps: ignoring option: -IC:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include
makedeps: ignoring option: -D_REENTRANT
makedeps: ignoring option: -D_GNU_SOURCE
makedeps: warning: "need_errno.h" not found
makedeps: warning: "errno.h" not found

makedeps: warning: "Python.h" not found
makedeps: warning: "structmember.h" not found

rm -f ../build/*
process_begin: CreateProcess(NULL, uname -s, ...) failed.

gcc -std=gnu99 -pipe -I. -Iinclude -IC:/Dev-Cpp/include -IC:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include -I../build -I../windeps -D_REENTRANT -D_GNU_SOURCE -g -Wall -c -o ../build/main.o main\main.c
...

core\obscene.c: In function `Filter':
core\obscene.c:79: warning: initialization discards qualifiers from pointer target type

core\obscene.c:97: warning: assignment discards qualifiers from pointer target type

gcc -std=gnu99 -pipe -I. -Iinclude -IC:/Dev-Cpp/include -IC:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include -I../build -I../windeps -D_REENTRANT -D_GNU_SOURCE -g -Wall -c -o ../build/deadlock.o core\deadlock.c

dlltool.exe --export-all-symbols -D asss.exe -e ../build/export.exp -l ../build/import.imp ../build/main.o ../build/module.o ../build/cmod.o C:/Dev-Cpp/lib/crt2.o ../build/util.o ../build/pathutil.o ../build/protutil.o ../build/rwlock.o ../build/app.o ../build/md5.o ../build/win32compat.o ../build/config.o ../build/prng.o ../build/player.o ../build/core.o ../build/logman.o ../build/idle.o ../build/mainloop.o ../build/net.o ../build/enc_null.o ../build/enc_vie.o ../build/arenaman.o ../build/mapdata.o ../build/mapnewsdl.o ../build/clientset.o ../build/capman.o ../build/lagdata.o ../build/lagaction.o ../build/bw_default.o ../build/bw_nolimit.o ../build/log_file.o ../build/log_console.o ../build/log_sysop.o ../build/log_staff.o ../build/game.o ../build/game_timer.o ../build/chat.o ../build/flagcore.o ../build/balls.o ../build/fm_normal.o ../build/banners.o ../build/bricks.o ../build/objects.o ../build/messages.o ../build/koth.o ../build/fm_lockspec.o ../build/cmdman.o ../build/playercmd.o ../build/admincmd.o ../build/watchdamage.o ../build/buy.o ../build/help.o ../build/notify.o ../build/directory.o ../build/billing.o ../build/billing_ssc.o ../build/pwcache.o ../build/cfghelp.o ../build/filetrans.o ../build/quickfix.o ../build/freqowners.o ../build/arenaperm.o ../build/auth_prefix.o ../build/fake.o ../build/chatnet.o ../build/ap_multipub.o ../build/sendfile.o ../build/auth_ban.o ../build/auth_file.o ../build/obscene.o ../build/deadlock.o

gcc -std=gnu99 -pipe ../build/export.exp -o ../build/asss.exe ../build/main.o ../build/module.o ../build/cmod.o C:/Dev-Cpp/lib/crt2.o ../build/util.o ../build/pathutil.o ../build/protutil.o ../build/rwlock.o ../build/app.o ../build/md5.o ../build/win32compat.o ../build/config.o ../build/prng.o ../build/player.o ../build/core.o ../build/logman.o ../build/idle.o ../build/mainloop.o ../build/net.o ../build/enc_null.o ../build/enc_vie.o ../build/arenaman.o ../build/mapdata.o ../build/mapnewsdl.o ../build/clientset.o ../build/capman.o ../build/lagdata.o ../build/lagaction.o ../build/bw_default.o ../build/bw_nolimit.o ../build/log_file.o ../build/log_console.o ../build/log_sysop.o ../build/log_staff.o ../build/game.o ../build/game_timer.o ../build/chat.o ../build/flagcore.o ../build/balls.o ../build/fm_normal.o ../build/banners.o ../build/bricks.o ../build/objects.o ../build/messages.o ../build/koth.o ../build/fm_lockspec.o ../build/cmdman.o ../build/playercmd.o ../build/admincmd.o ../build/watchdamage.o ../build/buy.o ../build/help.o ../build/notify.o ../build/directory.o ../build/billing.o ../build/billing_ssc.o ../build/pwcache.o ../build/cfghelp.o ../build/filetrans.o ../build/quickfix.o ../build/freqowners.o ../build/arenaperm.o ../build/auth_prefix.o ../build/fake.o ../build/chatnet.o ../build/ap_multipub.o ../build/sendfile.o ../build/auth_ban.o ../build/auth_file.o ../build/obscene.o ../build/deadlock.o -L../windeps -lpthreadGC2 -lwsock32 -L../windeps -lzdll -lm

ld: crt2.o: No such file: No such file or directory

make.exe: *** [../build/asss.exe] Error 1

Execution terminated


tcsoccerman - Sun Oct 28, 2007 4:04 pm
Post subject:
i still need cfghelp.inc....
Cyan~Fire - Mon Oct 29, 2007 1:23 am
Post subject:
It's been a while but I think I had to edit system.mk to specify some correct paths.
tcsoccerman - Mon Oct 29, 2007 3:57 pm
Post subject:
yeh you're right, it's just not right in my case. in my case i had the correct path to python it's just i had the wrong version. testing right now

Edit:same problem, i have python 2.4 installed and i put it's location in system file, i put python.exe in windeps and the include folder as well. i restarted computer and did execute->rebuild all in dev c++.

maybe if i knew a little more about this file it would help.

Edit2:cypherjf said he manually edited the scripts to have cfghelp.inc work, can i have those new scripts, or explain to me what needs to be done.

can someone also tell me what needs to be done with my python "items" since i believe that is the problem.
CypherJF - Mon Oct 29, 2007 5:26 pm
Post subject:
Everything I did is up above. I also deleted my installation folder because I wasn't making any progress and figured to scrap it.
tcsoccerman - Mon Oct 29, 2007 5:33 pm
Post subject:
i can't find how you solved the cfghelp.inc problem.

also, how do i correctly state where my python home is located, right now this is what i have:

Code: Show/Hide
PYTHON_HOME = $C:/python

tcsoccerman - Mon Oct 29, 2007 8:03 pm
Post subject:
i think i found a spot where in system.mk where there is trouble,

Code: Show/Hide
# locations of useful programs
INSTALL := install
LN := ln
PYTHON := $C:/Documents and Settings/tcsoccerman/My Documents/asss-1.4.4/windeps/python.exe
REALPATH := readlink -f


the only one i've changed is PYTHON, i'm notto sure what the other one's are. can someone clarify?
CypherJF - Mon Oct 29, 2007 8:48 pm
Post subject:
Horray, I got it?

Quote:

starting asss...
asss 1.4.4 built at Oct 29 2007 19:36:26
Loading modules...

tcsoccerman - Mon Oct 29, 2007 8:51 pm
Post subject:
nice! is this for linux or what? can you tell me what you did? plz! i can talk about it tomorrow in the zone. i may be able to use winscp to see what you've done if it's the asss that i have access too.
CypherJF - Mon Oct 29, 2007 9:18 pm
Post subject:
It's on windows... I did nothing but reinstall DevC++ with mingw as a separate install and copy python.exe, python24.dll into the /windeps/ folder; and make the appropriate changes to the mk files.
tcsoccerman - Tue Oct 30, 2007 4:04 pm
Post subject:
ok my make file is probably not right. wtf does wildcard mean?

here system.mk:

Code: Show/Hide
# default options:
debug := yes
opt := no
prof := no
link_db_statically := no
symlink_bins := yes

# comment out any of these lines if you're missing some libraries:
#
# if you're missing berkeley db:
#have_bdb := yes
#
# if you're missing mysql:
#have_mysql := yes
#
# if you're missing python:
have_python := yes

# basic paths.
# ASSSHOME should point to the root directory of the asss tree.
ASSSHOME = $C:/Documents and Settings/tcsoccerman/My Documents/asss-1.4.4
BINDIR = $(ASSSHOME)/bin
BUILDDIR = $(ASSSHOME)/build
SCRIPTS = $(ASSSHOME)/scripts
PYMOD_HEADERS = $(wildcard */*.h)

# locations of useful programs
INSTALL := install
LN := ln
PYTHON := $C:/Documents and Settings/tcsoccerman/My Documents/asss-1.4.4/windeps
REALPATH := readlink -f

# locations of library dependencies:

# change this to the directory of your bdb 4.x install.
# freebsd users probably want /usr/local for all of the _HOME variables.
DB_HOME = /opt/db-4.0.14
# these probably won't have to change:
DB_INC = $(DB_HOME)/include
DB_LIB = $(DB_HOME)/lib
DB_CFLAGS = -I$(DB_INC)
ifneq ($(link_db_statically),yes)
# you might have to change -ldb-4 to -ldb4 in the next line:
DB_LDFLAGS = -L$(DB_LIB) -Wl,-rpath,$(DB_LIB) -ldb-4
else
DB_LDFLAGS = $(DB_LIB)/libdb.a
endif

# change this to the directory of your mysql install.
MYSQL_HOME = /opt/mysql
# these probably won't have to change
MYSQL_INC = $(MYSQL_HOME)/include
MYSQL_LIB = $(MYSQL_HOME)/lib
MYSQL_CFLAGS = -I$(MYSQL_INC)
MYSQL_LDFLAGS = -L$(MYSQL_LIB) -Wl,-rpath,$(MYSQL_LIB) -lmysqlclient_r

# change this to the location of your python 2.2 or higher install.
PYTHON_HOME = $C:/python
# change this to the major/minor version number of your python install.
PYTHON_VERSION = 2.2
# these probably won't have to change
PYTHON_INC = $(PYTHON_HOME)/include/python$(PYTHON_VERSION)
PYTHON_LIB = $(PYTHON_HOME)/lib/python$(PYTHON_VERSION)
PYTHON_CFLAGS = -I$(PYTHON_INC)
PYTHON_LDFLAGS = -L$(PYTHON_LIB)/config -lpython$(PYTHON_VERSION) $(UTIL_LIB) -lm

# dist: public


i have version 4.9.9.2 of dev cpp, and i have mingw32 included in the compiler.
Cyan~Fire - Tue Oct 30, 2007 11:52 pm
Post subject:
tcsoccerman wrote:
i think i found a spot where in system.mk where there is trouble,

Code: Show/Hide
# locations of useful programs
INSTALL := install
LN := ln
PYTHON := $C:/Documents and Settings/tcsoccerman/My Documents/asss-1.4.4/windeps/python.exe
REALPATH := readlink -f


the only one i've changed is PYTHON, i'm notto sure what the other one's are. can someone clarify?

The others should be fine, but your PYTHON variable is not how it should be, or at least it's not how I did mine. Install python and then set the PYTHON variable to your Python path. (For me it was C:\Coding\Python24 or something like that.)
Smong - Thu Nov 01, 2007 5:13 pm
Post subject:
I just tried to build asss 1.4.4 using devcpp 4.9.9.2 on win xp. I have cygwin installed. I have Python 2.5 installed.

First I commented out have_bdb and have_mysql in system.mk, since I don't have those. Then I opened os.mk and pasted this line after the first if statement:
Code: Show/Hide
SYS_NAME := MINGW-dev-c++
I had to do this because I have cygwin installed, otherwise devcpp tries to compile with cygwin makefile settings.

Next I commented this line:
Code: Show/Hide
PYTHON := $(WINDEPS)/python.exe
Mainly because that file doesn't exist in asss-1.4.4.zip, but also because I have C:\Python25 on my system path anyway. That's line 48 of the original os.mk.

After this line:
Code: Show/Hide
include $(WINDEPS)/system-windeps.mk
I added these 2 lines:
Code: Show/Hide
PYTHON_HOME = C:/Python25
PYTHON_INC = $(PYTHON_HOME)/include
This is because system-windeps.mk changes/overrides all the python settings in system.mk (so don't bother editing those), one of them to windeps/pythoninc which is empty.

Finally I copied python24.dll from bin to windeps.

Then I opened asss.dev, ignored the missing file messages and just clicked compile, this generates a few warning messages but asss.exe, turf.dll, funky.dll and pymod.dll do get compiled.

Edit:
I could probably enable have_bdb and have_mysql since the makefile uses the stuff in windeps, no need to separately install win32 dev versions of those.
CypherJF - Thu Nov 01, 2007 6:04 pm
Post subject:
I found the resolution to DevC++ 'cc1' not found error on Vista(?).

Installed python 2.4
You need to grab MingW separate and install.
Download and install DevC++ without MingW.
Setup DevC++ to use the MingW

Quote:

(You may end up allowing Bloodshed Dev C to use MinGW Make instead of
GNU Make)

Select the Tools -> Compiler Options menu item

Under the Directories -> Binaries tab add two new paths (for MinGW and
GCC libexec components):-

C:\MinGW\bin
C:\MinGW\libexec\gcc\mingw32\3.4.5


Then I began compiling thing's by hand and added the make path to the PATH environmental variable.
Quote:

PATH=....;C:\MinGW\libexec\gcc\mingw32\3.4.5


Then...
Copied Python24.dll into the /windeps/ folder since it didn't exist in the C:\Python24 folder.

system-windeps.mk
Code: Show/Hide

PYTHON_HOME = C:\Python24
PYTHON_INC = $(PYTHON_HOME)\include
PYTHON_LIB = $(PYTHON_HOME)\lib
PYTHON_CFLAGS = -I$(PYTHON_INC)
PYTHON_LDFLAGS = -L$(PYTHON_LIB) -lpython24


os.mk
Code: Show/Hide

ifeq ($(findstring MINGW,$(SYS_NAME)),MINGW)

# set up paths to point to windeps
WINDEPS := ../windeps

INSTALL := $(WINDEPS)/install.exe
PYTHON := C:/Python24/python.exe
symlink_bins := no

include $(WINDEPS)/system-windeps.mk

run_dlltool = yes
PTHREAD_LIB = -L$(WINDEPS) -lpthreadGC2 -lwsock32
ZLIB_LIB = -L$(WINDEPS) -lzdll
SO_LDFLAGS = $(call tobuild,import.imp) $(PTHREAD_LIB)
EXPORT_SYMBOLS = $(call tobuild,export.exp)
EXE = .exe
SO = dll
W32COMPAT = win32compat
EXTRA_INCLUDE_DIRS = -I$(WINDEPS)
EXTRA_INSTALL_FILES = $(WINDEPS)/zlib1.dll $(WINDEPS)/pthreadGC2.dll \
    $(WINDEPS)/libdb4.dll $(WINDEPS)/python24.dll

SYS_NAME := ok
endif

Cyan~Fire - Sat Nov 03, 2007 2:38 am
Post subject:
Ahh thanks cyph, I was trying to figure that out myself.
CypherJF - Sat Nov 03, 2007 1:27 pm
Post subject:
No problem, this issue was driving me crazy. icon_confused.gif
tcsoccerman - Tue Mar 18, 2008 9:06 pm
Post subject:
is it reading my value for asss home wrong?

Code: Show/Hide

Compiler: Default compiler
Executing  make...
make.exe -f "Makefile" all
process_begin: CreateProcess((null), uname -s, ...) failed.
core/core.mk:24: warning: overriding commands for target `C:/Documents'
core/core.mk:20: warning: ignoring old commands for target `C:/Documents'
core/core.mk:24: warning: overriding commands for target `and'
core/core.mk:20: warning: ignoring old commands for target `and'
core/core.mk:24: warning: overriding commands for target `Settings/Scott/My'
core/core.mk:20: warning: ignoring old commands for target `Settings/Scott/My'
core/core.mk:24: warning: overriding commands for target `Documents/Death'
core/core.mk:20: warning: ignoring old commands for target `Documents/Death'
core/core.mk:24: warning: overriding commands for target `Match'
core/core.mk:20: warning: ignoring old commands for target `Match'
database/database.mk:5: warning: overriding commands for target `C:/Documents'
core/core.mk:24: warning: ignoring old commands for target `C:/Documents'
database/database.mk:5: warning: overriding commands for target `and'
core/core.mk:24: warning: ignoring old commands for target `and'
database/database.mk:5: warning: overriding commands for target `Settings/Scott/My'
core/core.mk:24: warning: ignoring old commands for target `Settings/Scott/My'
database/database.mk:5: warning: overriding commands for target `Documents/Death'
core/core.mk:24: warning: ignoring old commands for target `Documents/Death'
database/database.mk:5: warning: overriding commands for target `Match'
core/core.mk:24: warning: ignoring old commands for target `Match'
funky/funky.mk:5: warning: overriding commands for target `C:/Documents'
database/database.mk:5: warning: ignoring old commands for target `C:/Documents'
funky/funky.mk:5: warning: overriding commands for target `and'
database/database.mk:5: warning: ignoring old commands for target `and'
funky/funky.mk:5: warning: overriding commands for target `Settings/Scott/My'
database/database.mk:5: warning: ignoring old commands for target `Settings/Scott/My'
funky/funky.mk:5: warning: overriding commands for target `Documents/Death'
database/database.mk:5: warning: ignoring old commands for target `Documents/Death'
funky/funky.mk:5: warning: overriding commands for target `Match'
database/database.mk:5: warning: ignoring old commands for target `Match'
make.exe: *** virtual memory exhausted.  Stop.

Execution terminated


the path is supposed to be...

C:\Documents and Settings\Scott\My Documents\Death Match Zone

for asss home

whenever there's a space it splits off...
Smong - Thu Mar 20, 2008 9:09 am
Post subject:
You could try putting the path in double quotes "like this".
tcsoccerman - Thu Mar 20, 2008 6:12 pm
Post subject:
ahhh that helped.

new error:

Compiler: Default compiler
Executing make...
make.exe -f "Makefile" all
process_begin: CreateProcess((null), uname -s, ...) failed.
core/core.mk:19: *** multiple target patterns. Stop.

Execution terminated


when making a file for mapdata in core.mk.

you probably need more information?
Smong - Wed Apr 02, 2008 10:25 am
Post subject:
Ignoring the issue where there are spaces in the path, why did you change ASSSHOME? Try putting it back to "..".
tcsoccerman - Sun Apr 06, 2008 6:17 pm
Post subject:
i changed it back to ".." and i have this:


Code: Show/Hide
Compiler: Default compiler
Executing  make...
make.exe -f "Makefile" all
process_begin: CreateProcess((null), uname -s, ...) failed.
make.exe: *** virtual memory exhausted.  Stop.

Execution terminated


edit:

wow i just changed python version from 2.4 to 24 and ASSSHOME = .. with no "" and it compiled partially. the things that didn't compile were

database.dll
dbtool
scoring
security
asss.batch

i understand the database stuff not compiling but shouldn't scoring and security and especially the batch compile?

compile log:
Code: Show/Hide
Compiler: Default compiler
Executing  make...
make.exe -f "Makefile" all
gcc -std=gnu99 -pipe    -shared -o ../build/pymod.dll ../build/pymod.o ../build/import.imp -L../windeps -lpthreadGC2 -lwsock32 -LC:/python/lib/python24/config -lpython24  -lm

process_begin: CreateProcess((null), uname -s, ...) failed.

gcc -std=gnu99 -pipe -I. -Iinclude -I../build -I../windeps -D_REENTRANT -D_GNU_SOURCE  -g -Wall   -c -o ../build/turf_reward.o turf\turf_reward.c

gcc -std=gnu99 -pipe -I. -Iinclude -I../build -I../windeps -D_REENTRANT -D_GNU_SOURCE  -g -Wall   -c -o ../build/points_turf_reward.o turf\points_turf_reward.c

gcc -std=gnu99 -pipe -I. -Iinclude -I../build -I../windeps -D_REENTRANT -D_GNU_SOURCE  -g -Wall   -c -o ../build/turf_stats.o turf\turf_stats.c

gcc -std=gnu99 -pipe    -shared -o ../build/turf.dll ../build/turf_reward.o ../build/points_turf_reward.o ../build/turf_stats.o ../build/import.imp -L../windeps -lpthreadGC2 -lwsock32

../windeps/install.exe core/backtrace ../build/asss.exe ../build/funky.dll ../build/pymod.dll ../build/turf.dll py/exec.py py/fg_turf.py py/fg_wz.py py/fm_password.py py/watchgreen.py ../windeps/zlib1.dll ../windeps/pthreadGC2.dll ../windeps/python24.dll ../windeps/libdb4.dll ../bin

Execution terminated

Smong - Tue Apr 08, 2008 7:32 am
Post subject:
Looking in a previous post you commented out:
have_bdb := yes
have_mysql := yes

So database, scoring and dbtool won't compile. You can't compile security or asss.bat, instead they come with the archive (asss.zip or whatever).
tcsoccerman - Tue Apr 08, 2008 5:59 pm
Post subject:
hmmm, i thought scoring would score. what comment discludes scoring?
Smong - Thu Apr 10, 2008 3:12 pm
Post subject:
Scores (and others stats) are saved using "bdb", which is a database library. dbtool is a program to edit that database.

The database.dll file actually provides a mysql client and an alias module. So database.dll is a separate thing from scoring.

You should be able to enable both have_bdb and have_mysql when compiling with Dev-C++ (all the necessary files are in the windeps directory).
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group