From: SourceForge.net <no...@so...> - 2006-10-12 23:26:27
|
Bugs item #1576280, was opened at 2006-10-12 23:26 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=416920&aid=1576280&group_id=36177 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: cpptasks Group: None Status: Open Resolution: None Priority: 5 Submitted By: Derek Baum (db82407) Assigned to: Curt Arnold (carnold) Summary: OSX shared link uses wrong shared-lib suffix Initial Comment: On an Intel MacBook Pro, <cc name="gcc" outtype="shared" outfile="log4cxx" ...> </cc> results in: [cc] g++ -g -prebind -dynamiclib -o liblog4cxx.so ... when it should be -o liblog4cxx.dylib I have traced this down to GccProcessor.getMachine() returning "nomachine" instead of the output of "gcc -dumpmachine", which on my MBP is "i686-apple-darwin8". This in turn is because CaptureStreamHandler.run() is getting IOException: Bad file descriptor when trying to read the output of the command, which appears to be because getOutput() is attempting to read the stream after it has been closed. I attach a simple patch that solves the problem - it calls the original getOutput() from stop() and adds a new getOutput() which returns this value. Thanks, Derek ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=416920&aid=1576280&group_id=36177 |
From: SourceForge.net <no...@so...> - 2006-10-13 00:28:17
|
Bugs item #1576280, was opened at 2006-10-12 23:26 Message generated for change (Comment added) made by db82407 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=416920&aid=1576280&group_id=36177 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: cpptasks Group: None Status: Open Resolution: None Priority: 5 Submitted By: Derek Baum (db82407) Assigned to: Curt Arnold (carnold) Summary: OSX shared link uses wrong shared-lib suffix Initial Comment: On an Intel MacBook Pro, <cc name="gcc" outtype="shared" outfile="log4cxx" ...> </cc> results in: [cc] g++ -g -prebind -dynamiclib -o liblog4cxx.so ... when it should be -o liblog4cxx.dylib I have traced this down to GccProcessor.getMachine() returning "nomachine" instead of the output of "gcc -dumpmachine", which on my MBP is "i686-apple-darwin8". This in turn is because CaptureStreamHandler.run() is getting IOException: Bad file descriptor when trying to read the output of the command, which appears to be because getOutput() is attempting to read the stream after it has been closed. I attach a simple patch that solves the problem - it calls the original getOutput() from stop() and adds a new getOutput() which returns this value. Thanks, Derek ---------------------------------------------------------------------- >Comment By: Derek Baum (db82407) Date: 2006-10-13 00:28 Message: Logged In: YES user_id=940790 Alternatively, I've just noticed that GccLinker uses AbstractProcessor.isDarwin() - which simply tests the os.name system property. So GppLinker could use isDarwin() rather than GccProcessor.getMachine(). Derek ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=416920&aid=1576280&group_id=36177 |