View Code? Open in Web Editor
NEW
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
Stargazers
libcidr's Issues
(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
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.