From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4C6A893E.9000907@domain.hid> Date: Tue, 17 Aug 2010 15:06:06 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <1282047938.5255.89.camel@domain.hid> <4C6A8194.80008@domain.hid> <1282048491.5255.92.camel@domain.hid> <4C6A8332.5050308@domain.hid> <1282049663.5255.99.camel@domain.hid> In-Reply-To: <1282049663.5255.99.camel@domain.hid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai-core] xenomai 2.5.3/native, kernel 2.6.31.8 and fork() List-Id: Xenomai life and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?S3J6eXN6dG9mIELFgmFzemtvd3NraQ==?= Cc: Xenomai core Krzysztof B=C5=82aszkowski wrote: > On Tue, 2010-08-17 at 14:40 +0200, Gilles Chanteperdrix wrote: >> No. As witnessed by the message: >> ./xeno-shmem-fork: relocation error: ./xeno-shmem-fork: symbol getpid,= >> version GLIBC_2.0 not defined in file libc.so.6 with link time referen= ce >=20 >=20 > have you seen that main process started ? and linker didn't complain > about wrong symbol version. This happened only in child process after > line 88, have you seen output from line 89 ? >=20 > furthermore you can find commented out line in makefile which compiles > userland without linking with xenomai libraries.=20 >=20 > this executable works as expected. As I said since we went from libc5 to libc6, all libcs have been backward ABI compatible. So, it makes perfect sense that the binary works= =2E Since you are calling getpid() after fork, it is normal that the error is not signalled before, symbols are only resolved at run-time, when they are use. > these libcs are same and i wonder whats wrong with you.=20 > How many times do i need to make you sure that these libcs are binary > same ? As long as you are comparing the wrong binaries. What I ask you to compare is libc.so.6 with the result of gcc -print-file-name=3Dlibc.so gcc being the exact compiler use for compilation of the test program. If these libraries are the same, then I will look at your test program, otherwise I will not waste more time on this issue. --=20 Gilles.