Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Tazo on June 22, 2005, 03:45 PM

Title: Bot for OpenBSD
Post by: Tazo on June 22, 2005, 03:45 PM
Does anyone know of a binary bot that supports Open BSD? I tried zDS, but that doesnt even compile and its only for FreeBSD and Linux
Would a FreeBSD supported bot work on OpenBSD?
Title: Re: Bot for OpenBSD
Post by: Blaze on June 22, 2005, 03:47 PM
If it supports Java, JavaOp2.
Title: Re: Bot for OpenBSD
Post by: Lenny on June 22, 2005, 04:04 PM
Sun never released a Java platform for FreeBSD, but they are available.
http://www.freebsd.org/java/

As for OpenBSD, there was a project going on to create a native port of the platform, but that seems to be over and forgotten with....
Title: Re: Bot for OpenBSD
Post by: Kp on June 22, 2005, 09:01 PM
What fails in the compilation?  If there aren't too many errors, you could just fix it yourself.  I'm not familiar with {Free,Open}BSD, but it seems a little surprising that a program which works on one cannot easily be made to work on the other.
Title: Re: Bot for OpenBSD
Post by: Tazo on June 22, 2005, 09:04 PM
Quote from: Kp on June 22, 2005, 09:01 PM
What fails in the compilation?  If there aren't too many errors, you could just fix it yourself.  I'm not familiar with {Free,Open}BSD, but it seems a little surprising that a program which works on one cannot easily be made to work on the other.
no one can get it to compile, it seems the newest source is broken
I received ZeroOne bot, but that doesnt seem to be working either
Title: Re: Bot for OpenBSD
Post by: Kp on June 22, 2005, 10:44 PM
Since you haven't actually said what errors you're receiving, I cannot even begin to suggest how to fix it.  Barring further action by interested parties, this will be classified as RESOLVED -> WORKSFORME.

(Note: it really helps to be familiar with Bugzilla (http://www.bugzilla.org/); in particular, the life cycle of a bug (http://www.bugzilla.org/docs/2.18/html/lifecycle.html).)
Title: Re: Bot for OpenBSD
Post by: Tazo on June 22, 2005, 10:53 PM
= Compiling FreeBSD Base:
Build number: 2125
g++ -O2 -mcpu=pentium -funroll-loops -fexpensive-optimizations -c -o main.fbsd.o main.cpp
In file included from network.h:14,
                 from bot.h:16,
                 from botlist.h:4,
                 from main.h:17,
                 from main.cpp:2:
display.h:34: error: syntax error before `*' token
In file included from botlist.h:4,
                 from main.h:17,
                 from main.cpp:2:
bot.h:100: error: `string' undeclared in namespace `std'
bot.h:100: error: syntax error before `*' token
bot.h:101: error: syntax error before `*' token
bot.h:102: error: syntax error before `*' token
In file included from main.h:19,
                 from main.cpp:2:
globals.h:20: error: `string' undeclared in namespace `std'
globals.h:20: error: syntax error before `*' token
globals.h:21: error: `string' undeclared in namespace `std'
globals.h:21: error: `string' undeclared in namespace `std'
globals.h:21: error: syntax error before `*' token
globals.h:22: error: `string' undeclared in namespace `std'
globals.h:22: error: `string' undeclared in namespace `std'
globals.h:22: error: syntax error before `*' token
globals.h:24: error: `string' undeclared in namespace `std'
globals.h:24: error: syntax error before `*' token
globals.h:35: error: syntax error before `&' token
globals.h:36: error: syntax error before `&' token
globals.h:38: error: syntax error before `&' token
globals.h:43: error: syntax error before `&' token
globals.h:44: error: syntax error before `&' token
*** Error code 1

Stop in /home/tazox/zDSBot3/Base (line 73 of Makefile).
*** Error code 1

Stop in /home/tazox/zDSBot3 (line 28 of Makefile).

Title: Re: Bot for OpenBSD
Post by: Topaz on June 23, 2005, 12:13 AM
zDS still works rather well; www.newds.zefga.net
Title: Re: Bot for OpenBSD
Post by: Tazo on June 23, 2005, 08:18 AM
{In reference to zDS}
Will the FreeBSD version work on OpenBSD?

Quote from: Topaz on June 23, 2005, 12:13 AM
zDS still works rather well; www.newds.zefga.net
No it doesn't, try to compile the newest cvs thing..
Title: Re: Bot for OpenBSD
Post by: NicoQwertyu on June 23, 2005, 10:15 AM
Don't get the newest.  All versions after 2088, which use the crappy new config scheme, are terrible.  Get zDS 2088 and see if that compiles for you.
Title: Re: Bot for OpenBSD
Post by: Tazo on June 23, 2005, 11:10 AM
Quote from: NicoQwertyu on June 23, 2005, 10:15 AM
Don't get the newest.  All versions after 2088, which use the crappy new config scheme, are terrible.  Get zDS 2088 and see if that compiles for you.
zDS doesnt built for Open BSD, does it -.^
Title: Re: Bot for OpenBSD
Post by: R.a.B.B.i.T on June 23, 2005, 05:26 PM
Quote from: Tazo on June 22, 2005, 10:53 PM
= Compiling FreeBSD Base:
Build number: 2125
g++ -O2 -mcpu=pentium -funroll-loops -fexpensive-optimizations -c -o main.fbsd.o main.cpp
In file included from network.h:14,
                 from bot.h:16,
                 from botlist.h:4,
                 from main.h:17,
                 from main.cpp:2:
display.h:34: error: syntax error before `*' token
In file included from botlist.h:4,
                 from main.h:17,
                 from main.cpp:2:
bot.h:100: error: `string' undeclared in namespace `std'
bot.h:100: error: syntax error before `*' token
bot.h:101: error: syntax error before `*' token
bot.h:102: error: syntax error before `*' token
In file included from main.h:19,
                 from main.cpp:2:
globals.h:20: error: `string' undeclared in namespace `std'
globals.h:20: error: syntax error before `*' token
globals.h:21: error: `string' undeclared in namespace `std'
globals.h:21: error: `string' undeclared in namespace `std'
globals.h:21: error: syntax error before `*' token
globals.h:22: error: `string' undeclared in namespace `std'
globals.h:22: error: `string' undeclared in namespace `std'
globals.h:22: error: syntax error before `*' token
globals.h:24: error: `string' undeclared in namespace `std'
globals.h:24: error: syntax error before `*' token
globals.h:35: error: syntax error before `&' token
globals.h:36: error: syntax error before `&' token
globals.h:38: error: syntax error before `&' token
globals.h:43: error: syntax error before `&' token
globals.h:44: error: syntax error before `&' token
*** Error code 1

Stop in /home/tazox/zDSBot3/Base (line 73 of Makefile).
*** Error code 1

Stop in /home/tazox/zDSBot3 (line 28 of Makefile).


It would appear that compiler disagrees with reference and pointer variables, as well as string types in namespaces.
Title: Re: Bot for OpenBSD
Post by: Tazo on June 23, 2005, 05:58 PM
Attempting to run Linux version of zDS on OpenBSD:
Abort trap
Attempting to run FreeBSD version of zDS on OpenBSD:
Abort trap

-.-
Title: Re: Bot for OpenBSD
Post by: Kp on June 23, 2005, 08:55 PM
Quote from: Tazo on June 22, 2005, 10:53 PMIn file included from network.h:14,
                 from bot.h:16,
                 from botlist.h:4,
                 from main.h:17,
                 from main.cpp:2:
display.h:34: error: syntax error before `*' token
Probably someone wrote type *, but failed to include the appropriate header to declare that type.  Given your subsequent errors with std::string, I'd guess it's a string *.  Include the header for that type, and this will be fixed.
Quote from: Tazo on June 22, 2005, 10:53 PMIn file included from botlist.h:4,
                 from main.h:17,
                 from main.cpp:2:
bot.h:100: error: `string' undeclared in namespace `std'
bot.h:100: error: syntax error before `*' token
bot.h:101: error: syntax error before `*' token
bot.h:102: error: syntax error before `*' token
string is in the wrong namespace in your headers (indicative of a badly outdated compiler), or it's in the wrong header, or the author forgot to include that header.  Given that it seems to work on GNU/Linux, I'd guess it isn't the third one.  The syntax errors are almost certainly consequences of the missing type definition.
Quote from: Tazo on June 22, 2005, 10:53 PMIn file included from main.h:19,
                 from main.cpp:2:
globals.h:20: error: `string' undeclared in namespace `std'
globals.h:20: error: syntax error before `*' token
globals.h:21: error: `string' undeclared in namespace `std'
globals.h:21: error: `string' undeclared in namespace `std'
globals.h:21: error: syntax error before `*' token
globals.h:22: error: `string' undeclared in namespace `std'
globals.h:22: error: `string' undeclared in namespace `std'
globals.h:22: error: syntax error before `*' token
globals.h:24: error: `string' undeclared in namespace `std'
globals.h:24: error: syntax error before `*' token
Same reason/fix as above: include the correct header for std::string.
Quote from: Tazo on June 22, 2005, 10:53 PMglobals.h:35: error: syntax error before `&' token
globals.h:36: error: syntax error before `&' token
globals.h:38: error: syntax error before `&' token
globals.h:43: error: syntax error before `&' token
globals.h:44: error: syntax error before `&' token
Probably just more of the same.  Fix your headers and it'll all work.