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 

Megahal maybe "New" issue

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


Joined: 02 Sep 2006
Posts: 124
Location: Ottawa, Canada

PostPosted: Fri Oct 12, 2007 6:43 am    Post subject: Megahal maybe "New" issue Reply with quote

heay all !
i dont know what happen to this megahal.mod module i have installed as they have said. but see when i am installing after typing "make" i get this errer

Code:
.././megahal.mod/megahal.c:214: warning: 'wpm' defined but not used
.././megahal.mod/megahal.c:223: warning: 'delQueue' declared `static' but never defined
.././megahal.mod/megahal.c:224: warning: 'theq' defined but not used
.././megahal.mod/megahal.c:228: warning: 'megahal_expmem' defined but not used
.././megahal.mod/megahal.c:236: warning: 'mystrdup' defined but not used
*** Error code 1

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

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

Stop in /home/HosTer/eggdrop1.6.18.
[HosTer@PakShells:~/eggdrop1.6.18]


however after this it dose not bug any else errer but when i .restart BOT or .rehash i get this msg

Code:
Can't load modules megahal: Cannot open "/home/HosTer/eggdrop/modules/megahal.so"


even in whole Dir of modules or Eggdrop there is no file named megahal.so

thanks if someone could help me out.!
Best Regards
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Oct 12, 2007 11:45 am    Post subject: Reply with quote

Run make like this:

make > make.log 2>&1


then check earlier in the make.log for other errors, such as header files not being found.

BTW, those are just warning messages, they won't necessarily kill the compile, so there's likely other error messages you missed as they scrolled off the screen.

If the compile was successful, you have to move the module into the bot's module directory yourself.
Back to top
View user's profile Send private message
Thanhas
Op


Joined: 02 Sep 2006
Posts: 124
Location: Ottawa, Canada

PostPosted: Fri Oct 12, 2007 1:06 pm    Post subject: Reply with quote

bye typeing

make > make.log
this is the Results
Code:

[HosTer@PakShells:~/eggdrop1.6.18] make > make.log
In file included from .././megahal.mod/megahal.c:153:
/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>"


this time the errers are something like this ?

Code:

[HosTer@PakShells:~/eggdrop1.6.18] make
This may take a while. Go get some runts.


---------- Yeah! That's the compiling, now the linking! ----------

Linking eggdrop (standard build).

gcc -pipe -o ../eggdrop bg.o botcmd.o botmsg.o botnet.o chanprog.o cmds.o dcc.o  dccutil.o dns.o flags.o language.o match.o main.o mem.o misc.o misc_file.o  modules.o net.o rfc1459.o tcl.o tcldcc.o tclhash.o tclmisc.o tcluser.o  userent.o userrec.o users.o  -L/usr/local/lib -ltcl84 -lm -ldns md5/md5c.o compat/*.o `cat mod/mod.xlibs`
touch ../eggdrop

Successful compile: eggdrop

gcc -pipe -fPIC -g -O2 -Wall -I. -I../../.. -I../../..  -I../../../src/mod -DHAVE_CONFIG_H   -DMAKING_MODS -c .././megahal.mod/megahal.c
In file included from .././megahal.mod/megahal.c:153:
/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>"
*** Error code 1

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

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

Stop in /home/HosTer/eggdrop1.6.18.
[HosTer@PakShells:~/eggdrop1.6.18]


dont know whats The reason :(
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2846

PostPosted: Fri Oct 12, 2007 2:36 pm    Post subject: Reply with quote

Simply put, megahal.mod uses a deprecated header-file.

You might try and edit megahal.c, and replace
Code:
#include <malloc.h>
with
Code:
#include <stdlib.h>


Although, it is wery possible you will get additional errors down the line :/
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Thanhas
Op


Joined: 02 Sep 2006
Posts: 124
Location: Ottawa, Canada

PostPosted: Fri Oct 12, 2007 2:49 pm    Post subject: Reply with quote

i did not get u yet Sad
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
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