This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Megahal maybe "New" issue

Discussion of Eggdrop's code and module programming in C.
Post Reply
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Megahal maybe "New" issue

Post by Thanhas »

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: Select all

.././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: Select all

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
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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.
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

bye typeing

make > make.log
this is the Results

Code: Select all

[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: Select all

[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 :(
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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

You might try and edit megahal.c, and replace

Code: Select all

#include <malloc.h>
with

Code: Select all

#include <stdlib.h>
Although, it is wery possible you will get additional errors down the line :/
NML_375
User avatar
Thanhas
Op
Posts: 124
Joined: Sat Sep 02, 2006 11:14 am
Location: Ottawa, Canada

Post by Thanhas »

i did not get u yet :(
Post Reply