D
D
dlinyj2014-06-18 17:41:02
linux
dlinyj, 2014-06-18 17:41:02

How to make your programs compatible with older versions of linux?

Colleagues, faced here with such here task. In our office, we have to test processors compatible with 486. There is a very ancient Debian 2.6.31 there. I have a set of programs developed that works great on new systems, but here I ran into a bunch of rake.
The problem is complicated by the fact that there is no Internet, not even a network. The system has been drastically cut. Installing something is becoming a very difficult task. As a result, it remains only to add everything yourself. In fact, I can transfer files from a flash drive with my hands.
For example, there is a USB testing program that works with libusb. Of course, she needs a bunch of libraries. I took the path of least resistance, and stupidly rewrote everything there, and of course I got the following sad result:
./usbtest: /lib/libc.so.6: version `GLIBC_2.8' not found (required by /lib/libusb-1.0.so.0)
./usbtest: /lib/libc.so.6: version ` GLIBC_2.17' not found (required by /lib/libusb-1.0.so.0)
./usbtest: /lib/libc.so.6: version `GLIBC_2.8' not found (required by /lib/libudev.so .1)

./usbtest: /lib/libc.so.6: version ` GLIBC_2.17 ' not found (required by /lib/libudev.so.1) Question: How to transfer your programs and libraries with the least bloodshed, achieve compatibility with libc libraries, etc.? I understand that you can rebuild all libraries, etc. All the programs that I could compile gcc-4.4, this partly saved the father of Russian democracy. But with all sorts of specific libraries, how to be - I'll never know.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Selivanov, 2014-06-18
@selivanov_pavel

If use-case allows, for each such program - chroot with arbitrarily ancient libraries.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question