Unable to install polygraph-2.8.0 on Solaris 9

From: B $B (kawaih@nttdata-2dev.com)
Date: Thu Jul 08 2004 - 21:46:36 MDT


I understood that if I want to use "credentials", I have to install
Polygraph ver2.8.0.
Then, I installed Polygraph2.8.0 on solaris 9 using gcc 2.95.3.
But It happend many error when I compiled it.

======
InetIfReq.cc: In method `Inet6IfAliasReq::Inet6IfAliasReq(const String
&, const InAddress &, const InAddress &)':
InetIfReq.cc:42: `SIOCGIFINDEX' undeclared (first use this function)
InetIfReq.cc:42: (Each undeclared identifier is reported only once
InetIfReq.cc:42: for each function it appears in.)
InetIfReq.cc:42: implicit declaration of function `int ioctl(...)'
InetIfReq.cc:44: `struct ifreq' has no member named `ifr_ifindex'
*** Error code 1
make: Fatal error: Command failed for target `InetIfReq.o'
Current working directory
/export/home/polygraph/polygraph-2.8.0/src/xstd
*** Error code 1
make: Fatal error: Command failed for target `all_subdirs'
Current working directory /export/home/polygraph/polygraph-2.8.0/src
*** Error code 1
make: Fatal error: Command failed for target `all_subdirs'
=======

I looked into the 42th line of InetIfReq.cc

=======
#elif HAVE_TYPE_LINUX_IN6_IFREQ
        ifreq ifr;
        memset(&ifr, 0, sizeof(ifr));
        //
        // this could be done by the parent, which has
        // its own FD open anyway?
        //
        Socket s;
        Assert(s.create(PF_INET6, SOCK_DGRAM, 0));
        strncpy(ifr.ifr_name, name.cstr(), IFNAMSIZ);
        Must (ioctl(s.fd(), SIOCGIFINDEX, &ifr) < 0);
        s.close();
        ifr6_ifindex = ifr.ifr_ifindex;
        sockaddr_storage ss = addr.sockAddr(-1);
        memcpy(&ifr6_addr, &ss, sizeof(ifr6_addr));
        ifr6_prefixlen = mask.prefixlen();
#endif
======
We use solaris, But Compiling seems to be aborted at the point related
with the linux.
We commented out the above sentence and recompiled it, but there were
another error.

How do I have to solve it?
And I'm sorry for my awkward English.

regards,
Hide.



This archive was generated by hypermail 2b29 : Mon Feb 06 2006 - 12:00:28 MST