eam / libcrange Goto Github PK
View Code? Open in Web Editor NEWRange parsing library for managing sets of hostnames, ips, clusters, roles and other operational data.
License: BSD 3-Clause "New" or "Revised" License
Range parsing library for managing sets of hostnames, ips, clusters, roles and other operational data.
License: BSD 3-Clause "New" or "Revised" License
hi is there a mailing list?
with these software,
ii bison 2:2.7.1.dfsg-1
ii flex 2.5.35-10.1
running ../scripts/build results in:
range.c:20:5: error: conflicting types for 'yyparse'
int yyparse(void_);
^
In file included from range.c:14:0:
range_parser.h:144:5: note: previous declaration of 'yyparse' was here
int yyparse (void);
^
range.c: In function 'range_from_function':
range.c:426:5: warning: implicit declaration of function 'libcrange_get_python_module' [-Wimplicit-function-declaration]
plugin_module = libcrange_get_python_module(lr, funcname);
^
range.c:426:19: warning: assignment makes pointer from integer without a cast [enabled by default]
plugin_module = libcrange_get_python_module(lr, funcname);
^
range.c:428:7: warning: implicit declaration of function 'python_function' [-Wimplicit-function-declaration]
returned_ret = python_function(rr, funcname, r, &passed_ret);
^
range.c:428:20: warning: assignment makes pointer from integer without a cast [enabled by default]
returned_ret = python_function(rr, funcname, r, &passed_ret);
^
range.c:413:10: warning: variable 'returned_ret' set but not used [-Wunused-but-set-variable]
range_ returned_ret;
^
make[3]: *** [libcrange_la-range.lo] Error 1
make[3]: Leaving directory /usr/src/libcrange/source/src' make[2]: *** [all] Error 2 make[2]: Leaving directory
/usr/src/libcrange/source/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/libcrange/source'
make: *** [all] Error 2
Pardon the venue if incorrect. I've got a patch for the other open issue, although I'm not convinced a patch is the right solution.
Thanks for your time.
/tmp/range.conf:
dns_data_file=/Users/evan/prefix/etc/dns_data.tinydns
yst_ip_list=/Users/evan/prefix/etc/yst-ip-list
yaml_path=/Users/evan/prefix/rangedata
loadmodule /Users/evan/prefix/usr/lib/libcrange/yamlfile
loadmodule /Users/evan/prefix/usr/lib/libcrange/ip
loadmodule /Users/evan/prefix/usr/lib/libcrange/yst-ip-list
perl_inc_path=/Users/evan/prefix/usr/local/lib64/perl5:/Users/evan/prefix/var/libcrange/perl:/Users/evan/prefix/usr/local/lib/perl/5.14.2
perlmodule LibrangeUtils
perlmodule LibrangeAdminscf
The last two lines, or seemingly any perlmodule use, causes the crash.
(gdb) run -c /tmp/range.conf foo100..1
Starting program: /Users/evan/prefix/usr/bin/crange -c /tmp/range.conf foo100..1
Reading symbols for shared libraries +++++++.......................... done
Reading symbols for shared libraries ... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000000000000c
0x00000001000d4b32 in Perl_sv_replace ()
(gdb) bt
#0 0x00000001000d4b32 in Perl_sv_replace ()
#1 0x00000001000ec843 in Perl_leave_scope ()
#2 0x0000000100062486 in Perl_newATTRSUB ()
#3 0x00000001000681a2 in Perl_call_pv ()
#4 0x000000010000879c in get_exported_functions inlined at /Users/evan/git/libcrange/source/src/perl_functions.c:61
#5 0x000000010000879c in add_functions_from_perlmodule (lr=0x100813020, pool=0x7fff5fbff390, perlfunctions=0x7fff5fbff390, module=0x7fff5fbff390 "????", prefix=0x7fff5fbff390 "????") at perl_functions.c:134
#6 0x000000010000a226 in parse_config_file inlined at /Users/evan/git/libcrange/source/src/libcrange.c:430
#7 0x000000010000a226 in libcrange_new (pool=0x10000f198, config_file=0x7fff5fbff49b "LibrangeUtils") at libcrange.c:65
#8 0x0000000100000c9f in main (argc=4, argv=0x7fff5fbffa38) at main.c:55
per @boinger, touch foo.yaml, crange %foo, segfault
CLUSTER:
puppet-classes:
$ crange %foo
NOCLUSTER: foo:puppet
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.