Coder Social home page Coder Social logo

vanrein / asn2quickder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kimgr/asn1ate

0.0 0.0 2.0 369 KB

An ASN.1 compiler with a backend for Quick DER (REPO CLOSED AND CODE RELOCATED)

Python 96.57% Batchfile 0.47% Shell 0.44% Makefile 2.52%

asn2quickder's People

Contributors

fzonneveld avatar johnteslade avatar kimgr avatar leenaars avatar mmattice avatar rasky avatar vanrein avatar viraptor avatar

Watchers

 avatar

Forkers

leenaars arpa2

asn2quickder's Issues

parallel make fails using -jN where N > 27

[ 62%] Building C object test/CMakeFiles/ldap.test.dir/ldapsearch.c.o
cd /home/gijs/arpa2/quick-der/obj-x86_64-linux-gnu/test && /usr/bin/x86_64-linux-gnu-gcc   -I/home/gijs/arpa2/quick-der/include -I/home/gijs/arpa2/quick-der/obj-x86_64-linux-gnu/rfc  -march=native -O2 -pipe -Wdate-time -D_FORTIFY_SOURCE=2    -std=gnu99 -o CMakeFiles/ldap.test.dir/ldapsearch.c.o   -c /home/gijs/arpa2/quick-der/test/ldapsearch.c
[ 62%] Built target rfc2578_asn1_h
/home/gijs/arpa2/quick-der/test/ldapsearch.c:23:31: fatal error: quick-der/rfc4511.h: No such file or directory
compilation terminated.

error: non-void function 'init_quickder' should return a value

while compiling latest master (version-1.2-2-7-gf3f8f28) and last release (1.2-2) in combination with Python 3.6 (2.7 seems to work) i run into troubles:

clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/gijs/Work/quick-der/include -I/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c /Users/gijs/Work/quick-der/python/_quickder.c -o build/temp.macosx-10.12-x86_64-3.6/Users/gijs/Work/quick-der/python/_quickder.o
/Users/gijs/Work/quick-der/python/_quickder.c:73:11: warning: implicit declaration of function 'PyString_FromStringAndSize' is invalid in C99 [-Wimplicit-function-declaration]
                        elem = PyString_FromStringAndSize ((char *)cursori [numcursori].derptr, cursori [numcursori].derlen);
                               ^
/Users/gijs/Work/quick-der/python/_quickder.c:73:11: warning: this function declaration is not a prototype [-Wstrict-prototypes]
/Users/gijs/Work/quick-der/python/_quickder.c:73:9: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
                        elem = PyString_FromStringAndSize ((char *)cursori [numcursori].derptr, cursori [numcursori].derlen);
                             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/gijs/Work/quick-der/python/_quickder.c:116:14: warning: implicit declaration of function 'PyString_Check' is invalid in C99 [-Wimplicit-function-declaration]
                } else if (PyString_Check (elem)) {
                           ^
/Users/gijs/Work/quick-der/python/_quickder.c:116:14: warning: this function declaration is not a prototype [-Wstrict-prototypes]
/Users/gijs/Work/quick-der/python/_quickder.c:120:4: warning: implicit declaration of function 'PyString_AsStringAndSize' is invalid in C99 [-Wimplicit-function-declaration]
                        PyString_AsStringAndSize (elem, &buf, &buflen);
                        ^
/Users/gijs/Work/quick-der/python/_quickder.c:120:4: warning: this function declaration is not a prototype [-Wstrict-prototypes]
/Users/gijs/Work/quick-der/python/_quickder.c:136:9: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
        retval = PyString_FromStringAndSize ((char *)packed, packedlen);
               ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/gijs/Work/quick-der/python/_quickder.c:195:8: warning: implicit declaration of function 'Py_InitModule' is invalid in C99 [-Wimplicit-function-declaration]
        mod = Py_InitModule ("_quickder", der_methods);
              ^
/Users/gijs/Work/quick-der/python/_quickder.c:195:8: warning: this function declaration is not a prototype [-Wstrict-prototypes]
/Users/gijs/Work/quick-der/python/_quickder.c:195:6: warning: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
        mod = Py_InitModule ("_quickder", der_methods);
            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/gijs/Work/quick-der/python/_quickder.c:197:3: error: non-void function 'init_quickder' should return a value [-Wreturn-type]
                return;
                ^
11 warnings and 1 error generated.

Generate hyperlinked ASN.1 (waiting for YOU)

Seeing that ASN.1 references symbols all over the place, it is useful to be able to map the notation to a hyperlinked document. HTML is a quick win, but a more general format such as TexInfo is probably better, since it maps to so many other forms.

I won't have the time for it, so you're welcome to pitch in what you've got... it's a great task for a beginning Python programmer, and very useful too :-)

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.