This is the mail archive of the
mailing list for the GCC project.
Re: dynamic library version crashes but static version works
- From: James E Wilson <wilson at specifixinc dot com>
- To: Ted Sung <teds at intex dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 19 Jan 2005 17:36:02 -0800
- Subject: Re: dynamic library version crashes but static version works
- References: <188.8.131.52.2.20050118163930.03562de0@mailserv>
Ted Sung wrote:
I build a dynamic library with gcc 3.2 (glibc 2.3.2-4.80.8) running
Red Hat Linux 8.0 3.2-7).
I copy this library over to another machine running Red Hat Enterprise
Linux ES release 3 (Taroon)
My program crashes in a very strange place in my library code.
This is almost certainly not a gcc problem. There probably isn't much
we can do to help, without duplicating your situation, and it wouldn't
be worthwhile for us to try.
In general, you shouldn't expect any portability of compiled libraries
between two different linux systems. RHL8 and RHES3 are rather
different linux systems, even though they have similar gcc/glibc
versions, and you should not expect compiled libraries to be portable
between them. Generally, statically linked code can be moved between
similar linux systems though, as you have already found.
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com