Mats Erik Andersson <[email protected]> ha escrit:
> The problem is that these functions do not exist in OpenBSD,
> yet they are used as the code is presently sent to the linker.
OK, please send me your config.log file.
> > > There are further problems in "ifconfig/" where compilation
> > > halts due to missing macros IFF_SLAVE and IFF_MASTER.
> >
> > These two should be protected by #ifdef.
> >
>
> Again, on OpenBSD these constants are called for by the preprocessor.
Right, that's whar I meant. This should help, then:
diff --git a/ifconfig/flags.c b/ifconfig/flags.c
index d927da5..e35744f 100644
--- a/ifconfig/flags.c
+++ b/ifconfig/flags.c
@@ -403,8 +403,12 @@ static struct if_flag_char flag_char_tab[] = {
{ IFF_NOTRAILERS, 'N' },
{ IFF_NOARP, 'O' },
{ IFF_POINTOPOINT, 'P' },
+#ifdef IFF_SLAVE
{ IFF_SLAVE, 's' },
+#endif
+#ifdef IFF_MASTER
{ IFF_MASTER, 'm' },
+#endif
{ IFF_RUNNING, 'R' },
{ IFF_UP, 'U' },
{ 0 }
> due to unpleasently hard dependence on autoconf-2.63.
Inetutils does not depend on that particular version of
Autoconf. Any version starting from 2.59 may be used.
Regards,
Sergey