Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: compiling modules  (Read 9660 times)

0 Members and 1 Guest are viewing this topic.

mikey1

  • Guest
compiling modules
« on: April 25, 2006, 06:56:56 PM »

sorry to be so thick but can someone tell me how to compile
*.c files into *.so files

thanking you kindly
Logged

lavinpj1

  • Guest
(No subject)
« Reply #1 on: April 25, 2006, 07:17:02 PM »

The anope docs/a google search would tell you that, but...

Place the .c in /src/modules

cd to the main anope dir

make modules

make install

then /os modload module_name at your ircd
Logged

mikey1

  • Guest
(No subject)
« Reply #2 on: April 25, 2006, 07:34:40 PM »

i have tried doing this but it doesnt seem to reconize the modules when i do a make and make install.
Sorry to be so thick but this is my first try.
Thankyou anyway appreciate your help
Logged

lavinpj1

  • Guest
(No subject)
« Reply #3 on: April 25, 2006, 07:45:53 PM »

What do you mean by "it doesn't recognise it"?
Logged

mikey1

  • Guest
(No subject)
« Reply #4 on: April 25, 2006, 08:01:26 PM »

after the make the 2 modules that i want to compile are no even listed  during the make.
So make install really is academic.

Sorry to be so vauge i am not that aufait with this to make much sense.

Must sound like a dumb ass.

Thanks again ill stop bothering you and try to get some literature on it:)
Logged

mikey1

  • Guest
(No subject)
« Reply #5 on: April 25, 2006, 09:21:34 PM »

Just like to thankyou again for all your help, i have sorted it now.
Had the files in the wrong directory :((
Logged

lavinpj1

  • Guest
(No subject)
« Reply #6 on: April 25, 2006, 09:25:19 PM »

Silly boy :P

Don't worry about it. We all make mistakes.
Logged

mikey1

  • Guest
(No subject)
« Reply #7 on: April 25, 2006, 09:31:24 PM »

appreciated :))
Logged

cpu

  • Guest
(No subject)
« Reply #8 on: May 15, 2006, 05:06:16 PM »

Quote
Mensagem original enviada por lavinpj1
The anope docs/a google search would tell you that, but...

Place the .c in /src/modules

cd to the main anope dir

make modules

make install

then /os modload module_name at your ircd


Whem I di this, there are many errors that I will post here:

*** Building src
make[1]: Entering directory `/home/imperium/anope-1.7.10/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/imperium/anope-1.7.10/src'
(cd src/modules ; ./configure ; make 'CFLAGS=-pipe -g -O2 -I/usr/include/mysql  -pthread -export-dynamic' 'CC=gcc' 'ANOPELIBS=-lnsl -lresolv -lbsd -lmysqlclient   -ldl' 'LDFLAGS=-L/usr/lib/mysql ' 'BINDEST=/home/imperium/services' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/bin/touch' 'SHELL=/bin/sh' 'DATDEST=/home/imperium/services' 'RUNGROUP=' 'MODULE_PATH=/home/imperium/services/modules/' 'RDB=rdb.c ' 'MYSQL=mysql.c ' 'SHARED=-shared' 'MODULEFLAGS=-fPIC -DPIC -shared' all; )
make[1]: Entering directory `/home/imperium/anope-1.7.10/src/modules'
gcc -pipe -g -O2 -I/usr/include/mysql  -pthread -export-dynamic -g -rdynamic -Wall -fPIC -DPIC -shared -I../../include -c ns_ajoin.c
ns_ajoin.c: In function `AnopeInit':
ns_ajoin.c:521: warning: implicit declaration of function `db_keepalive'
ns_ajoin.c: In function `get_src_dests':
ns_ajoin.c:687: warning: unused variable `destination'
ns_ajoin.c: In function `notice_user_ww':
ns_ajoin.c:840: warning: implicit declaration of function `vasprintf'
ns_ajoin.c: In function `ns_ajoin_replace':
ns_ajoin.c:1551: warning: unused variable `oldchanlist'
ns_ajoin.c: In function `ns_ajoin_list':
ns_ajoin.c:1606: warning: suggest parentheses around assignment used as truth value
ns_ajoin.c: In function `do_on_identify':
ns_ajoin.c:1766: warning: suggest parentheses around assignment used as truth value
ns_ajoin.c:1783: error: `CMODE_i' undeclared (first use in this function)
ns_ajoin.c:1783: error: (Each undeclared identifier is reported only once
ns_ajoin.c:1783: error: for each function it appears in.)
ns_ajoin.c: In function `group_info_ids':
ns_ajoin.c:1898: warning: suggest parentheses around assignment used as truth value
ns_ajoin.c: In function `get_ajoin_list':
ns_ajoin.c:1968: warning: suggest parentheses around assignment used as truth value
ns_ajoin.c: In function `update_ajoin_list':
ns_ajoin.c:2063: warning: unused variable `tempstr2'
make[1]: *** [ns_ajoin.o] Error 1
make[1]: Leaving directory `/home/imperium/anope-1.7.10/src/modules'
make: *** [modules] Error 2


What´s the problem? I get this archive in this site... sub secction modules...
Logged

Dave Robson

  • Team
  • *
  • Offline Offline
  • Posts: 357
(No subject)
« Reply #9 on: May 15, 2006, 06:05:39 PM »

The module dosnt work with the 1.7.x series.
Logged

cpu

  • Guest
(No subject)
« Reply #10 on: May 15, 2006, 06:45:55 PM »

Thans you...

 Did you have the module of ajoin that to work whith this version? for example the anope 1.7.x ?
Logged

cpu

  • Guest
(No subject)
« Reply #11 on: May 15, 2006, 08:09:09 PM »

Quote
Originally posted by Rob
The module dosnt work with the 1.7.x series.


Rob,

  But I read in this file and I look this:

* Supported IRCD: Any IRCd which supports SVSJOIN
 * Tested with:    Unreal 3.2.2b and Anope 1.7.8 (600)
 * Requires:       MySQL

It´s comments in the file ns_ajoin.c that exist here in this site, in a "modules" . I think that this modules accept the version 1.7.x because look the comment : ".. * Tested with:    Unreal 3.2.2b and Anope 1.7.8 (600)..." , ins´t ?

I need this command in my ircd, the unrealircd ....

  Thanks to help!
Logged

Dave Robson

  • Team
  • *
  • Offline Offline
  • Posts: 357
(No subject)
« Reply #12 on: May 15, 2006, 08:22:06 PM »

it wont work with anything after 1.7.10
Logged

cpu

  • Guest
(No subject)
« Reply #13 on: May 15, 2006, 08:54:07 PM »

Great..

   I undertand.... it´s correcy...  So, at the momento... just to find in the net...

  PS: sorry my english.... I know that it´s not good but I hope that you undertand me in anything... I´m a brasilian person, and them.... i don´t go for the school.... hehehhehe

Take a Good day!

yeah!
Logged
Pages: [1]   Go Up