Opened 6 years ago

Closed 5 years ago

#31210 closed defect (fixed)

noweb 2.11b fails to build on OS X 10.7 Lion

Reported by: brad.larsen@… Owned by: michipili (Michael Grünewald)
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 (9)

comment:1 in reply to: ↑ description Changed 6 years 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 6 years ago by ryandesign (Ryan Schmidt)

  • Cc brad.larsen@… removed
  • Keywords lion added
  • Owner changed from macports-tickets@… to michael.grunewald@…
  • Priority changed from High to Normal

comment:3 Changed 6 years 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: Changed 6 years ago by AlonzoQuixote@…

  • Cc AlonzoQuixote@… added

Cc Me!

comment:5 in reply to: ↑ 4 Changed 6 years 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 6 years ago by michipili (Michael Grünewald)

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 6 years 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 6 years ago by Martin.Buchmann@…

  • Cc Martin.Buchmann@… added

Cc Me!

comment:9 Changed 5 years ago by jmroot (Joshua Root)

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