[OpenSIPS-Users] mmgeoip module load error

Kobi Eshun kobi at sightspeed.com
Wed Mar 4 01:32:41 CET 2009


Hi, Jeff.

Trying to eliminate possibilities ... can you please try something like

	ldd /usr/local/lib/opensips/modules/mmgeoip.so

if you're using a linux box, or the equivalent on your machine, and  
send me the output, please? Thanks,
--
kobi


On Mar 3, 2009, at 4:18 PM, Jeff Pyle wrote:

> Sergio and Kobi,
>
> Here's exactly what I did:  I removed mmgeoip from the exclude list  
> in the
> Makefile for a current revision of 1.5, and tried recompile the  
> modules.  I
> saw an error about GeoIP.h (I think) not being found.  Then I  
> downloaded the
> C API from the MaxMind website, compiled and installed it.  With  
> this, the
> mmgeoip module in Opensips compiled correctly without any errors.  And
> finally, a "make install" to install it.
>
> Then I added the module config to opensips.cfg:
>
> loadmodule "mmgeoip.so"
> modparam("mmgeoip", "mmgeoip_city_db_path",
> "/usr/local/etc/opensips/geolite/GeoLiteCity.dat")
>
> Starting Opensips gave me the error.
>
> Does anything stand out I may have done incorrectly?
>
>
> Thanks,
> Jeff
>
>
>
>
> On 3/3/09 6:44 PM, "Kobi Eshun" <kobi at sightspeed.com> wrote:
>
>> Sounds like you have a library version mismatch -- did you compile
>> mmgeoip.so yourself, or are you using some pre-compiled distribution?
>> Cheers,
>> --
>> kobi
>>
>>
>> On Mar 3, 2009, at 1:56 PM, Jeff Pyle wrote:
>>
>>> Hello,
>>>
>>> mmgeoip looks like a very interesting module.  I compiled and
>>> installed the
>>> C API, which allowed the Opensips module to compile.  I downloaded  
>>> the
>>> GeoLite binary data file and referenced it after loading  
>>> mmgeoip.so in
>>> opensips.cfg.
>>>
>>> Loading opensips fails with this error:
>>> ERROR:core:sr_load_module: could not open module
>>> </usr/local/lib/opensips/modules/mmgeoip.so>:
>>> /usr/local/lib/opensips/modules/mmgeoip.so: undefined symbol:
>>> GeoIP_time_zone_by_country_and_region
>>>
>>> I realize this is brand new code.  Having said that, has anyone
>>> encountered
>>> this before?
>>>
>>>
>>> Regards,
>>> Jeff
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>




More information about the Users mailing list