Anope IRC Services
Anope Development => Modules => Topic started by: mikey1 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
-
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
-
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
-
What do you mean by "it doesn't recognise it"?
-
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:)
-
Just like to thankyou again for all your help, i have sorted it now.
Had the files in the wrong directory :((
-
Silly boy :P
Don't worry about it. We all make mistakes.
-
appreciated :))
-
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...
-
The module dosnt work with the 1.7.x series.
-
Thans you...
Did you have the module of ajoin that to work whith this version? for example the anope 1.7.x ?
-
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!
-
it wont work with anything after 1.7.10
-
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!