Coder Social home page Coder Social logo

handshake-org / libhns Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 5.0 5.12 MB

C library for resolving handshake names (fork of c-ares)

License: Other

CMake 0.97% Makefile 0.35% M4 7.86% Roff 3.08% C 31.84% Shell 0.61% Batchfile 0.01% Awk 0.03% Perl 0.08% C++ 54.53% Assembly 0.63%

libhns's People

Contributors

addaleax avatar agwa avatar bagder avatar bnoordhuis avatar chjj avatar chris-araman avatar christianammer avatar daviddrysdale avatar dfandrich avatar dimbleby avatar gjasny avatar gknauf avatar greearb avatar gvanem avatar indutny avatar jhrozek avatar markokr avatar mik30s avatar mikecrowe avatar nickalcock avatar nicolasnoble avatar ppentchev avatar qbit avatar sesse avatar skarlsson avatar thecount avatar user-none avatar vszakats avatar wahern avatar yangtse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libhns's Issues

HAVE_ARPA_NAMESER_COMPAT_H on Debian 9.5 64-bit

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.