Re: linc-0.1.10 problem building on Solaris 2.6




I've also encountered the following errors in linc that I haven't tracked
down a fix for yet....

linc-protocols.c: In function `linc_protocol_get_sockinfo_ipv46':
linc-protocols.c:476: `NI_MAXSERV' undeclared (first use in this function)
linc-protocols.c:476: (Each undeclared identifier is reported only once
linc-protocols.c:476: for each function it appears in.)
linc-protocols.c:476: warning: unused variable `tmpport'
linc-protocols.c: In function `linc_protocol_get_sockinfo_unix':
linc-protocols.c:599: `NI_MAXHOST' undeclared (first use in this function)
linc-protocols.c:599: warning: unused variable `hname'
linc-protocols.c: In function `linc_protocol_tcp_setup':
linc-protocols.c:708: warning: passing arg 4 of `setsockopt' from incompatible pointer type
make[2]: *** [linc-protocols.lo] Error 1






<dahaverk@rockwellcollins.com>@gnome.org on 12/12/2001 04:38:51 PM

Please respond to orbit-list@gnome.org

Sent by:  orbit-list-admin@gnome.org


To:   orbit-list@gnome.org
cc:

Subject:  linc-0.1.10 problem building on Solaris 2.6




I haven't tried to hack a fix for this yet... But it looks like the
configure for Solaris 2.6 missed picking up the
"/usr/include/arpa/nameser.h"
thus leaving the MAXDNAME definition in resolve.h undefined.

i.e. "/usr/include/resolv.h: char  defdname[MAXDNAME] /* default domain */"
     "/usr/include/arpa/nameser.h:#define MAXDNAME  256 /* maximum domain
name */"

____________________________________________
In "src/linc-protocols.c" Add something like follows...

#include <string.h>
#ifdef   HAVE_MAXDNAME_IN_NAMESER_H
#include <arpa/nameser.h>
#endif
#include <resolv.h>
#include <netdb.h>
#include <linc/linc-protocol.h>
_____________________________________________
Then in "configure.in" the following can be added (assuming the "*"
pattern matches)...

if test X"$host_os" = "Xsolaris*" ; then
        AC_DEFINE(HAVE_MAXDNAME_IN_NAMESER_H)
fi


__________________
otherwise the AC_DEFINE needs to somehow be added  in one of the case
statements for solaris.
I don't claim to be an autoconf expert...  So, if someone has a better way
of doing this.  Please pipe up.
Maybe there should be a more extensive test... to configure this?

-Dave

--
David Haverkamp
dahaverk@rockwellcollins.com
Rockwell Collins
Advanced Technology Center

_______________________________________________
orbit-list mailing list
orbit-list@gnome.org
http://mail.gnome.org/mailman/listinfo/orbit-list






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]