Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152617 - x11-misc/x11vnc-0.8.2 doesn't compile w/ 2.4 kernel
Summary: x11-misc/x11vnc-0.8.2 doesn't compile w/ 2.4 kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Low normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-23 19:33 UTC by Chris Gottbrath
Modified: 2009-04-17 18:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Gottbrath 2006-10-23 19:33:11 UTC
I ran into a build problem and wanted to share the workaround...

I run a machine with an 2.4 kernel (yea I know, I'm a
dinosaur). I was just updating it and found that I x11vnc 
wouldn't build. The error it gave was



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
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/mnt/alt3/var/tmp/portage/x11vnc-0.8.2/work/x11vnc-0.8.2/x11vnc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/alt3/var/tmp/portage/x11vnc-0.8.2/work/x11vnc-0.8.2/x11vnc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/alt3/var/tmp/portage/x11vnc-0.8.2/work/x11vnc-0.8.2'
make: *** [all] Error 2


A little experimentation and reading of the code
lead me to the conclusion that the x11vnc code here is
relying on interfaces that my old kernel doesn't appear to
have. But that all the relevant code was controled with the 
--with-uinput or --without-uinput configure option. 

For my own system I am able to get x11vnc to build by 
simply adding --without-uinput to the configure (in my
overlay ebuild area). Not sure if that is a good workaround
for anyone else. 

I also checked out the upstream package provider and I note
that the problem is resolved with the x11vnc-0.8.3.tar.gz 
available there.


here is my emerge --info in case anyone is interested: 


Gentoo Base System version 1.12.5
Portage 2.1.1 (default-linux/x86/no-nptl/2.4, gcc-3.4.6, glibc-2.3.6-r4, 2.4.28-gentoo-r8 i686)
=================================================================
System uname: 2.4.28-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Python:              dev-lang/python-2.3.5-r2,dev-lang/python-2.4.3-r4 [2.4.3 (#1, Oct 22 2006, 14:56:52)]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.59-r7, 2.13
sys-devel/automake:  1.9.6-r2, 1.7.9-r1, 1.5, 1.6.3, 1.4_p6, 1.8.5-r3
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.26-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fno-omit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=pentium4 -fno-omit-frame-pointer"
DISTDIR="/mnt/alt3/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/ http://gentoo.binarycompass.org http://gentoo.eliteitminds.com http://lug.mtu.edu/gentoo"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/mnt/alt3/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/mnt/alt3/var/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d alsa apache2 apm arts berkdb bitmap-fonts cli cracklib crypt cups dlloader doc dri dvd eds elibc_glibc emboss encode f77 foomaticdb fortran gcj gd gdbm gif gnome gpm gstreamer gtk gtk2 imap imlib input_devices_keyboard input_devices_mouse isdnlog java jikes jpeg kde kernel_linux libg++ libwww mad mbox mcal mikmod mmx mono motif mp3 mpeg mpi ncurses nls ogg opengl oss pam pcmcia pcre perl plotutils png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl sse ssl svg tcpd tiff truetype truetype-fonts trusted type1-fonts usb userland_GNU video_cards_i810 video_cards_nvidia video_cards_vesa video_cards_vga vorbis xfs xml xmms xorg xv zeo zlib"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 L. Andrew Somerville 2006-11-03 09:21:51 UTC
Same bug here but with 2.6.12 and both versions of x11vnc in portage. I've also tried enabling and disabling each of the USE flags for this package with no change. 


-------------------------------------
Compile errors: 

 then mv -f ".deps/sslhelper.Tpo" ".deps/sslhelper.Po"; else rm -f ".deps/sslhelper.Tpo"; exit 1; fi
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..    -I .. -march=athlon-xp -O3 -pipe -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: 'struct uinput_user_dev' has no member named 'id'
uinput.c:192: error: 'struct uinput_user_dev' 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
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/x11vnc-0.8.2-r1/work/x11vnc-0.8.2/x11vnc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11vnc-0.8.2-r1/work/x11vnc-0.8.2/x11vnc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11vnc-0.8.2-r1/work/x11vnc-0.8.2'
make: *** [all] Error 2

!!! ERROR: x11-misc/x11vnc-0.8.2-r1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  x11vnc-0.8.2-r1.ebuild, line 54:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

-------------------------------------
# emerge --info
Portage 2.1.1-r1 (default-linux/x86/no-nptl/2.4, gcc-4.1.1, glibc-2.3.6-r4, 2.6.12-gentoo-r9 i686)
=================================================================
System uname: 2.6.12-gentoo-r9 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.12.5
Last Sync: Mon, 30 Oct 2006 18:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.2.3-r5, 2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.19-r1, 2.4.26-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distcc distlocks fixpackages metadata-transfer regenworld sandbox sfperms strict usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/xgl-coffee /usr/portage/local/layman/portage-xgl /usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext 7zip X aac aalib acl alsa apache2 apm ati audiofile avi berkdb bitmap-fonts bonobo bzlib calendar cdr cli cpudetection cracklib crypt cups dbus dga directfb divx dlloader dri eds elibc_glibc emacs emboss encode esd ffmpeg fftw firefox flac flash foomaticdb fortran gcj gd gdbm gdm gif glade gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml iconv icq imap imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jack java javascript jikes jpeg jpeg2k kernel_linux lame libg++ libwww lm_sensors mad memlimit mikmod mime mmx mmxext motif mp3 mpeg mpeg2 msn ncurses nls nvidia ogg opengl oss pam pcre perl php png pppd python quicktime readline reflection samba sdl session sndfile spell spl sqlite sqlite3 sse sse2 ssl svg svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa vim vnc vncviewer vorbis wxwindows x11vnc xinerama xml xorg xv xvid xvnc yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 2 Sven Wegener gentoo-dev 2007-01-09 21:15:07 UTC
Could you attach a full build log? The configure script should check whether uinput is supported or not
Comment 3 Michael Palimaka (kensington) gentoo-dev 2009-04-14 19:31:43 UTC
(In reply to comment #0)
> I also checked out the upstream package provider and I note
> that the problem is resolved with the x11vnc-0.8.3.tar.gz 
> available there.
The current stable version in the tree is 0.9.6 so is it safe to assume that this bug is fixed?
Comment 4 Sven Wegener gentoo-dev 2009-04-17 18:53:50 UTC
Please reopen if problem still persists.