Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when parsing bn.h from OpenSSL #6

Open
mcepl opened this issue Mar 5, 2013 · 0 comments
Open

Crash when parsing bn.h from OpenSSL #6

mcepl opened this issue Mar 5, 2013 · 0 comments

Comments

@mcepl
Copy link

mcepl commented Mar 5, 2013

I have this header file from OpenSSL which when run through gccxml gives me this result. When running xml2cython on bn.xml I get this crash:

matej@wycliff: ~$ xml2cython.py /usr/include/openssl/bn.h bn.xml
Ignoring <ctypeslib.codegen.typedesc.Structure object at 0x7f7afa8b1390> _IO_FILE
Item not handled for cy_generate <ctypeslib.codegen.typedesc.ArrayType object at 0x23a5a50>
Item not handled for cy_generate <ctypeslib.codegen.typedesc.ArrayType object at 0x23b4810>
Item not handled for cy_generate <ctypeslib.codegen.typedesc.ArrayType object at 0x23b4810>
Item not handled for cy_generate <ctypeslib.codegen.typedesc.ArrayType object at 0x23a5650>
Item not handled for cy_generate <ctypeslib.codegen.typedesc.ArrayType object at 0x23a5650>
Struct member not handled: <ctypeslib.codegen.typedesc.Union object at 0x2397ad0>
Traceback (most recent call last):
  File "/home/matej/.local/bin/xml2cython.py", line 165, in <module>
    sys.exit(main())
  File "/home/matej/.local/bin/xml2cython.py", line 148, in main
    ffilter=ffilter, funcs_list=funcs)
  File "/home/matej/.local/bin/xml2cython.py", line 71, in generate_main
    generate_cython(output, gen, anoenumvals)
  File "/home/matej/.local/lib/python2.7/site-packages/cycodegenlib/cycodegen.py", line 12, in generate_cython
    cython_code = [cy_generate(i) for i in genitems]
  File "/home/matej/.local/lib/python2.7/site-packages/cycodegenlib/cycodegen.py", line 73, in cy_generate
    return cy_generate_typedef(item)
  File "/home/matej/.local/lib/python2.7/site-packages/cycodegenlib/cycodegen.py", line 30, in cy_generate_typedef
    return ["ctypedef %s %s" % (item.typ.name, item.name)]
AttributeError: 'FunctionType' object has no attribute 'name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant