> Running Fedora 17 on a 64-bit Intel box, with > > erdos@dsm:examples$ uname -a > Linux erdos.dsm.fordham.edu 3.5.3-1.fc17.x86_64 #1 SMP Wed Aug 29 18:46:34 > UTC 2012 x86_64 x86_64 x86_64 GNU/Linux > erdos@dsm:examples$ rpm -q fltk fltk-devel > fltk-1.3.0-4.fc17.x86_64 > fltk-devel-1.3.0-4.fc17.x86_64 > > Trying to build the hello program out of hello.cxx: > > erdos@dsm:examples$ g++ -o hello hello.cxx -lfltk -lXext -lX11 -lm > erdos@dsm:examples$ hello > *** glibc detected *** hello: malloc(): memory corruption: > 0x0000000001bcb320 *** > *** glibc detected *** hello: malloc(): memory corruption: > 0x0000000001bcb320 *** > ^C > > What's strange is that on a different Fedora 17 machine: > > sobolev@dsm:examples$ uname -a > Linux sobolev.dsm.fordham.edu 3.5.3-1.fc17.x86_64 #1 SMP Wed Aug 29 > 18:46:34 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux > sobolev@dsm:examples$ rpm -q fltk fltk-devel > fltk-1.3.0-4.fc17.x86_64 > fltk-devel-1.3.0-4.fc17.x86_64 > sobolev@dsm:examples$ g++ -o hello hello.cxx -lfltk -lXext -lX11 -lm > sobolev@dsm:examples$ hello > ... runs successfully ... > sobolev@dsm:examples$ > > Both machines are using the same version of g++ > erdos@dsm:examples$ g++ --version > g++ (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5) > .... > sobolev@dsm:examples$ g++ --version > g++ (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5) > > Thoughts?
Can you check whether there is (or has ever been) also a version of fltk-1.1.x on the failing machine? If so, you need to (somehow) ensure that the include path picks up the headers for fltk-1.3 and *only* the headers for fltk-1.3... The headers for 1.1. and 1.3 are not "versioned" and are similar enough that the code can often still build "OK" with the wrong headers and prototypes, but then bork horribly at runtime. This *looks* a lot like what you are seeing, though I may well be wrong! SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

