L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 01:37:07 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.3 support > Topic: Ubuntu AOKex issues
Pages: [1] 2   Go Down
« previous next »
Print
Author Topic: Ubuntu AOKex issues  (Read 1307 times)
0 Members and 1 Guest are viewing this topic.
Zerovector
Freshman
*
Offline Offline

Posts: 11


Ubuntu AOKex issues
« on: November 15, 2006, 02:41:58 PM »

Allright, please laugh now. I hadn't remembered to edit both php.ini files (apache2 and cli), only apache2 one. But hey, thanks for replies & concern!

[2006-11-15 19:39:39]   [LOGIN] [STATUS]        Logging in
AOChat: not expecting login.

Hehe, this is going to be fun. At least there's lots of info here on the boards.
Logged
Naturalistic
BeBot Contributor
Experienced
*******
Offline Offline

Posts: 221


Ubuntu AOKex issues
« Reply #1 on: November 15, 2006, 02:43:47 PM »

Good luck with that, because I haven't been able to fix that problem on Ubuntu yet Wink
Logged

220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Ubuntu AOKex issues
« Reply #2 on: November 15, 2006, 05:05:15 PM »

Quote from: Zerovector on November 15, 2006, 02:41:58 PM
[2006-11-15 19:39:39]   [LOGIN] [STATUS]        Logging in
AOChat: not expecting login.

On Ubuntu 6.01 this is fixable with the aokex module. You'll have to compile it youself, but it's not bad...

apt-get install php4-dev libgmp3-dev
(if you're using php5 change that to php5-dev)
Now to verify that you're not missing anything, do:
apt-get builddep php4 or apt-get builddep php5.

The builddep command installs everything needed to build the specified package(s) from source.

Now that you have a proper build environment, grab the aokex source from http://auno.org/dev/aochat/php-aokex-0.1.tar.gz. Follow the instructions for building aokex included in the tarball, and when you've successively compiled and installed add extension=aokex.so to /etc/phpX/cli/php.ini.

Logged
Zerovector
Freshman
*
Offline Offline

Posts: 11


Ubuntu AOKex issues
« Reply #3 on: November 16, 2006, 06:52:41 AM »

Many thanks, Glarawyn. However,

Code:
XXX@YYY:~$ apt-get builddep php4
E: Invalid operation builddep

I went onwards and aokex seems to work like a charm, but...

Code:
[2006-11-16 11:34:27]   [LOGIN] [STATUS]        Connecting
/usr/bin/php: symbol lookup error: /usr/lib/php4/20050606/aokex.so: undefined symbol: __gmp_set_memory_functions
[2006-11-16 11:34:27]   [LOGIN] [STATUS]        Authenticating
Using AOKex for login key generation

I read through the thread about AOChat not expecting login error, however I'm a bit unsure what's the problem here. GMP isn't working as intended, I presume?

/EDIT start:
Oh, I had missed this one:
Quote from: captainwinky on January 04, 2006, 03:33:52 AM
okay, bit of success here (many thanks to my programmer brother Tongue )

i am not certain whether there is a small bug in the aokex makefile, or if in my noobness i missed a step, but a workaround for the undefined symbol error is, when doing 'make' in php-aokex, this:

make AOKEX_SHARED_LIBADD=-lgmp

my understanding of this is, unfortunately, not complete Smiley but i hope this information helps someone else.

looking forward to making good use of your great bot in my preferred OS,
CW.
I'll try that if it helps.
/EDIT end.

/edit2: Didn't seem to work.
« Last Edit: November 16, 2006, 07:00:40 AM by Zerovector » Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Ubuntu AOKex issues
« Reply #4 on: November 16, 2006, 02:11:07 PM »

Undefined symbol is usually caused by missing libraries.

I don't have any experience with debian or debian based distros myself, but on RPM based distros you need to ensure that you install both gmp and gmp-devel packages. One contains the binaries/libraries while the other contains header files etc needed for compiling against the libraries.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Zerovector
Freshman
*
Offline Offline

Posts: 11


Ubuntu AOKex issues
« Reply #5 on: November 16, 2006, 02:28:25 PM »

Quote from: Khalem on November 16, 2006, 02:11:07 PM
Undefined symbol is usually caused by missing libraries.

I don't have any experience with debian or debian based distros myself, but on RPM based distros you need to ensure that you install both gmp and gmp-devel packages. One contains the binaries/libraries while the other contains header files etc needed for compiling against the libraries.

I checked synaptic and seems that I've got all the needed GMP libraries, too.
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Ubuntu AOKex issues
« Reply #6 on: November 16, 2006, 02:30:12 PM »

Then i'm at a loss Sad
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Ubuntu AOKex issues
« Reply #7 on: November 16, 2006, 03:12:08 PM »

My bad, it's build-dep not builddep. Smiley

It works fine on my system, but maybe try ./configure --with-aokex=shared --with-gmp=/usr/lib/gmp
Logged
Zerovector
Freshman
*
Offline Offline

Posts: 11


Ubuntu AOKex issues
« Reply #8 on: November 16, 2006, 05:07:16 PM »

Quote from: Glarawyn on November 16, 2006, 03:12:08 PM
My bad, it's build-dep not builddep. Smiley
Thanks Smiley

Quote from: Glarawyn on November 16, 2006, 03:12:08 PM
It works fine on my system, but maybe try ./configure --with-aokex=shared --with-gmp=/usr/lib/gmp
And after that? configure, make, make install or? Heh, this is where my understanding (well, the feeble remnants of it) cease to exist. I tried to make and make install it again, but no dice.
Logged
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Ubuntu AOKex issues
« Reply #9 on: November 16, 2006, 05:22:56 PM »

Try the ssl version?

apt-get install libssl-dev.

Start with a clean aokex source (remove the directory completely and extract from the tar.gz file)

Edit Makefile.in and replace aokex-gmp.c with aokex-openssl.c.

  % phpize
  % ./configure --with-aokex=shared
  % make
  % make install
Logged
Zerovector
Freshman
*
Offline Offline

Posts: 11


Ubuntu AOKex issues
« Reply #10 on: November 16, 2006, 06:11:25 PM »

Again, thank you for your superb patience and knowledge so far, Glarawyn and Khalem Smiley

Code:
[2006-11-16 23:08:33]   [LOGIN] [STATUS]        Connecting
[2006-11-16 23:08:33]   [LOGIN] [STATUS]        Authenticating
Using AOKex for login key generation
[2006-11-16 23:08:34]   [LOGIN] [RESULT]        Error
[2006-11-16 23:08:34]   [LOGIN] [STATUS]        Logging in
AOChat: not expecting login.
Roll Eyes

At least it doesn't nag about undefined symbol anymore.
Logged
Zerovector
Freshman
*
Offline Offline

Posts: 11


Ubuntu AOKex issues
« Reply #11 on: November 17, 2006, 02:40:51 AM »

Oh, and just now I noticed this thread is about bebot 31 Embarrassed Mine is 0.2.9.

Going to try and install it on my main computer (Windows XP, SP2) later today and see what happens.
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Ubuntu AOKex issues
« Reply #12 on: November 17, 2006, 10:23:40 AM »

There should be no difference between the two versions in terms of the bot logging in however.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Zerovector
Freshman
*
Offline Offline

Posts: 11


Ubuntu AOKex issues
« Reply #13 on: November 17, 2006, 10:27:29 AM »

Oh well, I didn't get it working and today the HD in my ubuntu machine got fried Grin

Working well on Windows now. Thank you all for the helpful tips!
Logged
Hurtig
Freshman
*
Offline Offline

Posts: 4


Ubuntu AOKex issues
« Reply #14 on: December 01, 2006, 07:49:20 PM »

It looks like I'm walking down the same path as Zerovector with undefined symbols and unexpected logins with both GMP and OpenSSL.

I'm running Ubuntu 6.10 with PHP5.

So far I have tried compiling the GMP libraries from http://swox.com/gmp/ which gives me the undefined symbols error from within AOChat.php. I don't understand why aokex doesn't complain about this when I compile it against GMP...

I have tried installing the GMP libraries using the method described by Glarawyn and this gives me an unexpected login error.

I tried the OpenSSL solution too and this also gives me the unexpected login error.  Sad

Any ideas on where I should go from here?



I don't suppose it's possible to use a statically compiled version of aokex from another Ubuntu installation?

Logged
Pages: [1] 2   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.3 support > Topic: Ubuntu AOKex issues
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11144
Total Topics: 1505
Online Today: 8
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 12
Total: 13
Whackoeng

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.185 seconds with 29 queries. (Pretty URLs adds 0.033s, 4q)
Loading...