On Wed, 10 Sep 2008, James Keenan via RT wrote:

> On Wed Sep 10 09:30:37 2008, doughera wrote:
> > 
> > That's another easy one.  The test assumes that all platforms have -lrt 
> > and that all platforms have to link with it for this test.  Your system 
> > clearly doesn't have -lrt, so the link fails.  If you just delete the
> line 
> > that adds in -lrt, I'll bet the test succeeds.
> > 
> > Generally, Configure shouldn't be unconditionally adding libraries.  A 
> > better idiom is probably to try without, and then try with only if 
> > necessary.  Something like this:
> > 
> 
> The principle sounds good.  I applied the patch and, as predicted, it
> DTRT on Linux, as this verbose output for auto::aio on Linux demonstrates.
> 
> Unfortunately, it didn't cause AIO to be located on Darwin -- even
> though it changed the error message.  The handles to the error files
> were opened, but the .out, .cco and .ldo files were all empty.

It could be that aio just doesn't work on your system -- or at least aio 
as implemented by the author of this test.

If you care to diagnose it further, you could try running the test_26632 
executable directly from the command line and see what the output is.  Or 
you could alter config/auto/aio.pm to output the errors in this case. 
However, I'm unsure if it's worth it.  You'll might learn a little more 
about why it's failing, but you may not be able to do anything to fix it.

> > $ ls -ltr test_*
> -rw-r--r--   1 jimk  jimk   3424 Sep 10 19:58 test_26632.o
> -rw-r--r--   1 jimk  jimk      0 Sep 10 19:58 test_26632.ldo
> -rw-r--r--   1 jimk  jimk      0 Sep 10 19:58 test_26632.cco
> -rw-r--r--   1 jimk  jimk   1330 Sep 10 19:58 test_26632.c
> -rw-r--r--   1 jimk  jimk      0 Sep 10 19:58 test_26632.out
> -rwxr-xr-x   1 jimk  jimk  18148 Sep 10 19:58 test_26632

-- 
    Andy Dougherty              [EMAIL PROTECTED]

Reply via email to