Giter Club home page Giter Club logo

libcrange's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libcrange's Issues

Compilation fails on debian stablish

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

  • exit 1
    gno@sugar:/usr/src/libcrange/source$

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.

perlmodule sig11 on osx

/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

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.