I am writing a script that is to run a unix make for several different applications, and should parse the result into an easily read report file.
However, when capturing the output I get a 'Segmentation fault' as soon as the make is to save a derived object. The compilations seems to go on fine, but after "Will store derived object xyz.o" I get the fault and the make exits (of course).
I can otherwise (not capturing output) run the make successfully through a script, so the issue is not the ability to save files on the network. Neither is the problem how I retrieve/store the output. In fact, I've tried three different solutions (STDOUT to filehandle via typeglob, fdopen in IO::Handle and (currently, thx grinder) IPC::Open3).
My limited Perl and 'nix experience makes it a bit hard to see the problem. Could it be a buffer problem (need to flush STDOUT before child writes the file?), or anything else??
Appreciate any help!
/
Stormr