Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: xmlrpc error during modload  (Read 6350 times)

0 Members and 1 Guest are viewing this topic.

Dr-Saar

  • Guest
xmlrpc error during modload
« on: April 05, 2007, 09:16:15 PM »

Hi there,

having xmlrpc compiled, I'm not able to load the module to anope.

It always shows me the following errors:

Quote
[Apr 05 21:20:43 2007] trying to load [xmlrpc]
 [Apr 05 21:20:43 2007] Module xmlrpc is compiled against an older version of anope (unknown)
 [Apr 05 21:20:43 2007] Rebuild module xmlrpc against the current version to resolve this error
 [Apr 05 21:20:43 2007] status: [6][Module Error, Error during load time or module returned MOD_STOP]


xmlrpc is located in src/modules/xmlrpc and as I said, compiling it is possible.

Can anybody help me?


Greetings,

Dr-Saar
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
(No subject)
« Reply #1 on: April 06, 2007, 12:32:32 PM »

[Apr 05 21:20:43 2007] Rebuild module xmlrpc against the current version to resolve this error = recompile
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

Dr-Saar

  • Guest
(No subject)
« Reply #2 on: April 06, 2007, 12:49:00 PM »

Hi, thanks for your reply.

But we did, again and again and it doesn't work.

Could anybody give me a link with working sources? Maybe we've got a buggy version or something, i don't know...
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
(No subject)
« Reply #3 on: April 06, 2007, 12:56:57 PM »

check that the module compiled successfully.
if it does and the prob still occurs, delete the .so for the module and do make install again, try to load it then
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

Dr-Saar

  • Guest
(No subject)
« Reply #4 on: April 06, 2007, 01:02:38 PM »

Didn't help so far... Thanks for you reply anyway.
Logged

Trystan Scott Lee

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 343
(No subject)
« Reply #5 on: April 06, 2007, 02:02:05 PM »

For a module to fail in this fashion

1. It did NOT successfully compile against the current code - thus the version string is not compiled into the code, so a real clean compile will fix, make clean, make, make install

2. There is previous .so file or .so.<letters> in the run time directory, remove the .so and clean out the run time

3. The module author did not set it up to build with the normal sub system build and thus does not build the version info in, I do not have source here to look at to tell how it does this, may wish to ask the author
Logged
my God my tourniquet, return to me salvation

Dr-Saar

  • Guest
(No subject)
« Reply #6 on: April 06, 2007, 05:56:13 PM »

Well, could anyone give me working sources, please? I guess my release is crap...

[Bearbeitet am 6-4-2007 von Dr-Saar]
Logged

Dave Robson

  • Team
  • *
  • Offline Offline
  • Posts: 357
(No subject)
« Reply #7 on: April 09, 2007, 09:13:24 PM »

The module is very old, and most likly implements its own Makefile ignoreing the anope one, as such, it probablly isnt linked against mod_version.so and cant tell anope which version it is compiled against.
Logged

zefie

  • Guest
(No subject)
« Reply #8 on: December 01, 2007, 05:02:14 AM »

For those having problems with the version error, due to it not linking against mod_version.o, I have modified the xmlrpc makefile to compile against mod_version.o

Download this makefile:
http://irc.zefie.net/Makefile

and drop it in:
src/modules/xmlrpc

under your anope source directory, and allow it to overwrite the existing xmlrpc Makefile.

Then simply clean and rebuild Anope and all should be well. This is working with the current SVN version of Anope at the time of this post. :)

Quote
[Dec 01 04:55:10 2007] Trying to load module [xmlrpc]
[Dec 01 04:55:11 2007] thread: WARNING: can not open the database file!
[Dec 01 04:55:11 2007] thread: Thread created
[Dec 01 04:55:11 2007] Module loading status: 0 (Module, Okay - No Error)



Edit:
For future reference, in case for some reason my link dies, you can patch the Makefile yourself by doing the following:

Replace the following lines:
Code: [Select]
so:
$(CC) ${SHARED} $(OBJECTS) -o ../$(TARGET).so ${PROFILE} $(XML_LIBS)


With this:
Code: [Select]
so:
$(CC) ${SHARED} ../../mod_version.o $(OBJECTS) -o ../$(TARGET).so ${PROFILE} $(XML_LIBS)

[Edited on 1-12-2007 by zefie]
Logged
Pages: [1]   Go Up