[OpenSIPS-Devel] "mmgeoip" is not cimpiled when using "make deb"
Iñaki Baz Castillo
ibc at aliax.net
Fri Dec 26 18:32:11 CET 2008
Just it, I've module dependencies installed (libgeoip1 and
libgeoip-dev), but when doing "make deb" the module is not installed.
But also it fails when trying to compile directly:
root at SERVER: /usr/src/opensips-trunk/sources/modules/mmgeoip # make
../../Makefile.modules:21: "you should run make from the main opensips
directory"
Compiling mmgeoip.c
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall
-minline-all-stringops -falign-loops -ftree-vectorize -mtune=nocona
-Wold-style-definition -Wmissing-field-initializers -Wredundant-decls
-DMOD_NAME='"mmgeoip"' -DNAME='"opensips"'
-DVERSION='"1.5.0dev2-tls"' -DARCH='"x86_64"' -DOS='"linux"'
-DCOMPILER='"gcc 4.1.2"' -D__CPU_x86_64 -D__OS_linux -D__SMP_yes
-DCFG_DIR='"/usr/local/etc/opensips/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC
-DUSE_TLS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
-DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD
-DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H
-DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT
-I/usr/local/ssl/include -I/usr/local/include -I/usr/include/openssl
-I/usr/local/include -c mmgeoip.c -o mmgeoip.o
mmgeoip.c: In function 'mod_init':
mmgeoip.c:56: error: 'GEOIP_MMAP_CACHE' undeclared (first use in this function)
mmgeoip.c:56: error: (Each undeclared identifier is reported only once
mmgeoip.c:56: error: for each function it appears in.)
mmgeoip.c: In function 'mmg_lookup_cmd':
mmgeoip.c:202: warning: implicit declaration of function
'GeoIP_region_name_by_code'
mmgeoip.c:202: warning: format '%s' expects type 'char *', but
argument 4 has type 'int'
mmgeoip.c:202: warning: format '%s' expects type 'char *', but
argument 4 has type 'int'
mmgeoip.c:206: warning: implicit declaration of function
'GeoIP_time_zone_by_country_and_region'
mmgeoip.c:206: warning: format '%s' expects type 'char *', but
argument 4 has type 'int'
mmgeoip.c:206: warning: format '%s' expects type 'char *', but
argument 4 has type 'int'
make: *** [mmgeoip.o] Error 1
Any other module can be compiled from its module directory.
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the Devel
mailing list