Opened 3 years ago

Closed 3 years ago

#20123 closed defect (moved_to_github)

python ctypes.util.find_library does not work on MIPS

Reported by: kenny@… Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:


python's ctypes.util.find_library doesn't work because of some assumptions that don't hold on OpenWRT.

In /usr/lib/python2.7/ctypes/ the code for find_library tries to use ldconfig first and then gcc. The ldconfig using function is _findSoname_ldconfig which only has configuration information for x86, PPC, SPARC, s390x, and ia64, but no ARM or MIPS configuation. Additinally it only looks for libc6 instead of the libc0 that OpenWRT reports.

The python package should probably depend on the ldconfig package and the _findSoname_ldconfig should be modified to have a MIPS (and possibly ARM) entry.

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by kenny@…

Additionally the gcc path does find the library, but the _get_soname function doesn't work because objdump -p -j .dynamic /usr/lib/ always just says "This file has no sections."

comment:2 Changed 3 years ago by nbd

  • Resolution set to moved_to_github
  • Status changed from new to closed

python is maintained here:

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.