Ticket #31210 (closed defect: fixed)
noweb 2.11b fails to build on OS X 10.7 Lion
| Reported by: | brad.larsen@… | Owned by: | michael.grunewald@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.3 |
| Keywords: | lion | Cc: | AlonzoQuixote@…, Martin.Buchmann@… |
| Port: | noweb |
Description
It looks like OS X 10.7 added the getline function to stdio.h, which was not present previously. This causes the noweb package to fail to compile, as it defines its own getline function that is included simultaneously with stdio.h.
This is an issue with the noweb source code; the raw source tarball downloaded from the noweb web site also fails to compile.
Change History
comment:1 in reply to: ↑ description Changed 21 months ago by brad.larsen@…
comment:2 Changed 21 months ago by ryandesign@…
- Owner changed from macports-tickets@… to michael.grunewald@…
- Priority changed from High to Normal
- Keywords lion added
- Cc brad.larsen@… removed
comment:3 Changed 21 months ago by brad.larsen@…
Patching the Makefile in the src directory so that CFLAGS=-U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=1 seems to get the code compiling again.
I would attach a patch of the patch-Makefile.diff file from the port, but I'm not sure how to make a correct patch-of-a-patch.
comment:5 in reply to: ↑ 4 Changed 19 months ago by AlonzoQuixote@…
Replying to AlonzoQuixote@…:
Cc Me!
The CFLAGS=-U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=1 patch works. Thanks.
comment:6 Changed 19 months ago by michael.grunewald@…
Thank you for the patch and the test. I unfortunately do not own OS X Lion, so I will blindly trust you! :-)


Replying to brad.larsen@…:
I have also reported this bug to the noweb maintainer.