GithubHelp home page GithubHelp logo

wikimedia-incubator / libcidr Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 1.63 MB

libcidr is a library that provides a number of functions to input, output, manipulate, compare, multilate, and otherwise play with, IP addresses and netblocks.

Home Page: http://www.over-yonder.net/~fullermd/projects/libcidr

License: Other

Perl 9.32% Shell 2.15% C 88.53%

libcidr's People

Contributors

fullermd avatar ottomata avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

karlpilkington

libcidr's Issues

make error

(cd src && make all)
cc -fpic -DPIC -c -g -O2 -pipe -Wall -Wstrict-prototypes -Wredundant-decls -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wnested-externs -Wmissing-declarations -Wsign-compare -pedantic -I../include -Iinclude -std=c99 -D_XOPEN_SOURCE=600 -o cidr_addr.So cidr_addr.c
cc -fpic -DPIC -c -g -O2 -pipe -Wall -Wstrict-prototypes -Wredundant-decls -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wnested-externs -Wmissing-declarations -Wsign-compare -pedantic -I../include -Iinclude -std=c99 -D_XOPEN_SOURCE=600 -o cidr_compare.So cidr_compare.c
cc -fpic -DPIC -c -g -O2 -pipe -Wall -Wstrict-prototypes -Wredundant-decls -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wnested-externs -Wmissing-declarations -Wsign-compare -pedantic -I../include -Iinclude -std=c99 -D_XOPEN_SOURCE=600 -o cidr_from_str.So cidr_from_str.c
cc -fpic -DPIC -c -g -O2 -pipe -Wall -Wstrict-prototypes -Wredundant-decls -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wnested-externs -Wmissing-declarations -Wsign-compare -pedantic -I../include -Iinclude -std=c99 -D_XOPEN_SOURCE=600 -o cidr_get.So cidr_get.c
cc -fpic -DPIC -c -g -O2 -pipe -Wall -Wstrict-prototypes -Wredundant-decls -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wnested-externs -Wmissing-declarations -Wsign-compare -pedantic -I../include -Iinclude -std=c99 -D_XOPEN_SOURCE=600 -o cidr_inaddr.So cidr_inaddr.c
cc -fpic -DPIC -c -g -O2 -pipe -Wall -Wstrict-prototypes -Wredundant-decls -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wnested-externs -Wmissing-declarations -Wsign-compare -pedantic -I../include -Iinclude -std=c99 -D_XOPEN_SOURCE=600 -o cidr_mem.So cidr_mem.c
cc -fpic -DPIC -c -g -O2 -pipe -Wall -Wstrict-prototypes -Wredundant-decls -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wnested-externs -Wmissing-declarations -Wsign-compare -pedantic -I../include -Iinclude -std=c99 -D_XOPEN_SOURCE=600 -o cidr_misc.So cidr_misc.c
cc -fpic -DPIC -c -g -O2 -pipe -Wall -Wstrict-prototypes -Wredundant-decls -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wnested-externs -Wmissing-declarations -Wsign-compare -pedantic -I../include -Iinclude -std=c99 -D_XOPEN_SOURCE=600 -o cidr_net.So cidr_net.c
cc -fpic -DPIC -c -g -O2 -pipe -Wall -Wstrict-prototypes -Wredundant-decls -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wnested-externs -Wmissing-declarations -Wsign-compare -pedantic -I../include -Iinclude -std=c99 -D_XOPEN_SOURCE=600 -o cidr_num.So cidr_num.c
cc -fpic -DPIC -c -g -O2 -pipe -Wall -Wstrict-prototypes -Wredundant-decls -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wnested-externs -Wmissing-declarations -Wsign-compare -pedantic -I../include -Iinclude -std=c99 -D_XOPEN_SOURCE=600 -o cidr_to_str.So cidr_to_str.c
Linking libcidr.so.0...
cc -shared -Wl,-x -o libcidr.so.0 -Wl,-soname,libcidr.so.0
../tools/lorder cidr_addr.So cidr_compare.So cidr_from_str.So cidr_get.So cidr_inaddr.So cidr_mem.So cidr_misc.So cidr_net.So cidr_num.So cidr_to_str.So | tsort
usage: join [-a fileno | -v fileno ] [-e string] [-1 field] [-2 field]
[-o list] [-t char] file1 file2
ld: unknown option: -soname
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libcidr.so.0] Error 1
make: *** [all] Error 2

added support for building libcidr.a :)

Hello Andrew,

I've just added static building of libcidr in the added_static_building_libcidr branch.
This is in order for us to be able to build a completely independent udp-filters binary(this is in order for us
to easily test and develop our udp-filters tommorow, because building the udp-filters debian package takes a bit of time
and in order to take development time as close as possible to zero I consider a static build of udp-filters to be appropriate).

Please review this and perhaps merge it with the debian/ branch (of course as you know, you can ignore the GNUMakefile* as they are automatically generated).

If review is succesful, please dpkg-buildpackage and upload the new packages to the debian repo.

Best regards,
Stefan

UPDATE: I've just built the udp-filters using libcidr.a , it produced a 1.2MB binary which works fine and we can
copy it around as we're testing stuff.

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.