This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libstdc++ compatibility issues with various Linux distros


I am trying to build a single version of my C++ code that will run on 
various Linux distro's, including RedHat, SuSE, etc.   I am building the 
code using the 2.95.3 version of gcc which was configured and built as an 
Intel <-> Intel cross-compiler (Note: we did this so that our build 
environment would be independent of the Linux distro that we actually 
build on).

I've run into what looks like a compatibility problem with the libstdc++ 
library.   My code that's built with gcc 2.95.3 will not run properly on 
RedHat 7.2.   Some programs run into memory faults inside catch blocks, 
and the stack trace seems to indicate some problem inside libstdc++, 
because the memory fault happens inside libstdc++ functions before any of 
my code is executed inside the catch black.     My code runs fine on SuSE. 
  Correct me if I'm wrong, but I think that the libstdc++ which ships with 
RedHat 7.2 is built with gcc 2.96, right?    I wonder if that somehow 
affects the compatibility of the library with code built with gcc 2.95.3.  
Oh BTW...  if I copy the libstdc++ from my gcc 2.95.3 install to the 
RedHat 7.2 machine, everything runs just fine.

Somewhat related to this, I have some questions about the GPL and 
libstdc++ which I was not able to answer after reading the info located at 
http://gcc.gnu.org/onlinedocs/libstdc++/17_intro/license.html .
1) Is it "legal" (from a GPL sense) for me to deliver (along with my 
software) a version of the libstdc++ shared library built with gcc 2.95.3 
which works on all distro's (or at least deliver it on RedHat where I'm 
having the problems).

2) Is it "legal" for me to deliver software which is linked with the 
static version of libstdc++?

If anyone has any answers to these questions, or can point me to other 
information sources, I would appreciate it.

Thanks in advance,

Phil Adams
IBM Austin, TX
phil_adams@us.ibm.com
(512) 838-6702 (tie 678)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]