Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42672 - svgalib 1.9.17-r3 compile error in main.c --- wrong include
Summary: svgalib 1.9.17-r3 compile error in main.c --- wrong include
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-23 17:05 UTC by Tim
Modified: 2004-02-24 13:16 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 Tim 2004-02-23 17:05:35 UTC
/kernel/svgalib_helper/main.c is missing picking up an include with

typedef void irqreturn_t;

So there is a compilation syntax error. Is line 19 in /kernel/svgalib_helper/kernel26compat.h wrongly out of bounds on 2.4.25 kernel?

Reproducible: Always
Steps to Reproduce:
1. emerge svgalib
2.
3.




Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25)
=================================================================
System uname: 2.4.25 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2
/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.gentoo.or.kr/ ftp://gg3.net/pub/linux/gentoo/ ftp://f
tp.ecc.u-tokyo.ac.jp/GENTOO http://mirror.gentoo.gr.jp"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apache2 apm arts avi berkdb cdr crypt cups doc dvd dvdr emacs encode foom
aticdb gdbm gif gpm gtk2 imagemagick imlib jpeg kde libg++ libwww mad mikmod mot
if mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime
 readline sdl slang spell sse ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 SpanKY gentoo-dev 2004-02-23 20:34:35 UTC
make sure your linux-headers are up-to-date
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-02-24 09:12:39 UTC
Try updating your Portage tree and remerging svgalib...
Comment 3 Collin Starkweather 2004-02-24 11:18:24 UTC
I was having the same problem with svgalib 1.9.17-r3 and linux-headers 2.4.19-r1.  I updated to linux-headers 2.4.21.  Same problems:

In file included from main.c:24:
kernel26compat.h:5:40: missing binary operator before token "("
main.c:430:41: missing binary operator before token "("
main.c:442:41: missing binary operator before token "("
main.c:451:41: missing binary operator before token "("
make: *** [.depend] Error 1
make: Leaving directory `/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/kernel/svgalib_helper'
 
!!! ERROR: media-libs/svgalib-1.9.17-r3 failed.
!!! Function src_compile, Line 59, Exitcode 2
!!! Failed to build kernel module!

Also, FWIW, I was getting tons of these

{standard input}: Assembler messages:
{standard input}:119: Warning: using `%eax' instead of `%ax' due to `l' suffix
{standard input}:188: Warning: using `%eax' instead of `%ax' due to `l' suffix

during the build.  Don't quite know what they mean.  And I got one of these

make[1]: Entering directory `/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/sharedlib'
ln: `../src/svgalib_helper.h': File exists
make[1]: *** [.depend.src] Error 1
make[1]: Leaving directory `/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/sharedlib'

during the build but it didn't seem to halt the build process as the above error did.

Here is my emerge info:

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ http://gentoo.ccccom.com ftp://gentoo.agsn.ca/ ftp://gentoo.ccccom.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb cdr crypt cups doc dvd emacs encode esd ethereal foomaticdb gd gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml imagemagick imlib jpeg libg++ libwww lirc mad mikmod motif mozilla mpeg mysql ncurses nls odbc oggvorbis opengl oss pam pcmcia pdflib perl plotutils png pnp python quicktime readline samba sdl slang spell ssl svga tcpd tetex truetype unicode usb x86 xml2 xmms xv zlib"
Comment 4 Collin Starkweather 2004-02-24 11:21:29 UTC
P.S.  I did do an `emerge sync` to make sure I was fetching the latest linux-headers and svgalib.
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-02-24 11:42:13 UTC
Collin: That should be fixed, if you try "emerge sync" in half-an-hour and try merging svgalib again [ you might need to empty out /var/tmp/portage/svgalib-* first ] it should be resolved. Thanks.
Comment 6 Collin Starkweather 2004-02-24 13:05:50 UTC
Thanks, Tim.  That did the trick.
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2004-02-24 13:16:32 UTC
Closing as fixed, thanks!