[OpenSIPS-Users] mmgeoip module load error

Jeff Pyle jpyle at fidelityvoice.com
Wed Mar 4 02:24:09 CET 2009


Hi Kobi,

Here's the output:

    linux-gate.so.1 =>  (0x00c75000)
    libdl.so.2 => /lib/libdl.so.2 (0x00110000)
    libresolv.so.2 => /lib/libresolv.so.2 (0x00d95000)
    libc.so.6 => /lib/i686/nosegneg/libc.so.6 (0x00571000)
    /lib/ld-linux.so.2 (0x001c1000)

This is on a CentOS 5.2 box, running a 2.6.18-92.1.22.el5xen kernel.



- Jeff



On 3/3/09 7:32 PM, "Kobi Eshun" <kobi at sightspeed.com> wrote:

> 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




More information about the Users mailing list