fix check for USE_UPNP in makefile.unix #364

pull floe wants to merge 1 commits into bitcoin:master from floe:master changing 1 files +1 −1
  1. floe commented at 4:44 PM on June 29, 2011: none

    When miniupnpc isn't installed, building fails due to wrong check in makefile.unix.

  2. fix check for USE_UPNP in makefile.unix ad9b600886
  3. gavinandresen commented at 5:00 PM on June 29, 2011: contributor

    Talk to BlueMatt about this. I think it is supposed to be the way it is.

  4. TheBlueMatt commented at 6:38 PM on June 29, 2011: member

    As is documented in doc/build-unix.txt:

    Requires miniupnpc for UPnP port mapping. It can be downloaded from http://miniupnp.tuxfamily.org/files/. UPnP support is compiled in and turned off by default. Set USE_UPNP to a different value to control this: USE_UPNP= no UPnP support, miniupnp not required; USE_UPNP=0 (the default) UPnP support turned off by default at runtime; USE_UPNP=1 UPnP support turned on by default at runtime.

  5. floe commented at 6:49 PM on June 29, 2011: none

    Not quite correct: the original check in makefile.Unix:

    ifdef USE_UPNP

    is always true, even if USE_UPNP is zero. I doubt that was the original intention, hence the patch.

    Florian

    TheBlueMatt reply@reply.github.com schrieb:

    As is documented in doc/build-unix.txt:

    Requires miniupnpc for UPnP port mapping. It can be downloaded from http://miniupnp.tuxfamily.org/files/. UPnP support is compiled in and turned off by default. Set USE_UPNP to a different value to control this: USE_UPNP= no UPnP support, miniupnp not required; USE_UPNP=0 (the default) UPnP support turned off by default at runtime; USE_UPNP=1 UPnP support turned on by default at runtime.

    Reply to this email directly or view it on GitHub: #364 (comment)

    Sent from some flat thingy without a proper keyboard.

  6. TheBlueMatt commented at 6:52 PM on June 29, 2011: member

    No, that is the intention, but USE_UPNP is not always defined. If you build using make -f makefile.unix USE_UPNP= ie nothing after the =, it will undefine USE_UPNP and you are fine. Please look through old bugs and two or three identical pull requests to this one.

  7. floe commented at 6:53 PM on June 29, 2011: none

    Argh, I just got it. Sorry for the noise.

    Florian

    TheBlueMatt reply@reply.github.com schrieb:

    As is documented in doc/build-unix.txt:

    Requires miniupnpc for UPnP port mapping. It can be downloaded from http://miniupnp.tuxfamily.org/files/. UPnP support is compiled in and turned off by default. Set USE_UPNP to a different value to control this: USE_UPNP= no UPnP support, miniupnp not required; USE_UPNP=0 (the default) UPnP support turned off by default at runtime; USE_UPNP=1 UPnP support turned on by default at runtime.

    Reply to this email directly or view it on GitHub: #364 (comment)

    Sent from some flat thingy without a proper keyboard.

  8. tcatm closed this on Jun 29, 2011

  9. zathras-crypto referenced this in commit eb4ab7a5f6 on May 3, 2016
  10. laanwj referenced this in commit 0ffb3bd95f on Aug 4, 2016
  11. laanwj referenced this in commit b2135359b3 on Aug 16, 2016
  12. MarcoFalke referenced this in commit 64dfdde0aa on Dec 13, 2016
  13. deadalnix referenced this in commit e4570184ff on Jan 19, 2017
  14. ptschip referenced this in commit 2a8e233180 on Apr 5, 2017
  15. lateminer referenced this in commit 638668132c on Oct 16, 2019
  16. cryptapus referenced this in commit e9b2891a8c on May 3, 2021
  17. rajarshimaitra referenced this in commit f6a63e3c90 on Aug 5, 2021
  18. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 09:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me