Hey again monks...

I've succesfully created a perl module, using perlxs that calls functions from a C lib, and it is working flawlessly on my machine with perl 5.8.0 and libc6 2.3.2.

However, when I move the library to one of the development machines and recompile it, it still runs, however I get wierd file access errors.

The C lib creates a log file successfully and writes to it. But then when the C lib tries to create some tmp files, it dies with an error of "Could not create file"

doing an strace gives the following :

open("/tmp/qas/qa000001.tmp", O_RDWR) = -1 ENOENT (No such file or dir +ectory) open("/tmp/qas/qa000001.tmp", O_RDWR|O_CREAT|O_TRUNC, 0664) = 5 close(5) = 0 rmdir("/tmp/qas/qa000001.tmp") = -1 ENOTDIR (Not a directory) unlink("/tmp/qas/qa000001.tmp") = 0

Which I take to mean it created the file successfuly, then deleted it for some reason.

The /tmp/qas directory is writable by the user the perl script is run as.

The only things that I can see that have changed (relevant) are the perl version and the libc6 version.

Does anyone have any ideas that will stop me banging my head against a wall?

In reply to perlxs and 5.6.1 by mitchm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.