This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Compilation problem
- To: gcc at gcc dot gnu dot org
- Subject: Compilation problem
- From: "Bogus User" <bogus_user at hotmail dot com>
- Date: Fri, 05 Nov 1999 16:39:55 PST
Hi,
I have a project that has two parts, a server and a client, that we're
trying to port to Linux. We need to compile the server on a newer version
of Linux, so we're using RedHat 6.0. However, we want to compile the client
so that it runs on older versions of Linux as well. The odd twist in all of
this is that we need to be able to compile for both versions of Linux from
the same source tree, on the same computer, without dual-booting.
The decision was made to compile on RedHat 6.0, so that's what we're using
for the build machine. What I tried to do so far is to copy the compiler
executables from a RedHat 5.2 machine (gcc-2.7) and use the --nostdinc and
--nostdlib options. I then copied over the necessary header and library
files. It did finally compile using that setup, but when I try to run the
executables on a RedHat 5.2 machine it seg faults on startup. My guess is
that it's still linking against something on the RedHat 6.0 machine that's
causing the problem.
I did notice that even though I used the --nostdlib options, if I used
-lpthread it would still link ok. I don't have libpthread in any of the
directories that I list during compilation using -L, so I guess that it is
still picking up some system stuff from the build machine. I tried copying
libpthread from the RedHat 5.2 machine and putting it in one of the listed
paths, but it didn't fix the problem.
Has anybody tried something similar to this and gotten it to work?
Thanks,
Rich
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com