[OpenSIPS-Users] mmgeoip module load error

Jeff Pyle jpyle at fidelityvoice.com
Wed Mar 4 01:18:33 CET 2009


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