Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#18 LibVNCServer-0.8.2 fails to compile

closed
Karl J. Runge
None
5
2007-03-31
2007-02-01
Andrej Ricnik
No

Hi,

Slackware 11

$ gcc -v
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.6

kernel-headers-2.4.33.3

LibVNC bombs out with
make[3]: Entering directory `/home/andrej/source/LibVNCServer-0.8.2/x11vnc'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I .. -g -O2 -MT uinput.o -MD -MP -MF ".deps/uinput.Tpo" -c -o uinput.o uinput.c; \ then mv -f ".deps/uinput.Tpo" ".deps/uinput.Po"; else rm -f ".deps/uinput.Tpo"; exit 1; fi
uinput.c: In function `initialize_uinput':
uinput.c:191: error: structure has no member named `id'
uinput.c:192: error: structure has no member named `id'
uinput.c: In function `ptr_move':
uinput.c:368: error: `EV_SYN' undeclared (first use in this function)
uinput.c:368: error: (Each undeclared identifier is reported only once
uinput.c:368: error: for each function it appears in.)
uinput.c:369: error: `SYN_REPORT' undeclared (first use in this function)
uinput.c: In function `button_click':
uinput.c:546: error: `EV_SYN' undeclared (first use in this function)
uinput.c:547: error: `SYN_REPORT' undeclared (first use in this function)
uinput.c: In function `uinput_key_command':
uinput.c:770: error: `EV_SYN' undeclared (first use in this function)
uinput.c:771: error: `SYN_REPORT' undeclared (first use in this function)
make[3]: *** [uinput.o] Error 1

Cheers

Discussion

    • assigned_to: nobody --> runge
     
  • Logged In: YES
    user_id=27066
    Originator: NO

    Hi,

    a quick fix would be to edit (!) rfb/rfbconfig.h, and undefine
    LIBVNCSERVER_HAVE_UINPUT_H. It seems you have an older version of
    that file; maybe my quick fix is not a fix at all, that's why I
    assign this ticket to Karl.

    Hth,
    Dscho

     
  • Andrej Ricnik
    Andrej Ricnik
    2007-02-02

    Logged In: YES
    user_id=588244
    Originator: YES

    Hi Dscho,

    Und Danke fuer die rasche Antwort!

    Thanks for the hint & the comment; I'll give it a shot. I don't know how long
    the 2.4.x series of kernels will be around for, but for the time being I'd think
    you guys ought to be catering to 2.6 and 2.4 ... I am using a 2.6 kernel atm, but
    as for the system-wide kernel includes: in Slackware 2.4 is still the default,
    don't know how many other distros do this.

    Cheers,
    Andrej

     
  • Karl J. Runge
    Karl J. Runge
    2007-02-02

    Logged In: YES
    user_id=219571
    Originator: NO

    Try:

    ./configure --without-uinput
    make

    let me know how it goes. I thought might system (kernel 2.4.32)
    would be old enough, but I guess not...

     
  • Karl J. Runge
    Karl J. Runge
    2007-02-02

    Logged In: YES
    user_id=219571
    Originator: NO

    Oh, I looks like I fixed this last September in the CVS:

    uinput.c:

    #if !defined(EV_SYN) || !defined(SYN_REPORT)
    #undef UINPUT_OK
    #endif

    So please try it out (either CVS or
    http://www.karlrunge.com/x11vnc/x11vnc-0.8.5.tar.gz tarball).

    If it builds w/o problem on your system that will be a good result.

    Thanks,

    Karl

     
    • status: open --> closed
     
  • Logged In: YES
    user_id=27066
    Originator: NO

    It is unfortunate that some people seem to be more willing to complain
    than to confirm fixes.

    I guess that this was already fixed, so I am closing that bug.