Skip to content

Doesn't build anmore under Mac OS X #7

@SirVer

Description

@SirVer

This library would be immensely useful, but it seems that it has bit rotted a bit. Is this still in development?

I get this trying the crates.io version:

error: macros that expand to items must either be surrounded with braces or followed by a semicolon
  --> /Users/sirver/.cargo/registry/src/github.com-1ecc6299db9ec823/pidfile-0.1.0/src/file_posix.rs:47:1
   |
47 | )
   | ^

error: expected one of `!`, `(`, `+`, `::`, `;`, `<`, or `]`, found `,`
   --> /Users/sirver/.cargo/registry/src/github.com-1ecc6299db9ec823/pidfile-0.1.0/src/file_posix.rs:111:25
    |
111 |         let mut buf: [u8, ..20] = unsafe { mem::zeroed() };
    |                         ^

error: macro undefined: 'debug!'
  --> /Users/sirver/.cargo/registry/src/github.com-1ecc6299db9ec823/pidfile-0.1.0/src/file_posix.rs:29:13
   |
29 |             debug!("ffi; expr={}; ret={}", stringify!($expr), ret);
   |             ^^^^^
...
70 |         let fd = check!(libc::open(path.to_c_str().as_ptr(), flags, mode as mode_t));
   |                  ------------------------------------------------------------------- in this macro invocation

error: macro undefined: 'debug!'
  --> /Users/sirver/.cargo/registry/src/github.com-1ecc6299db9ec823/pidfile-0.1.0/src/file_posix.rs:29:13
   |
29 |             debug!("ffi; expr={}; ret={}", stringify!($expr), ret);
   |             ^^^^^
...
73 |         check!(libc::fcntl(fd, F_SETFD, FD_CLOEXEC));
   |         --------------------------------------------- in this macro invocation

error: macro undefined: 'debug!'
  --> /Users/sirver/.cargo/registry/src/github.com-1ecc6299db9ec823/pidfile-0.1.0/src/file_posix.rs:29:13
   |
29 |             debug!("ffi; expr={}; ret={}", stringify!($expr), ret);
   |             ^^^^^
...
79 |         check!(libc::ftruncate(self.fd, 0));
   |         ------------------------------------ in this macro invocation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions