Re: Linux 2.4.22 with MIPL 1.0 problem

From: Yong Chu Eu (ceyong_at_hotmail.com)
Date: 02/17/04


Date: 16 Feb 2004 17:37:16 -0800

Jacob Heider <lord-jacob@comcast.net> wrote in message news:<8268c617d7737fef7b23c36945302bc0@news.teranews.com>...
> On Mon, 16 Feb 2004 01:01:54 -0800, Yong Chu Eu wrote:
>
> > after i succeed upgrade my kernel to Linux 2.4.22,i try to install
> > MIPL 1.0 but fail,any one can help?
> >
> > [root@localhost mipv6-1.0-v2.4.22]# make && make install
> > make[1]: Entering directory `/usr/local/src/mipv6-1.0-v2.4.22/lib'
> > gcc -I../include -Wall -O2 -c -o ll_map.o ll_map.c
> > In file included from /usr/include/bits/posix1_lim.h:126,
> > from /usr/include/limits.h:144,
> > from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132,
> > from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits.h:7,
> > from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:11,
> > from /usr/include/bits/socket.h:31,
> > from /usr/include/sys/socket.h:35,
> > from ll_map.c:18:
> > /usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or
> > directory
> > In file included from ll_map.c:22:
> > ../include/libnetlink.h:5:27: linux/netlink.h: No such file or
> > directory
> > ../include/libnetlink.h:6:29: linux/rtnetlink.h: No such file or
> > directory
>
> You're missing some headers. The command:
>
> rpm -qf `locate linux/netlink.h`
>
> returns
>
> glibc-kernheaders-2.4-8.36
>
> on my FC1 box and
>
> glibc-kernheaders-2.4-8.10
>
> on my RH9 box. Install the RPM, and all should be well.
>
> GL
> Jacob

i did follow ur step but it seem help nothing, can u advice more. i
am using linux 2.4.18 now upgrade kernel to linux 2.4.22 in order top
support mobility ipv6 stack.

[root@localhost src]# ls
debug
glibc-kernheaders-2.4-8.10.src.rpm linux-2.4.20-8
glibc-kernheaders-2.4-8.10.i386.rpm linux-2.4
  redhat
[root@localhost src]# rpm -i glibc-kernheaders-2.4-8.10.i386.rpm
        package glibc-kernheaders-2.4-8.10 is already installed
[root@localhost src]# cd ..
[root@localhost usr]# cd local/src
[root@localhost src]# ls
linux linux-2.4.22 linux-2.4.22.tar.gz mipv6-1.0-v2.4.22
mipv6-1.0-v2.4.22.tar.gz
[root@localhost src]# cd mipv6-1.0-v2.4.22
[root@localhost mipv6-1.0-v2.4.22]# .configure
bash: .configure: command not found
[root@localhost mipv6-1.0-v2.4.22]# ./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -I../include -Wall -O2 ) works...
yes
checking whether the C compiler (gcc -I../include -Wall -O2 ) is a
cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for rm... (cached) /bin/rm
checking for mkdir... (cached) /bin/mkdir
checking for sed... (cached) /bin/sed
checking for gzip... (cached) /bin/gzip
checking for initdir
checking for sysconfdir
checking for lockdir
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for fcntl.h... (cached) yes
checking for malloc.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for syslog.h... (cached) yes
checking for unistd.h... (cached) yes
checking for working const... (cached) yes
checking whether time.h and sys/time.h may both be included...
(cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached)
time.h
checking for gettimeofday... (cached) yes
checking for select... (cached) yes
checking for socket... (cached) yes
checking for strerror... (cached) yes
checking for strstr... (cached) yes
checking for strtoul... (cached) yes
creating ./config.status
creating Makefile
creating src/Makefile
creating lib/Makefile
creating mobile-ip6
[root@localhost mipv6-1.0-v2.4.22]# make && make install
make[1]: Entering directory `/usr/local/src/mipv6-1.0-v2.4.22/lib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/mipv6-1.0-v2.4.22/lib'
make[1]: Entering directory `/usr/local/src/mipv6-1.0-v2.4.22/src'
gcc -I../include -Wall -O2 -c -o mipdiag.o mipdiag.c
In file included from /usr/include/errno.h:36,
                 from mipdiag.c:17:
/usr/include/bits/errno.h:25:26: linux/errno.h: No such file or
directory
In file included from /usr/include/bits/posix1_lim.h:126,
                 from /usr/include/limits.h:144,
                 from
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:132,
                 from
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/syslimits.h:7,
                 from
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/limits.h:11,
                 from /usr/include/bits/socket.h:31,
                 from /usr/include/netinet/in.h:212,
                 from /usr/include/arpa/inet.h:23,
                 from mipdiag.c:23:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or
directory
In file included from mipdiag.c:32:
../include/mip6.h:95:26: linux/ioctl.h: No such file or directory
In file included from mipdiag.c:35:
../include/libnetlink.h:5:27: linux/netlink.h: No such file or
directory
../include/libnetlink.h:6:29: linux/rtnetlink.h: No such file or
directory
In file included from mipdiag.c:35:
../include/libnetlink.h:11: field `local' has incomplete type
../include/libnetlink.h:12: field `peer' has incomplete type
../include/libnetlink.h:21: warning: `struct nlmsghdr' declared inside
parameter list
../include/libnetlink.h:21: warning: its scope is only this definition
or declaration, which is probably not what you want
../include/libnetlink.h:23: warning: `struct nlmsghdr' declared inside
parameter list
../include/libnetlink.h:28: warning: `struct nlmsghdr' declared inside
parameter list
../include/libnetlink.h:32: warning: `struct nlmsghdr' declared inside
parameter list
../include/libnetlink.h:33: warning: `struct nlmsghdr' declared inside
parameter list
../include/libnetlink.h:34: warning: `struct rtattr' declared inside
parameter list
../include/libnetlink.h:35: warning: `struct rtattr' declared inside
parameter list
../include/libnetlink.h:37: warning: `struct rtattr' declared inside
parameter list
../include/libnetlink.h:39: warning: `struct nlmsghdr' declared inside
parameter list
../include/libnetlink.h:41: warning: `struct nlmsghdr' declared inside
parameter list
In file included from mipdiag.c:36:
../include/ll_map.h:4: warning: `struct nlmsghdr' declared inside
parameter list
mipdiag.c:44:2: #error "Incorrect /usr/include/linux/ directory see
INSTALL"
mipdiag.c: In function `get_ma_current_iface':
mipdiag.c:153: `ENOENT' undeclared (first use in this function)
mipdiag.c:153: (Each undeclared identifier is reported only once
mipdiag.c:153: for each function it appears in.)
mipdiag.c: In function `set_ma_set_preference':
mipdiag.c:166: `EPERM' undeclared (first use in this function)
mipdiag.c:172: `ENOENT' undeclared (first use in this function)
mipdiag.c: In function `debuglevel':
mipdiag.c:212: `EPERM' undeclared (first use in this function)
mipdiag.c:216: `ENOENT' undeclared (first use in this function)
mipdiag.c:220: `EIO' undeclared (first use in this function)
mipdiag.c: In function `tunnel_sitelocal':
mipdiag.c:254: `EINVAL' undeclared (first use in this function)
mipdiag.c:260: `EPERM' undeclared (first use in this function)
mipdiag.c:264: `ENOENT' undeclared (first use in this function)
mipdiag.c:268: `EIO' undeclared (first use in this function)
mipdiag.c: In function `rtn_set_mn_info':
mipdiag.c:285: field `n' has incomplete type
mipdiag.c:286: field `ifa' has incomplete type
mipdiag.c:292: `EPERM' undeclared (first use in this function)
mipdiag.c:296: warning: implicit declaration of function
`NLMSG_LENGTH'
mipdiag.c:296: sizeof applied to an incomplete type
mipdiag.c:297: `NLM_F_REQUEST' undeclared (first use in this function)
mipdiag.c:298: `RTM_NEWADDR' undeclared (first use in this function)
mipdiag.c:300: `RT_SCOPE_UNIVERSE' undeclared (first use in this
function)
mipdiag.c:301: `IFA_F_HOMEADDR' undeclared (first use in this
function)
mipdiag.c:304: `IFA_ADDRESS' undeclared (first use in this function)
mipdiag.c:306: `IFA_HOMEAGENT' undeclared (first use in this function)
make[1]: *** [mipdiag.o] Error 1
make[1]: Leaving directory `/usr/local/src/mipv6-1.0-v2.4.22/src'
make: *** [all] Error 2
[root@localhost mipv6-1.0-v2.4.22]#



Relevant Pages

  • unable to upgrade to 7.1-PRE
    ... its scope is only this definition or declaration, ... dereferencing pointer to incomplete type ... warning: ...
    (freebsd-stable)
  • Linux 2.4.22 with MIPL 1.0 problem
    ... ../include/libnetlink.h:21: warning: `struct nlmsghdr' declared inside ... ll_map.c:41: warning: implicit declaration of function `NLMSG_DATA' ... ll_map.c:45: dereferencing pointer to incomplete type ...
    (linux.redhat)
  • pb compiled freebsd 49rc3 (iso)
    ... pxe.c:84: warning: `struct netif' declared inside parameter list ... pxe.c:102: warning: excess elements in struct initializer ... pxe.c:107: variable `pxenetif' has initializer but incomplete type ... pxe.c:84: previous declaration of `pxe_netif_match' ...
    (freebsd-hackers)
  • [Fwd: PXEboot compile error (missing .h)]
    ... Warning: Object directory not changed from original ... pxe.c:84: warning: its scope is only this definition or declaration, ... pxe.c:102: warning: excess elements in struct initializer ... pxe.c:107: variable `pxenetif' has initializer but incomplete type ...
    (freebsd-stable)
  • Trouble installing DBD::Oracle on Cygwin
    ... dbdimp.h:15: warning: no semicolon at end of struct or union ... dbdimp.h:37: warning: type defaults to `int' in declaration of `errhp' ... Oracle.xsi:140: error: dereferencing pointer to incomplete type ...
    (perl.dbi.users)