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

ffi.error: struct tr_tcp_config: wrong total size (cdef says 24, but C compiler says 48). fix it or use "...;" #84

Open
jayeshkumarbhoi opened this issue Jun 3, 2024 · 0 comments

Comments

@jayeshkumarbhoi
Copy link

Hello I have started using cffi==1.16.0

Now at function call rtrlib/rtr_manager.py it through bellow error

  File "/mydir/rtr_myscript.py", line 52, in connectRtr
    mgr = RTRManager(server, 332)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/rtrlib-0.1-py3.12-linux-x86_64.egg/rtrlib/rtr_manager.py", line 138, in __init__
    self.tcp_config = ffi.new('struct tr_tcp_config *')
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ffi.error: struct tr_tcp_config: wrong total size (cdef says 24, but C compiler says 48). fix it or use "...;" as the last field in the cdef for struct tr_tcp_config to make it flexible

so what could be the reason for this issue?

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