Missing keysym.h - BSD

This is a discussion on Missing keysym.h - BSD ; In sbin/wsconsctl make dies because there is no file named keysym.h present. The file also appears not to be on the 4.1 cdrom either. Where can I get a copy to make the build work? Thanks, Dave Feustel...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Missing keysym.h

  1. Missing keysym.h

    In sbin/wsconsctl make dies because there is no file named
    keysym.h present. The file also appears not to be on the
    4.1 cdrom either. Where can I get a copy to make the build work?

    Thanks,
    Dave Feustel

  2. Re: Missing keysym.h

    dave writes:

    > In sbin/wsconsctl make dies because there is no file named
    > keysym.h present. The file also appears not to be on the
    > 4.1 cdrom either. Where can I get a copy to make the build work?


    cd /usr/src/sbin/wsconsctl
    make obj
    make depend
    make

    The "make depend" step is *required* as it creates
    keysym.h

    // marc

  3. Re: Missing keysym.h

    Marco S Hyman wrote:
    > dave writes:
    >
    >> In sbin/wsconsctl make dies because there is no file named
    >> keysym.h present. The file also appears not to be on the
    >> 4.1 cdrom either. Where can I get a copy to make the build work?

    >
    > cd /usr/src/sbin/wsconsctl
    > make obj
    > make depend
    > make
    >
    > The "make depend" step is *required* as it creates
    > keysym.h
    >
    > // marc


    Thanks. I did those commands and it generated keysym.h but got other errors:


    cc -O2 -pipe -I/usr/src/sbin/wsconsctl -I. -c /usr/src/sbin/wsconsctl/keysym.c
    /usr/src/sbin/wsconsctl/keysym.c:51: error: `ksym_tab_by_name' undeclared here (not in a function)
    /usr/src/sbin/wsconsctl/keysym.c:51: error: `ksym_tab_by_name' undeclared here (not in a function)
    /usr/src/sbin/wsconsctl/keysym.c: In function `qcmp_name':
    /usr/src/sbin/wsconsctl/keysym.c:101: error: dereferencing pointer to incomplete type
    /usr/src/sbin/wsconsctl/keysym.c:101: error: dereferencing pointer to incomplete type
    /usr/src/sbin/wsconsctl/keysym.c: In function `qcmp_ksym':
    /usr/src/sbin/wsconsctl/keysym.c:107: error: dereferencing pointer to incomplete type
    /usr/src/sbin/wsconsctl/keysym.c:107: error: dereferencing pointer to incomplete type
    /usr/src/sbin/wsconsctl/keysym.c: In function `bcmp_name':
    /usr/src/sbin/wsconsctl/keysym.c:113: error: dereferencing pointer to incomplete type
    /usr/src/sbin/wsconsctl/keysym.c: In function `bcmp_ksym':
    /usr/src/sbin/wsconsctl/keysym.c:119: error: dereferencing pointer to incomplete type
    /usr/src/sbin/wsconsctl/keysym.c: In function `sort_ksym_tab':
    /usr/src/sbin/wsconsctl/keysym.c:127: error: `ksym_tab_by_name' undeclared (first use in this function)
    /usr/src/sbin/wsconsctl/keysym.c:127: error: (Each undeclared identifier is reported only once
    /usr/src/sbin/wsconsctl/keysym.c:127: error: for each function it appears in.)
    /usr/src/sbin/wsconsctl/keysym.c:128: error: invalid use of undefined type `struct ksym'
    /usr/src/sbin/wsconsctl/keysym.c:130: error: invalid application of `sizeof' to an incomplete type
    /usr/src/sbin/wsconsctl/keysym.c:131: error: invalid application of `sizeof' to an incomplete type
    /usr/src/sbin/wsconsctl/keysym.c: In function `ksym2name':
    /usr/src/sbin/wsconsctl/keysym.c:146: error: `ksym_tab_by_name' undeclared (first use in this function)
    /usr/src/sbin/wsconsctl/keysym.c:146: error: invalid application of `sizeof' to an incomplete type
    /usr/src/sbin/wsconsctl/keysym.c:149: error: dereferencing pointer to incomplete type
    /usr/src/sbin/wsconsctl/keysym.c: In function `name2ksym':
    /usr/src/sbin/wsconsctl/keysym.c:165: error: `ksym_tab_by_name' undeclared (first use in this function)
    /usr/src/sbin/wsconsctl/keysym.c:166: error: invalid application of `sizeof' to an incomplete type
    /usr/src/sbin/wsconsctl/keysym.c:169: error: dereferencing pointer to incomplete type
    /usr/src/sbin/wsconsctl/keysym.c: At top level:
    /usr/src/sbin/wsconsctl/keysym.c:51: error: storage size of `ksym_tab_by_ksym' isn't known
    *** Error code 1

    Stop in /usr/src/sbin/wsconsctl.

  4. Re: Missing keysym.h

    dave writes:

    > > cd /usr/src/sbin/wsconsctl
    > > make obj
    > > make depend
    > > make
    > >
    > > The "make depend" step is *required* as it creates
    > > keysym.h
    > >
    > > // marc

    >
    > Thanks. I did those commands and it generated keysym.h but got other errors:
    >
    >
    > cc -O2 -pipe -I/usr/src/sbin/wsconsctl -I. -c /usr/src/sbin/wsconsctl/keysym.c
    > /usr/src/sbin/wsconsctl/keysym.c:51: error: `ksym_tab_by_name' undeclared
    > here (not in a function)


    ksym_tab_by_name is defined in the generated keysym.h. Did you perhaps
    do a partial update of your system? Do you have an incorrect or
    empty keysym.h in the current directory?

    Try this:

    cd /usr/src/sbin/wsconsctl
    rm -rf obj/*
    rm obj
    make cleandir
    make obj
    make depend
    make

    and see what happens.

    // marc

  5. Re: Missing keysym.h

    Marco S Hyman wrote:
    > dave writes:
    >
    >> > cd /usr/src/sbin/wsconsctl
    >> > make obj
    >> > make depend
    >> > make
    >> >
    >> > The "make depend" step is *required* as it creates
    >> > keysym.h
    >> >
    >> > // marc

    >>
    >> Thanks. I did those commands and it generated keysym.h but got other errors:
    >>
    >>
    >> cc -O2 -pipe -I/usr/src/sbin/wsconsctl -I. -c /usr/src/sbin/wsconsctl/keysym.c
    >> /usr/src/sbin/wsconsctl/keysym.c:51: error: `ksym_tab_by_name' undeclared
    >> here (not in a function)

    >
    > ksym_tab_by_name is defined in the generated keysym.h. Did you perhaps
    > do a partial update of your system? Do you have an incorrect or
    > empty keysym.h in the current directory?
    >
    > Try this:
    >
    > cd /usr/src/sbin/wsconsctl
    > rm -rf obj/*
    > rm obj
    > make cleandir
    > make obj
    > make depend
    > make
    >
    > and see what happens.
    >
    > // marc


    Worked! Thanks!!!
    --
    Don't Worry. Be Happy.

+ Reply to Thread