-
Notifications
You must be signed in to change notification settings - Fork 38
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
fossil-2.22-1: error: use of undeclared identifiers 'C_IN' and 'T_MX' #1076
Comments
#if (HAVE_DN_EXPAND || HAVE___NS_NAME_UNCOMPRESS || HAVE_NS_NAME_UNCOMPRESS) && \
(HAVE_NS_PARSERR || HAVE___NS_PARSERR) && !defined(FOSSIL_OMIT_DNS)
# include <sys/types.h>
# include <netinet/in.h>
# if defined(HAVE_BIND_RESOLV_H)
# include <bind/resolv.h>
# include <bind/arpa/nameser_compat.h>
# else
# include <arpa/nameser.h>
# include <resolv.h>
# endif
# if defined(HAVENS_NAME_UNCOMPRESS) && !defined(dn_expand)
# define dn_expand ns_name_uncompress
# endif
# if defined(HAVE__NS_NAME_UNCOMPRESS) && !defined(dn_expand)
# define dn_expand __ns_name_uncompress
# endif
# define FOSSIL_UNIX_STYLE_DNS 1
#endif Looks like one of those HAVE_* are not being defined as expected and so we never enter that part of the code. Can you check config.log in the build directory to see if any of them pop up with errors? I wonder if they're failing during ./configure for an implicit declaration error. |
Herre you go: config.log. It doesn't look like your standard autoconf-created
Yeah, that would make sense, but I searched, and "implicit" turned up zero hits in the log, so... I dunno... |
spoiler: this built for me on 13.5 with Xcode 14.3 So in #ifdef BIND_8_COMPAT
#include <arpa/nameser_compat.h>
#endif And in But if I add some diagnostics to smtp.c: #include "config.h"
#include "smtp.h"
#include <assert.h>
+#if defined(BIND_8_COMPAT)
+# error "have bind 8"
+# else
+# error "no bind 8"
+#endif
#if (HAVE_DN_EXPAND || HAVE___NS_NAME_UNCOMPRESS || HAVE_NS_NAME_UNCOMPRESS) && \
(HAVE_NS_PARSERR || HAVE___NS_PARSERR) && !defined(FOSSIL_OMIT_DNS)
# include <sys/types.h> The code goes through the "no bind 8" branch. |
Looking closer at that large #if (HAVE_DN...) conditional, I wonder one of them is not being found the same.
|
I have HAVE_DN_EXPAND from (1), but none from (2), and (3). These are defined in autoconfig.h.
So that explains the build difference I think. |
@cooljeanius can you post the part from your configure output that matches the same checks as my previous comment? |
Hm, that's strange, I thought I had, but the comment where I did so seems to have disappeared now? Oh well, let me do it again... |
|
OS X 10.13 (Xcode 10.1):
but the compiling does succeed. But then if I install libbind6-dev:
and the build fails with the undeclared tokens. So detection of an unexpected fink package gives build-fail, and |
Unrelated (probably:) to this bug, but to avoid some red herrings, I pushed a tweak to this package to remove some bogus flags ( |
Confirming that doing |
...which I guess means that this depends on #1092 (which might actually mean a build conflict wouldn't be necessary, if it were fixed?) |
I'm on Big Sur with Xcode 13. cc @danielj7
The text was updated successfully, but these errors were encountered: