[MacPorts] #44550: crystfel @0.5.3a: error: variable has incomplete type 'struct termios'
MacPorts
noreply at macports.org
Wed Aug 6 11:55:44 PDT 2014
#44550: crystfel @0.5.3a: error: variable has incomplete type 'struct termios'
---------------------------+-----------------------
Reporter: ryandesign@… | Owner: rkirian@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.1
Resolution: | Keywords:
Port: crystfel |
---------------------------+-----------------------
Comment (by rkirian@…):
I've attached a new port file and two patches. It would be great if you
could try each of the patches (only patch 1 works on my machine running OS
10.9.4; unfortunately, I don't have a machine running OS 10.7). Here is
some more info from the main developer of CrystFEL (Thomas White):
The termios stuff comes from `pty.h` on a GNU/Linux system and `util.h` on
a BSD-style one (like OSX). There's a check for which one to use in
`configure.ac`, but I guess it breaks on OSX 10.7. To debug this, we
need to know exactly which combination of headers and libraries to
use. Therefore, try replacing these lines in `libcrystfel/src/dirax.c`:
{{{
#if HAVE_FORKPTY_LINUX
#include <pty.h>
#elif HAVE_FORKPTY_BSD
#include <util.h>
#endif
}}}
to just this:
{{{
#include <pty.h>
}}}
and see if it works. Then try just this:
{{{
#include <util.h>
}}}
Additionally, it'd be useful to see the `config.h` file to see what
result the test actually gave.
--
Ticket URL: <https://trac.macports.org/ticket/44550#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list