Problem loading modules

These are old archives. They are kept for historic purposes only.
Post Reply
leatherface
Posts: 9
Joined: Fri Mar 03, 2006 7:31 pm

Problem loading modules

Post by leatherface »

Hello,

I've been looking here on the forums about that same problem I have with others:

Code: Select all

* Loading IRCd configuration ..
* unrealircd.conf:2: loadmodule src/modules/m_antidccbug.so: failed to load: tmp/8FEB220A.m_antidccbug.so: ELF file OS ABI invalid
[error] IRCd configuration failed to load
Possible error encountered (IRCd seemily not started)
=====================================================
Check above for possible errors, and this output of  
ircd.log. If you cannot solve the problem, read
Unreal.nfo on where to get support
=====================================================
This happens when I try booting my ircd.
Now I recompiled the whole ircd and I still have the problem.
chmods are good and all files that should be loaded are in the dirs.
Even when I try booting in root (which isn't safe but I had to try), it gives
me the same error.


Could someone help me out please.


Thank You
Grunt
Posts: 159
Joined: Mon Jan 09, 2006 7:31 pm
Contact:

Post by Grunt »

1. Make sure the file m_antidccbug.so is in the right place.
2. Make sure it is compiled correctly
3. Make sure unrealircd has permission to read it
Computers are machines that cause trouble you wouldn't normally have if you wouldn't have a computer.
leatherface
Posts: 9
Joined: Fri Mar 03, 2006 7:31 pm

Post by leatherface »

Yup everything you mentioned there is fine.
But it still shows me the same error.
Grunt
Posts: 159
Joined: Mon Jan 09, 2006 7:31 pm
Contact:

Post by Grunt »

The only thing I see wrong may be the fact that it could have been compiled for another Operating System. Maybe copied the file from a distro to another? Or from Linux to Unix/*BSD or viceversa?
Computers are machines that cause trouble you wouldn't normally have if you wouldn't have a computer.
leatherface
Posts: 9
Joined: Fri Mar 03, 2006 7:31 pm

Post by leatherface »

Well yes I copied the modules from another ircd on a FreeBSD 4.11 to a ircd on a FC4. Could that be the problem? But I first copied the files to the modules dir and then recompiled...

Thanks for helping
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

There's your problem. ALWAYS fully recompile unreal and all the 3rd party mods you use ;).

Personally, if I move a box or copy things over I always rm *.so in the target modules dir (eg: /home/irc/ircd/modules/*.so), because it's easy to forget to recompile a module. For example: you recompile whole unreal etc, but forget to recompile the 3rd party mods.
arbiter
Posts: 10
Joined: Mon Feb 28, 2005 1:06 pm

Post by arbiter »

I had same problem before , but by make clean and making again it solved.
leatherface
Posts: 9
Joined: Fri Mar 03, 2006 7:31 pm

Post by leatherface »

So when I add a new module in the "scr/modules" dir, do I need to configure a file so I can recompile it? I tried editing the "Makefile.in"

for example:

I add "commandsno.c" to the "modules" dir:

I then added the commandsno to the "Makefile.in"

Code: Select all

R_MODULES= \
              ..................... etc etc etc
              commandsno.so

COMMANDS=...............etc etc etc
              commandsno.o



#############################################################################
#             commands.so's .o's section
#############################################################################


...............
other modules............
.............

commandsno.o: commandsno.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS)  -c commandsno.c



#############################################################################
#             .so's section
#############################################################################

...............
other modules............
.............

commandsno.so: commandsno.c $(INCLUDES)
	$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
		-o commandsno.so commandsno.c
When I type "make", it compiles.
And after few minutes of compiling I get an error:

Code: Select all

make[2]: *** [commands.so] Failed 1
make[2]: Leaving directory `/home/x/Unreal3.2/src/modules'
make[1]: *** [mods] Failed 2
make[1]: Leaving directory `/home/x/Unreal3.2/src'
make: *** [build] Failed 2

When I look in the modules dir, it only creates the *.o files from the new modules I've added and not the *.so files which I need to load for boot.



Thanks for replying guys
leatherface
Posts: 9
Joined: Fri Mar 03, 2006 7:31 pm

Post by leatherface »

Oh nevermind I found how to do it.


Sorry for bothering again :)


Thanks
Post Reply