Skip to content

Support renamed GETDNS_RCODE_BADCOOKIE#39

Merged
joelpurra merged 1 commit intogetdnsapi:developfrom
joelpurra:feature/bad-cookie
Jun 9, 2021
Merged

Support renamed GETDNS_RCODE_BADCOOKIE#39
joelpurra merged 1 commit intogetdnsapi:developfrom
joelpurra:feature/bad-cookie

Conversation

@joelpurra
Copy link
Copy Markdown
Collaborator

  • Workaround for breaking change in upstream getdns versions after getdns v1.6.0; GETDNS_RCODE_COOKIE constant was renamed to GETDNS_RCODE_BADCOOKIE.
  • The renamed constant has not yet been included in an upstream getdns released, so this is a preemptive measure.

Fixes #38.

See


To test using latest getdns on Ubuntu 21.04.

sudo apt install libunbound-dev libidn2-dev libssl-dev libevent-dev libuv1-dev libev-dev check

git clone 'git@github.com:getdnsapi/getdns.git'

cd getdns

mkdir build

cd build

cmake ..

make

Rebuild getdns-node targeting the newly built version (without installing it).

LIBRARY_PATH="/the/path/to/your/getdns/build" CPLUS_INCLUDE_PATH="/the/path/to/your/getdns/build" npm run --silent rebuild

Current getdns commit on the develop branch is 291e0018817269b72c7cbd6c3e531acba95f563f.

- Workaround for breaking change in upstream getdns versions after `getdns` v1.6.0; `GETDNS_RCODE_COOKIE` constant was renamed to `GETDNS_RCODE_BADCOOKIE`.
- The renamed constant has not yet been included in an upstream `getdns` released, so this is a preemptive measure.

Fixes getdnsapi#38.

See

- getdnsapi#38
- https://github.com/getdnsapi/getdns
- getdnsapi/getdns#471
- getdnsapi/getdns@5c79e2c

---

To test using latest `getdns` on Ubuntu 21.04.

```shell
sudo apt install libunbound-dev libidn2-dev libssl-dev libevent-dev libuv1-dev libev-dev check

git clone 'git@github.com:getdnsapi/getdns.git'

cd getdns

mkdir build

cd build

cmake ..

make
```

Rebuild `getdns-node` targeting the newly built version (without installing it).

```shell
LIBRARY_PATH="/the/path/to/your/getdns/build" CPLUS_INCLUDE_PATH="/the/path/to/your/getdns/build" npm run --silent rebuild
```

Current `getdns` commit on the `develop` branch is `291e0018817269b72c7cbd6c3e531acba95f563f`.

- https://github.com/getdnsapi/getdns/tree/develop
- getdnsapi/getdns@291e001
@joelpurra joelpurra merged commit ffdd03a into getdnsapi:develop Jun 9, 2021
@joelpurra joelpurra deleted the feature/bad-cookie branch June 9, 2021 19:48
@joelpurra
Copy link
Copy Markdown
Collaborator Author

Merged and released the fix as node-getdns v4.1.0, as getdns v1.7.0 was released a few days ago.

npm install getdns@latest

@joelpurra joelpurra mentioned this pull request Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error installing - ../src/GNConstants.cpp:239:32: error: ‘GETDNS_RCODE_COOKIE’

1 participant