Anope IRC Services
Anope Development => Modules => Topic started by: icer on January 19, 2007, 06:37:33 PM
-
Running anope 1.7.18.
i untared the tarball in anope/src/modules/ then i 'make modules' in anope/ and this is the error i got:
[services@frozen][~/anope-1.7.18] $ make modules
(cd lang ; make 'CFLAGS=-pipe -g -O2 -I/usr/local/include/mysql -fno-strict-aliasing -pipe -march=pentium4 -export-dynamic' 'CC=gcc' 'ANOPELIBS=' 'LDFLAGS=-L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm' 'BINDEST=/home/staff/services/.serv/' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/usr/bin/touch' 'SHELL=/bin/sh' 'DATDEST=/home/staff/services/.serv/' 'RUNGROUP=' 'MODULE_PATH=/home/staff/services/.serv//modules/' 'RDB=rdb.c' 'MYSQL=mysql.c' 'SHARED=-shared' 'MODULEFLAGS=-fPIC -DPIC -shared' all language.h ; )
`language.h' is up to date.
(cd include ; make 'CFLAGS=-pipe -g -O2 -I/usr/local/include/mysql -fno-strict-aliasing -pipe -march=pentium4 -export-dynamic' 'CC=gcc' 'ANOPELIBS=' 'LDFLAGS=-L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm' 'BINDEST=/home/staff/services/.serv/' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/usr/bin/touch' 'SHELL=/bin/sh' 'DATDEST=/home/staff/services/.serv/' 'RUNGROUP=' 'MODULE_PATH=/home/staff/services/.serv//modules/' 'RDB=rdb.c' 'MYSQL=mysql.c' 'SHARED=-shared' 'MODULEFLAGS=-fPIC -DPIC -shared' )
*** Building src
gcc -pipe -g -O2 -I/usr/local/include/mysql -fno-strict-aliasing -pipe -march=pentium4 -export-dynamic -fPIC -DPIC -shared -I../include/ -c mod_version.c
gcc -pipe -g -O2 -I/usr/local/include/mysql -fno-strict-aliasing -pipe -march=pentium4 -export-dynamic actions.o base64.o botserv.o channels.o chanserv.o commands.o compat.o config.o datafiles.o encrypt.o events.o helpserv.o hostserv.o init.o ircd.o language.o list.o log.o mail.o main.o memory.o memoserv.o messages.o misc.o modules.o news.o nickserv.o operserv.o process.o send.o servers.o sessions.o slist.o sockutil.o timeout.o users.o rdb.o mysql.o -o services -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm
(cd src/modules ; ./configure ; make 'CFLAGS=-pipe -g -O2 -I/usr/local/include/mysql -fno-strict-aliasing -pipe -march=pentium4 -export-dynamic' 'CC=gcc' 'ANOPELIBS=' 'LDFLAGS=-L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -lm' 'BINDEST=/home/staff/services/.serv/' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/usr/bin/touch' 'SHELL=/bin/sh' 'DATDEST=/home/staff/services/.serv/' 'RUNGROUP=' 'MODULE_PATH=/home/staff/services/.serv//modules/' 'RDB=rdb.c' 'MYSQL=mysql.c' 'SHARED=-shared' 'MODULEFLAGS=-fPIC -DPIC -shared' all; )
make: don't know how to make all. Stop
*** Error code 2
Stop in /usr/home/staff/services/anope-1.7.18.
[services@frozen][~/anope-1.7.18] $
i teid to use another Makefile.sub from somewhere else from anope/ but i just got errors everywhere.
Any help is appreciated *cough Viper cough* :D
[Edited on 19-1-2007 by icer]
-
http://forum.anope.org/viewthread.php?tid=1044
read this still have problems let us know thx.
-
uhmmm.. dunno, the module should compile and work fine on all latest anope releases though...
-
bahri@server:~/irc/anope-1.7.18$ make modules
(cd lang ; make 'CFLAGS=-pipe -g -O2 -export-dynamic' 'CC=gcc' 'ANOPELIBS=-lnsl -lresolv -lbsd -ldl' 'LDFLAGS=' 'BINDEST=/home/bahri/irc/services' 'INSTALL=/us r/bin/install' 'INCLUDEDIR=../include' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/bin/tou ch' 'SHELL=/bin/sh' 'DATDEST=/home/bahri/irc/services' 'RUNGROUP=' 'MODULE_PATH= /home/bahri/irc/services/modules/' 'RDB=' 'MYSQL=' 'SHARED=-shared' 'MODULEFLAGS =-fPIC -DPIC -shared' all language.h ; )
make[1]: Entering directory `/home/bahri/irc/anope-1.7.18/lang'
make[1]: Nothing to be done for `all'.
make[1]: `language.h' is up to date.
make[1]: Leaving directory `/home/bahri/irc/anope-1.7.18/lang'
(cd include ; make 'CFLAGS=-pipe -g -O2 -export-dynamic' 'CC=gcc' 'ANOPELIBS=-ln sl -lresolv -lbsd -ldl' 'LDFLAGS=' 'BINDEST=/home/bahri/irc/services' 'INSTALL= /usr/bin/install' 'INCLUDEDIR=../include' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/bin/ touch' 'SHELL=/bin/sh' 'DATDEST=/home/bahri/irc/services' 'RUNGROUP=' 'MODULE_PA TH=/home/bahri/irc/services/modules/' 'RDB=' 'MYSQL=' 'SHARED=-shared' 'MODULEFL AGS=-fPIC -DPIC -shared' )
make[1]: Entering directory `/home/bahri/irc/anope-1.7.18/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/bahri/irc/anope-1.7.18/include'
*** Building src
make[1]: Entering directory `/home/bahri/irc/anope-1.7.18/src'
gcc -pipe -g -O2 -export-dynamic -fPIC -DPIC -shared -I../include/ -c mod_versi on.c
gcc -pipe -g -O2 -export-dynamic actions.o base64.o botserv.o channels.o chanser v.o commands.o compat.o config.o datafiles.o encrypt.o events.o helpserv.o hosts erv.o init.o ircd.o language.o list.o log.o mail.o main.o memory.o memoserv.o me ssages.o misc.o modules.o news.o nickserv.o operserv.o process.o send.o servers. o sessions.o slist.o sockutil.o timeout.o users.o -lnsl -lresolv -lbsd -ldl -o services
make[1]: Leaving directory `/home/bahri/irc/anope-1.7.18/src'
(cd src/modules ; ./configure ; make 'CFLAGS=-pipe -g -O2 -export-dynamic' 'CC=g cc' 'ANOPELIBS=-lnsl -lresolv -lbsd -ldl' 'LDFLAGS=' 'BINDEST=/home/bahri/irc/s ervices' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'RM=/bin/rm' 'CP=/bi n/cp' 'TOUCH=/bin/touch' 'SHELL=/bin/sh' 'DATDEST=/home/bahri/irc/services' 'RUN GROUP=' 'MODULE_PATH=/home/bahri/irc/services/modules/' 'RDB=' 'MYSQL=' 'SHARED= -shared' 'MODULEFLAGS=-fPIC -DPIC -shared' all; )
make[1]: Entering directory `/home/bahri/irc/anope-1.7.18/src/modules'
Makefile:5: ../Makefile.sub: No such file or directory
make[1]: *** No rule to make target `../Makefile.sub'. Stop.
make[1]: Leaving directory `/home/bahri/irc/anope-1.7.18/src/modules'
make: *** [modules] Error 2
^--
Error is kind of similar.. help anyone? :\
-
what OS and gcc version?
-
OS: Linux Redhat
GCC version: 3.4.x
Hopefully you can solve my problem :) Thanks mate.
-
I just compiled it with no errors on FreeBSD and gcc 3.4 are you positive you ran Config and make already?
-
Well, I ran the anope install a while back.
Then "make", then "make install".
After that I obviously ./Config'd it but...
I wasn't real sure how to go about setting up this module. It really confused the hell out of me. All those guides, yeah I went to that link, that are posted everywhere... all explain going to different places (like.. anope dir, unrealircd dir... god...) :\
Any tips? Or help? :\
Thanks again.
-
Originally posted by twostars
Well, I ran the anope install a while back.
Then "make", then "make install".
After that I obviously ./Config'd it but...
I wasn't real sure how to go about setting up this module. It really confused the hell out of me. All those guides, yeah I went to that link, that are posted everywhere... all explain going to different places (like.. anope dir, unrealircd dir... god...) :\
Any tips? Or help? :\
Thanks again.
no not really, the guides to how to install a module are very simple.
1. put the .c file in anope-1.7.x/src/modules
2 cd ~/anope-1.7.x
3. make modules
4 make install
It can't get any easier, but it does require that you have already compiled anope the first time. If you haven't yet compile anope you will get errors or if you have run make distclean at some point after installation.
Also for the record, you run ./Config BEFORE make and make install .. not after.
try this:
1. ./Config
2. make
3. make install
4. On IRC type: /msg OperServ modload bs_fantasy_ext
PS: Nothing is obvious unless we are there with you.
[Edited on 12-5-2007 by katsklaw]
-
Yeah, I did ./Config first. Sorry... I was pulling things up by memory at like 4am in the morning. ;)
And that all sounds like I did it right. I might have to get you, if you want, to take a look at it yourself. I'll PM you some login details if you have time.
Thanks.
-
Also note:
for bs_fantasy_ext you NEED to copy the whole folder "bs_fantasy_ext" into the modules-source directory.
It would look like katsklaw described:
1. put the folder file in anope-1.7.x/src/modules/ so the .c files will be in anope-1.7.x/src/modules/bs_fantasy_ext
2 cd ~/anope-1.7.x
...
Did you do ./Config before make modules? that you shouldn't.
If nothin works recompile Anope (but make a backup of your .db-files and config!)
cd ~/anope-1.7.x
make clean
make distclean
./Config
make
make install
-
that is correct SNU, my bad. With some modules you have to place the folder in src/modules. As a good rule of thumb, I always place whatever file I download, whether it's a .c file ot a tarball in the src/modules directory, then untar directory from src/modules.
After reading your error closer I found this:
make[1]: Entering directory `/home/bahri/irc/anope-1.7.18/src/modules'
Makefile:5: ../Makefile.sub: No such file or directory
Which is actually the only error presnt and has nothing to do with bs_fantasy_ext. What I recommend is:
1> download anope-1.7.18.tar.gz and untar it again to insure you have all the files you need.
2> Then download bs_fantasy_ext-1.1.11.tar.gz and place the whole file in anope-1.7.18/src/modules
3> cd anope-1.7.18/src/modules
4> type tar -xzf bs_fantasy_ext-1.1.11.tar.gz
5> cd ../..
6> run ./Config
7> make
8> make install
[Edited on 13-5-2007 by katsklaw]