1 |
Hi! |
2 |
|
3 |
I have some program which I am using in a thin client which has Gentoo |
4 |
stage 3 root fs (kernel 2.6.39.4), |
5 |
lets call it system A. |
6 |
I've also compiled that program chroot-ed in this stage 3 fs from my |
7 |
personal computer. |
8 |
|
9 |
I have an other thin clients which have older system (B) on it which is |
10 |
older linux kernel 2.6.16.27. |
11 |
Library version which are needed are of course different and for that |
12 |
reason my program |
13 |
can not be run in this sistem. |
14 |
|
15 |
System A: |
16 |
Linux redondo 2.6.39.4 #18 Mon Mar 19 13:14:32 CET 2012 i586 i586 i386 |
17 |
GNU/Linux |
18 |
/lib/libc-2.12.2.so |
19 |
gcc version 4.0.3 |
20 |
|
21 |
System B: |
22 |
Linux carlos 2.6.16.27 #1 Sun Mar 25 11:09:40 CEST 2007 i586 i586 i386 |
23 |
GNU/Linux |
24 |
/lib/libc-2.3.6.so |
25 |
gcc version 4.0.3 |
26 |
|
27 |
Shared libraries that my binary uses are (in system A): |
28 |
linux-gate.so.1 => (0xffffe000) |
29 |
libpthread.so.0 => /lib/libpthread.so.0 (0xf76d6000) |
30 |
libuuid.so.1 => /lib/libuuid.so.1 (0xf76d1000) |
31 |
libstdc++.so.6 => /usr/lib/gcc/i486-pc-linux-gnu/4.4.5/libstdc++.so.6 |
32 |
(0xf75da000) |
33 |
libm.so.6 => /lib/libm.so.6 (0xf75b2000) |
34 |
libc.so.6 => /lib/libc.so.6 (0xf7468000) |
35 |
/lib/ld-linux.so.2 (0xf76f3000) |
36 |
libgcc_s.so.1 => /usr/lib/gcc/i486-pc-linux-gnu/4.4.5/libgcc_s.so.1 |
37 |
(0xf7449000) |
38 |
|
39 |
If i try to compile my program using '-static' directive, I still have a |
40 |
problem with 4 functions: |
41 |
-initgroups, |
42 |
-getpwnam, |
43 |
-getaddrinfo, |
44 |
-gethostbyname. |
45 |
|
46 |
If I got that right, they use functions which are located in NSS shared |
47 |
libraries. |
48 |
|
49 |
I am looking for a way of compiling my program so that I can run it in |
50 |
system B. |
51 |
I have libraries available from system B and that is all that I have. |
52 |
|
53 |
I need help on getting this done. |
54 |
I guess gcc versions are the same and as well libgcc_s.so.1 shared library. |
55 |
|
56 |
My questions are: |
57 |
Can I pull those libraries from system B and use it in compilatin process? |
58 |
Would that work? |
59 |
I would still need to get include source files of that version, right? |
60 |
Is there some archive site where I can find so old version of linux kernel |
61 |
source? |
62 |
One thing that pops in to my mind is also trying to find gentoo stage 3 |
63 |
tarball of the kernel version 2.6.16.27 |
64 |
and compile the program there...I tried to search that but no luck in |
65 |
that... |
66 |
|
67 |
Any help would be welcomed! |