New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #31210 (closed defect: fixed)

Opened 21 months ago

Last modified 12 months ago

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@…

Replying to brad.larsen@…:

This is an issue with the noweb source code; the raw source tarball downloaded from the noweb web site also fails to compile.

I have also reported this bug to the noweb maintainer.

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:4 follow-up: ↓ 5 Changed 19 months ago by AlonzoQuixote@…

  • Cc AlonzoQuixote@… added

Cc Me!

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! :-)

comment:7 Changed 16 months ago by gary.verhaegen@…

I can confirm that on my machine, running Lion too, the port does not compile, but adding the CFLAGS in noweb-2.11b/src/Makefile on line 6 as suggested here does fix it.

comment:8 Changed 14 months ago by Martin.Buchmann@…

  • Cc Martin.Buchmann@… added

Cc Me!

comment:9 Changed 12 months ago by jmr@…

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.