Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HAVE_ARPA_NAMESER_COMPAT_H on Debian 9.5 64-bit #2

Open
rheaplex opened this issue Oct 4, 2018 · 1 comment
Open

HAVE_ARPA_NAMESER_COMPAT_H on Debian 9.5 64-bit #2

rheaplex opened this issue Oct 4, 2018 · 1 comment

Comments

@rheaplex
Copy link

rheaplex commented Oct 4, 2018

Clone and build:

git clone https://github.com/handshake-org/libhns
cd libhns
./buildconf
./configure
make

Output of interest:

  CC       hdig-hdig.o
hdig.c:150:17: error: ‘T_TLSA’ undeclared here (not in a function)
   { "TLSA",     T_TLSA },
                 ^~~~~~
hdig.c:151:17: error: ‘T_SMIMEA’ undeclared here (not in a function)
   { "SMIMEA",   T_SMIMEA },
                 ^~~~~~~~
hdig.c:152:19: error: ‘T_OPENPGPKEY’ undeclared here (not in a function)
   { "OPENPGPKEY", T_OPENPGPKEY },
                   ^~~~~~~~~~~~
Makefile:1739: recipe for target 'hdig-hdig.o' failed

These values are defined in nameser.h, and conditionalized on constants in hns_config.h.

Edit hns_config.h so that these constants are not defined:

/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */
//#define HAVE_ARPA_NAMESER_COMPAT_H 1

/* Define to 1 if you have the <arpa/nameser.h> header file. */
//#define HAVE_ARPA_NAMESER_H 1

The code now compiles OK.

But arpa/nameser.h and arpa/nameser_compat.h exists:

$ ls /usr/include/arpa
ftp.h  inet.h  nameser_compat.h  nameser.h  telnet.h  tftp.h

The T_ types used in htdig.c are not defined in them, though.

@james-stevens
Copy link

james-stevens commented Jun 26, 2020

Same compiler errors on Slackware 14.2, but I do have those defined enabled

/* Define to 1 if you have the <arpa/nameser_compat.h> header file. */
#define HAVE_ARPA_NAMESER_COMPAT_H 1

/* Define to 1 if you have the <arpa/nameser.h> header file. */
#define HAVE_ARPA_NAMESER_H 1

It may be that whatever libs I have are too old, Slackware can be like that

T_DNSKEY is defined, but not in arpa/nameser.h, so I'll need to do some more digging

As they are data types it can't handle, I'm just going to remove them for now

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

No branches or pull requests

2 participants