Anope IRC Services

Anope Support => 2.0.x/1.9.x Support => Topic started by: A on November 27, 2011, 02:19:26 AM

Title: Need Help with Anope anope-1.9.4-p1-source
Post by: A on November 27, 2011, 02:19:26 AM
OS: Ubuntu 11.10
gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
cmake version 2.8.5

I am having the following errors with make:
CMakeFiles/services.dir/modulemanager.o: In function `ModuleManager::LoadModule(Anope::string const&, User*)':
/home/alpha/anope-1.9.4-p1-source/src/modulemanager.cpp:132: undefined reference to `dlerror'
/home/alpha/anope-1.9.4-p1-source/src/modulemanager.cpp:134: undefined reference to `dlopen'
/home/alpha/anope-1.9.4-p1-source/src/modulemanager.cpp:135: undefined reference to `dlerror'
/home/alpha/anope-1.9.4-p1-source/src/modulemanager.cpp:142: undefined reference to `dlerror'
/home/alpha/anope-1.9.4-p1-source/src/modulemanager.cpp:143: undefined reference to `dlsym'
/home/alpha/anope-1.9.4-p1-source/src/modulemanager.cpp:144: undefined reference to `dlerror'
/home/alpha/anope-1.9.4-p1-source/src/modulemanager.cpp:148: undefined reference to `dlclose'
CMakeFiles/services.dir/modulemanager.o: In function `ModuleManager::DeleteModule(Module*)':
/home/alpha/anope-1.9.4-p1-source/src/modulemanager.cpp:226: undefined reference to `dlerror'
/home/alpha/anope-1.9.4-p1-source/src/modulemanager.cpp:227: undefined reference to `dlsym'
/home/alpha/anope-1.9.4-p1-source/src/modulemanager.cpp:228: undefined reference to `dlerror'
/home/alpha/anope-1.9.4-p1-source/src/modulemanager.cpp:239: undefined reference to `dlclose'
/home/alpha/anope-1.9.4-p1-source/src/modulemanager.cpp:240: undefined reference to `dlerror'
collect2: ld returned 1 exit status
make[2]: *** [src/services] Error 1
make[1]: *** [src/CMakeFiles/services.dir/all] Error 2
make: *** [all] Error 2

Please advise if possible, Thank you in advance  :)
Title: Re: Need Help with Anope anope-1.9.4-p1-source
Post by: Naram Qashat on November 27, 2011, 02:21:32 AM
This was a known problem, it has been fixed in git already.  I do not think this will be backported.
Title: Re: Need Help with Anope anope-1.9.4-p1-source
Post by: A on November 27, 2011, 02:50:50 AM
Not familiar with git, point in the right direction please?
Title: Re: Need Help with Anope anope-1.9.4-p1-source
Post by: Adam on November 27, 2011, 02:53:07 AM
http://anope.git.sourceforge.net

It looks like if you applied the following patches (in this order) it will be fixed:
http://anope.git.sourceforge.net/git/gitweb.cgi?p=anope/anope;a=patch;h=bf8e4ac71484cfe30bcddd02cb91900875dc34b2
http://anope.git.sourceforge.net/git/gitweb.cgi?p=anope/anope;a=patch;h=5a17b060feedd6037a2037f7cea23fd58129541e
http://anope.git.sourceforge.net/git/gitweb.cgi?p=anope/anope;a=patch;h=51d6e8ebfbacdbae659dde213c619024e86bf73d
Title: Re: Need Help with Anope anope-1.9.4-p1-source
Post by: A on November 27, 2011, 03:38:10 AM
Appreciate the help so far, i am completely new to the entire git thing, how do I apply these patches?  :-\
Title: Re: Need Help with Anope anope-1.9.4-p1-source
Post by: Jan Milants on November 27, 2011, 03:39:18 PM
wouldn't it be easier to go with 1.9.5.. (assuming that already has the patches?)  ::)

edit: ok it doesn't...
you could try git..
Quote
git clone git://anope.git.sf.net/gitroot/anope/anope; Use: 'git checkout -b 1.9 origin/1.9' for 1.9, default is 1.8
Tutorial available at: http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html

or to apply the patch (assuming *nix with patch installed)
"patch < mod.diff"
Title: Re: Need Help with Anope anope-1.9.4-p1-source
Post by: A on November 27, 2011, 05:45:21 PM
a@xxxxx:~$ git checkout -b 1.9 origin/1.9
fatal: Not a git repository (or any of the parent directories): .git
 :-[
Title: Re: Need Help with Anope anope-1.9.4-p1-source
Post by: LEthaLity on November 27, 2011, 05:58:55 PM
git checkout should be run from the anope directory