programs crash when run through rosetta
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=bhlHcEyKxuY+uv40fljGCoCMbnu6qskqrXnTWqwN6D6myaI9niZ3WZj9iLwL1vGWwmwiUeMqaFOfzFCO/cg8CYI/CI4pwdyiJP4AANGS9CbiANmD9uCt+Wol3ZPbkGAkkj5H9vYgphefhAK6EqxvTcM/g+9mblADLC5a8Mtfl8g=; Hi All, I'm not a exactly sure where a good place to post this problem is, but I need to start somewhere. As you read the problem below if you know of more appropriate places to seek advice please let me know. Here's my issue. I'm trying to port a system of programs to work on the intel mac, unfortunately a number of them are crashing. I was able to simplify the situation and I think localize the leading issue. The problem comes about when I write a program which links in at least two libraries. The program does nothing but use cout to display two messages. The first library contains one function which displays a simple predefined message (ie cout << "Hello World";). The second library is an xml parser library called xerces. When xerces is not linked in the program runs fine on the intel mac, when it is linked in I get a bus error in cout statement found in the first library. I was wondering if any one had any ideas what could be causing this. I built the program on OSX 10.2.8 using g++ 3.1. The only flags I use are -g (when debugging), and -flat_namespace. I've tried using some of the symbols found the xerces library in the program in hope to ensure a strong link (when I do this the flat_namespace switch becomes necessary), but the bus error still occurs. There is no problem if I remove the first library and run cout message in the application itself. I also have no problem running any of the xerce tests on the intel mac through rosetta. I found that I do NOT have a problem using g++ 4.0 on OSX 10.4. But for now I've been tasked to getting this working with the earlier version. Has anyone run across something like this before. My only thought is it might have to do with xerces execption handling?? At least that was the only thing on the rosetta website seemed remotely fit. Thanks in advance. Any help would be great. -joe __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Joe Miller