Issue 39 in ctypesgen: Tests failing to find libc.so.6 and libm.so.6 on 64bit Ubuntu (SVN r147)

5 views
Skip to first unread message

codesite...@google.com

unread,
Feb 27, 2013, 10:02:25 PM2/27/13
to ctyp...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 39 by jli...@gmail.com: Tests failing to find libc.so.6 and
libm.so.6 on 64bit Ubuntu (SVN r147)
http://code.google.com/p/ctypesgen/issues/detail?id=39

What steps will reproduce the problem?
1. Checkout the code
2. Go into the test directory
3. Run "./testsuite.py"

What is the expected output? What do you see instead?

I expect to see all tests pass instead I see 11 errors all like this:

======================================================================
ERROR: test_bad_args_string_not_number (__main__.MathTest)
Based on math_functions.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "./testsuite.py", line 252, in setUp
self.module, output = ctypesgentest.test(header_str,
libraries=libraries, all_headers=True)
File "/home/jlisee/projects/ctypesgen-read-only/test/ctypesgentest.py",
line 52, in test
module = __import__("temp")
File "/home/jlisee/projects/ctypesgen-read-only/test/temp.py", line 598,
in <module>
_libs["libm.so.6"] = load_library("libm.so.6")
File "/home/jlisee/projects/ctypesgen-read-only/test/temp.py", line 367,
in load_library
raise ImportError("%s not found." % libname)
ImportError: libm.so.6 not found

What version of the product are you using? On what operating system?

Ubuntu 12.04 64bit, SVN r147.


Please provide any additional information below.

I have attached a patch to fix the issue. There are still 3 tests failing
with "AttributeError: type object 'c_uint' has no attribute '_fields_'" in
the generated "temp.py" file.

Attachments:
Ubuntu_64bit_fix.patch 752 bytes

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

codesite...@google.com

unread,
Feb 27, 2013, 10:20:38 PM2/27/13
to ctyp...@googlegroups.com

Comment #1 on issue 39 by jli...@gmail.com: Tests failing to find libc.so.6
and libm.so.6 on 64bit Ubuntu (SVN r147)
http://code.google.com/p/ctypesgen/issues/detail?id=39

I believe this is related to #2.
Reply all
Reply to author
Forward
0 new messages