egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Play.mod

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Thu Aug 02, 2007 6:37 am    Post subject: Play.mod Reply with quote

please help me install it and use it, i have moved play.mod folder on the modules folder in the eggdrop source folder and did a clean installation.

make clean..
./configuer ..etc.

i can see the play.o file inside the modules after the eggdrop compilation but the perpleXa script doesnt find it or something ..

http://perplexa.ugug.org/web/uploads/files/play.mod.zip
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Aug 02, 2007 10:25 am    Post subject: Reply with quote

Sure it was play.o and not play.so?
Would seem it was'nt properly linked then...

Or were you talking of the source-tree? In that case, the play.so should be found in the base of the sourcetree, while the play.o file would be found where you unpacked the mod-source.

In either case, .o files will not load as module, as they're just compiled and not linked. You'll need the .so version to be able to load it.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Thu Aug 02, 2007 11:26 am    Post subject: Reply with quote

i will recompile my bots, i dont see a module folder in the compiled eggdrop folder so i guess i have a linking problem, other modules compiled fine because i am able to use them..
Back to top
View user's profile Send private message
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Thu Aug 02, 2007 11:48 am    Post subject: Reply with quote

In file included from .././play.mod/play.c:16:
/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>"
.././play.mod/play.c:18:50: pcre.h: No such file or directory
.././play.mod/play.c: In function `tcl_mallinfo':
.././play.mod/play.c:38: error: storage size of 'mi' isn't known
.././play.mod/play.c:39: warning: implicit declaration of function `mallinfo'
.././play.mod/play.c:38: warning: unused variable `mi'
.././play.mod/play.c: In function `tcl_pcre':
.././play.mod/play.c:56: error: `pcre' undeclared (first use in this function)
.././play.mod/play.c:56: error: (Each undeclared identifier is reported only once
.././play.mod/play.c:56: error: for each function it appears in.)
.././play.mod/play.c:56: error: `curpat' undeclared (first use in this function)
.././play.mod/play.c:77: error: `PCRE_CASELESS' undeclared (first use in this function)
.././play.mod/play.c:100: warning: implicit declaration of function `pcre_compile'
.././play.mod/play.c:106: warning: implicit declaration of function `pcre_exec'
.././play.mod/play.c:115: warning: implicit declaration of function `pcre_copy_substring'
*** Error code 1

Stop in /home/boar/eggdrop1.6.18/src/mod/play.mod.
*** Error code 1

Stop in /home/boar/eggdrop1.6.18/src/mod.
*** Error code 1

Stop in /home/boar/eggdrop1.6.18.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Aug 02, 2007 11:58 am    Post subject: Reply with quote

It would seem you're lacking the Perl Compatible Regular Expression library on your system, which is required for this module to compile successfully.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Thu Aug 02, 2007 12:10 pm    Post subject: Reply with quote

i edited play.c:

#include </usr/src/include/stdlib.h> /* tcl_mallinfo */
#include </usr/include/sys/resource.h> /* tcl_cputime */
#include </usr/local/include/pcre.h> /* tcl_pcre */

but i still get errors:

.././play.mod/play.c: In function `tcl_mallinfo':
.././play.mod/play.c:38: error: storage size of 'mi' isn't known
.././play.mod/play.c:39: warning: implicit declaration of function `mallinfo'
.././play.mod/play.c:38: warning: unused variable `mi'
*** Error code 1

Stop in /home/boar/eggdrop1.6.18/src/mod/play.mod.
*** Error code 1

Stop in /home/boar/eggdrop1.6.18/src/mod.
*** Error code 1

Stop in /home/boar/eggdrop1.6.18.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Aug 02, 2007 12:20 pm    Post subject: Reply with quote

It would seem malloc.h is included from an incorrect location
Code:
#include "malloc.h"

Should rather be:
Code:
#include <malloc.h>


Or, on second thought, you did get an error earlier 'bout malloc.h being replaced with stdlib.h. It would seem it does not declare the mallinfo struct properly.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
BoaR
Halfop


Joined: 20 Jul 2007
Posts: 48

PostPosted: Fri Aug 03, 2007 10:06 am    Post subject: Reply with quote

i guess that mod needs some tweaking..

i found malloc.h in /usr/include/malloc.h so i will try that today maybe..

thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber