GithubHelp home page GithubHelp logo

libvmod_maxminddb's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

libvmod_maxminddb's Issues

compiling errors

Hello,
I see the following errors trying to compile the module:

./configure: line 12029: VARNISH_VMOD_INCLUDES: command not found
./configure: line 12030: VARNISH_VMOD_DIR: command not found
./configure: line 12031: VARNISH_VMODTOOL: command not found
checking for varnishtest... /usr/local/bin/varnishtest
checking for varnishd... /usr/local/sbin/varnishd
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
root@server [/usr/local/src/varnish-geoip-plugin-master/libvmod_maxminddb-master]# make
make all-recursive
make[1]: Entering directory /usr/local/src/varnish-geoip-plugin-master/libvmod_maxminddb-master' Making all in src make[2]: Entering directory/usr/local/src/varnish-geoip-plugin-master/libvmod_maxminddb-master/src'
make[2]: *** No rule to make target @VMODTOOL@', needed byvcc_if.c'. Stop.
make[2]: Leaving directory /usr/local/src/varnish-geoip-plugin-master/libvmod_maxminddb-master/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/usr/local/src/varnish-geoip-plugin-master/libvmod_maxminddb-master'
make: *** [all] Error 2

Is it compatible with CentOS and how can I fix these errors? I tryed compiling it for varnish 4 with VMOD_DIR and without VMOD_DIR?

Incompatible pointer type warning on make

Hi,
When I run make I get these warnings:

libvmod_maxminddb # make
make all-recursive
make[1]: Entering directory /root/libvmod_maxminddb' Making all in src make[2]: Entering directory/root/libvmod_maxminddb/src'
/usr/share/varnish-plus/vmodtool.py ../src/vmod_maxminddb.vcc
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish-plus -g -O2 -MT vcc_if.lo -MD -MP -MF .deps/vcc_if.Tpo -c -o vcc_if.lo vcc_if.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish-plus -g -O2 -MT vcc_if.lo -MD -MP -MF .deps/vcc_if.Tpo -c vcc_if.c -fPIC -DPIC -o .libs/vcc_if.o
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish-plus -g -O2 -MT vcc_if.lo -MD -MP -MF .deps/vcc_if.Tpo -c vcc_if.c -o vcc_if.o >/dev/null 2>&1
mv -f .deps/vcc_if.Tpo .deps/vcc_if.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish-plus -g -O2 -MT vmod_maxminddb.lo -MD -MP -MF .deps/vmod_maxminddb.Tpo -c -o vmod_maxminddb.lo vmod_maxminddb.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish-plus -g -O2 -MT vmod_maxminddb.lo -MD -MP -MF .deps/vmod_maxminddb.Tpo -c vmod_maxminddb.c -fPIC -DPIC -o .libs/vmod_maxminddb.o
vmod_maxminddb.c: In function 'lookup':
vmod_maxminddb.c:39:2: warning: passing argument 3 of 'MMDB_aget_value' from incompatible pointer type [enabled by default]
r = MMDB_aget_value(&s.entry, entry, path);
^
In file included from vmod_maxminddb.c:11:0:
/usr/include/maxminddb.h:202:16: note: expected 'const char * const* const' but argument is of type 'const char '
extern int MMDB_aget_value(MMDB_entry_s *const start,
^
vmod_maxminddb.c: In function 'vmod_query_continent':
vmod_maxminddb.c:83:2: warning: passing argument 4 of 'vmod_query_common' from incompatible pointer type [enabled by default]
return vmod_query_common(ctx, priv, ip, continent_path);
^
vmod_maxminddb.c:65:1: note: expected 'const char *' but argument is of type 'const char *
'
vmod_query_common(const struct vrt_ctx ctx, struct vmod_priv *priv, const struct suckaddr *ip, const char *path)
^
vmod_maxminddb.c: In function 'vmod_query_country':
vmod_maxminddb.c:90:2: warning: passing argument 4 of 'vmod_query_common' from incompatible pointer type [enabled by default]
return vmod_query_common(ctx, priv, ip, country_path);
^
vmod_maxminddb.c:65:1: note: expected 'const char *' but argument is of type 'const char *
'
vmod_query_common(const struct vrt_ctx ctx, struct vmod_priv *priv, const struct suckaddr *ip, const char *path)
^
vmod_maxminddb.c: In function 'vmod_query_state':
vmod_maxminddb.c:97:2: warning: passing argument 4 of 'vmod_query_common' from incompatible pointer type [enabled by default]
return vmod_query_common(ctx, priv, ip, state_path);
^
vmod_maxminddb.c:65:1: note: expected 'const char *' but argument is of type 'const char *
'
vmod_query_common(const struct vrt_ctx ctx, struct vmod_priv *priv, const struct suckaddr *ip, const char *path)
^
vmod_maxminddb.c: In function 'vmod_query_city':
vmod_maxminddb.c:104:2: warning: passing argument 4 of 'vmod_query_common' from incompatible pointer type [enabled by default]
return vmod_query_common(ctx, priv, ip, city_path);
^
vmod_maxminddb.c:65:1: note: expected 'const char *' but argument is of type 'const char *
'
vmod_query_common(const struct vrt_ctx ctx, struct vmod_priv *priv, const struct suckaddr *ip, const char *path)
^
vmod_maxminddb.c: In function 'vmod_query_postalcode':
vmod_maxminddb.c:111:2: warning: passing argument 4 of 'vmod_query_common' from incompatible pointer type [enabled by default]
return vmod_query_common(ctx, priv, ip, postalcode_path);
^
vmod_maxminddb.c:65:1: note: expected 'const char *' but argument is of type 'const char *
'
vmod_query_common(const struct vrt_ctx *ctx, struct vmod_priv *priv, const struct suckaddr *ip, const char *path)
^
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/varnish-plus -g -O2 -MT vmod_maxminddb.lo -MD -MP -MF .deps/vmod_maxminddb.Tpo -c vmod_maxminddb.c -o vmod_maxminddb.o >/dev/null 2>&1
mv -f .deps/vmod_maxminddb.Tpo .deps/vmod_maxminddb.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -module -export-dynamic -avoid-version -lmaxminddb -o libvmod_maxminddb.la -rpath /usr/lib64/varnish-plus/vmods/ vcc_if.lo vmod_maxminddb.lo
libtool: link: gcc -std=gnu99 -shared -fPIC -DPIC .libs/vcc_if.o .libs/vmod_maxminddb.o -lmaxminddb -O2 -Wl,-soname -Wl,libvmod_maxminddb.so -o .libs/libvmod_maxminddb.so
libtool: link: ar cru .libs/libvmod_maxminddb.a vcc_if.o vmod_maxminddb.o
libtool: link: ranlib .libs/libvmod_maxminddb.a
libtool: link: ( cd ".libs" && rm -f "libvmod_maxminddb.la" && ln -s "../libvmod_maxminddb.la" "libvmod_maxminddb.la" )
make[2]: Leaving directory /root/libvmod_maxminddb/src' make[2]: Entering directory/root/libvmod_maxminddb'
rst2man README.rst vmod_geoip.3
make[2]: Leaving directory /root/libvmod_maxminddb' make[1]: Leaving directory/root/libvmod_maxminddb'

I'm working on CentOS 7. I have this packages installed:
libtool varnish-plus varnish-plus-libs varnish-plus-libs-devel python-docutils libmaxminddb libmaxminddb-devel

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.