Compiling kdenetwork-2.0

C.D.McDiarmid cliffy at cliffhangers.screaming.net
Tue Nov 14 07:54:29 PST 2000


Compiling kdenetwork-2.0 for LFS I'm getting the following in 'make'.

In file included from /usr/include/netinet/in.h:27,
                 from /usr/include/arpa/inet.h:25,
                 from pppstats.cpp:53:
/usr/include/bits/socket.h:226: warning: ANSI C++ forbids zero-size array `__cmsg_data'
pppstats.cpp: In method `bool PPPStats::ifIsUp()':
pppstats.cpp:162: `sys_errlist' undeclared (first use this function)
pppstats.cpp:162: (Each undeclared identifier is reported only once
pppstats.cpp:162: for each function it appears in.)
make[3]: *** [pppstats.o] Error 1
make[3]: Leaving directory `/usr/src/kdenetwork-2.0/kppp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/kdenetwork-2.0/kppp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/kdenetwork-2.0'
make: *** [all-recursive-am] Error 2

There's obviously a problem with pppstats.cpp?   Any idea what 'Each
undeclared.......' means?    Here's an extract from the above script showing
'sys_errlist'.

#else
    if ((s = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
	perror("Couldn't create IP socket");
	return false;
    }
#endif

    strncpy(ifr.ifr_name, unitName, sizeof(ifr.ifr_name));

    if(ioctl(s, SIOCGIFFLAGS, (caddr_t) &ifr) < 0) {
        if (sys_nerr)
          fprintf(stderr, "Couldn't find interface %s: %s\n",
                  unitName, sys_errlist[sys_nerr]);
	::close(s);
	s = 0;
	return 0;
    }

    if ((ifr.ifr_flags & (IFF_UP|IFF_RUNNING)) != 0) {
	is_up = true;
	kdDebug(5002) << "Interface is up" << endl; 

Any ideas what I might do?   I've altered scripts in the past and got them to
work, but no idea where to go here.

MAC                         

-- 
Unsubscribe: send email to lfs-apps-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the blfs-support mailing list