Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: os_locate problem  (Read 6741 times)

0 Members and 1 Guest are viewing this topic.

Izv143

  • Anope User
  • Offline Offline
  • Posts: 36
    • www.krajinalive.com
os_locate problem
« on: October 15, 2009, 12:20:29 PM »

I have problem with installing os_locate on anope-1.9.0, here is report during istallation:

(~/anope-1.9.0-p1-source) - make modules
`language.h' is up to date.
os_locate.cpp:28:19: GeoIP.h: No such file or directory
os_locate.cpp:29:23: GeoIPCity.h: No such file or directory
os_locate.cpp:48: error: expected unqualified-id before string constant
os_locate.cpp: In constructor `OSLocate::OSLocate(const std::string&, const std::string&)':
os_locate.cpp:195: error: `CommandOSLocate' has not been declared
os_locate.cpp:205:21: macro "MODULE_INIT" requires 2 arguments, but only 1 given
os_locate.cpp: At global scope:
os_locate.cpp:205: error: expected constructor, destructor, or type conversion at end of input
*** Error code 1

Stop in /home/extreme/anope-1.9.0-p1-source/src/modules.
*** Error code 1

Stop in /home/extreme/anope-1.9.0-p1-source.


I did put corect path of the GeoLiteCity.dat and #define useGlobOps true, but there is a problem during installation.
Anyone can help ?
Logged

LEthaLity

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 307
    • LEthaLity
Re: os_locate problem
« Reply #1 on: October 15, 2009, 02:43:07 PM »

anope-1.9.1 is listed as the supported version
Logged

Izv143

  • Anope User
  • Offline Offline
  • Posts: 36
    • www.krajinalive.com
Re: os_locate problem
« Reply #2 on: October 19, 2009, 12:30:00 PM »

anope-1.9.1 is listed as the supported version

can't install that module on anope-1.9.1 too
:( some error again
Logged

Jens Voss

  • Team
  • *
  • Offline Offline
  • Posts: 125
Re: os_locate problem
« Reply #3 on: October 19, 2009, 12:49:54 PM »

You need the geoip library and header files installed. (In Debian, its "libgeoip-dev")
Logged

Izv143

  • Anope User
  • Offline Offline
  • Posts: 36
    • www.krajinalive.com
Re: os_locate problem
« Reply #4 on: October 19, 2009, 01:07:06 PM »

You need the geoip library and header files installed. (In Debian, its "libgeoip-dev")

This is FreeBSD and error is like this:

 (~/anope-1.9.1) - gmake modules
gmake[1]: Entering directory `/home/user/anope-1.9.1/lang'
gmake[1]: Nothing to be done for `all'.
gmake[1]: `language.h' is up to date.
gmake[1]: Leaving directory `/home/user/anope-1.9.1/lang'
gmake[1]: Entering directory `/home/user/anope-1.9.1/include'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/home/user/anope-1.9.1/include'
gmake[1]: Entering directory `/home/user/anope-1.9.1/src'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/home/user/anope-1.9.1/src'
ls: *.cpp: No such file or directory
gmake[1]: Entering directory `/home/user/anope-1.9.1/src/modules'
g++  -pipe -g -I/usr/local/include/mysql  -fno-strict-aliasing -pipe -export-dynamic -g -Wall -ansi -pedantic -Wshadow -rdynamic -Wall -fPIC -DPIC -shared -I../../include -o os_locate.so os_locate.c
os_locate.c:28:19: GeoIP.h: No such file or directory
os_locate.c:29:23: GeoIPCity.h: No such file or directory
os_locate.c:48: error: expected unqualified-id before string constant
os_locate.c: In constructor `OSLocate::OSLocate(const std::string&, const std::string&)':
os_locate.c:195: error: `CommandOSLocate' has not been declared
gmake[1]: *** [os_locate.so] Error 1
gmake[1]: Leaving directory `/home/user/anope-1.9.1/src/modules'
gmake: *** [modules] Error 2

??? :-[
Logged

Jens Voss

  • Team
  • *
  • Offline Offline
  • Posts: 125
Re: os_locate problem
« Reply #5 on: October 19, 2009, 01:31:11 PM »

Quote
os_locate.c:28:19: GeoIP.h: No such file or directory
os_locate.c:29:23: GeoIPCity.h: No such file or directory

you need the libgeoip header files!

http://www.maxmind.com/app/c   (there is also a link to a FreeBSD port)
Logged

Andre Lanvermann

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • SolidIRC, your Place to be
Re: os_locate problem
« Reply #6 on: October 19, 2009, 05:42:54 PM »

Hello,

Jens is right, my module needs the libgeoip and libgeoip-dev packages. I just uploaded a new version with a new feature (GEOFIND) and some detailed informations how to install it (since im using cmake its the cmake based install process.)

The new Version needs to be loaded at start, because its adding the geolocation to anopes internal userdata. This slows down the netjoin procedure, but results in very fast locationsearches.


Greetings,

Phantomal
Logged
Pages: [1]   Go Up