[MacPorts] #42152: libbiosig: fails to build on snow leopard (Undefined symbols: _getline)
MacPorts
noreply at macports.org
Thu Jan 16 14:45:41 PST 2014
#42152: libbiosig: fails to build on snow leopard (Undefined symbols: _getline)
------------------------+---------------------------------------
Reporter: mojca@… | Owner: christsc@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: snowleopard leopard tiger
Port: libbiosig |
------------------------+---------------------------------------
Comment (by christsc@…):
Replying to [comment:14 mojca@…]:
> Before I commit anything: can you please explain me how the patch works?
>
> What does the following do?
> {{{
> COMMAND ${GAWK} -f annotatedECG.awk extern/11073-10102-AnnexB.txt >
"11073-10102-AnnexB.i"
> }}}
It generates some C definitions from a text description of IEEE Std
11073-10102-2012 (annotated ECG description) according to awk rules in
`annotatedECG.awk`. This has already been added to the Linux `Makefile`
(l.448) but hasn't made into cmake in time for release 1.5.10. I've
committed it to the biosig repo so it will be included in release 1.5.11.
> and why is
> {{{
> #ifdef MACPORTS
> }}}
> needed? What does `#include <unistd.h>` do and where does that file come
from? `/usr/include/unistd.h` or from `/opt/local/sowhere/else`?
In Snow Leopard, `ssize_t` is defined in `/usr/include/unistd.h`. On
Linux, including `stdio.h` seems to be sufficient to get `ssize_t`. I've
committed this to the biosig repo as well so that this patch won't be
necessary in 1.5.11
>
> I can commit it nonetheless, but I would like to roughly understand what
I'm doing.
Fair enough.
--
Ticket URL: <https://trac.macports.org/ticket/42152#comment:16>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list