On an Intel MacBook Pro,
[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.
Log in to post a comment.