View previous topic :: View next topic |
Author |
Message |
Thanhas Op

Joined: 02 Sep 2006 Posts: 124 Location: Ottawa, Canada
|
Posted: Fri Oct 12, 2007 6:43 am Post subject: Megahal maybe "New" issue |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Oct 12, 2007 11:45 am Post subject: |
|
|
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 |
|
 |
Thanhas Op

Joined: 02 Sep 2006 Posts: 124 Location: Ottawa, Canada
|
Posted: Fri Oct 12, 2007 1:06 pm Post subject: |
|
|
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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Oct 12, 2007 2:36 pm Post subject: |
|
|
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 |
|
 |
Thanhas Op

Joined: 02 Sep 2006 Posts: 124 Location: Ottawa, Canada
|
Posted: Fri Oct 12, 2007 2:49 pm Post subject: |
|
|
i did not get u yet  |
|
Back to top |
|
 |
|