Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35348 - media-libs/svgalib-1.9.17-r3 does not compile against 2.4.22-gentoo-r1 with gcc 3.3.2
Summary: media-libs/svgalib-1.9.17-r3 does not compile against 2.4.22-gentoo-r1 with g...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
: 37073 (view as bug list)
Depends on:
Blocks: 37812
  Show dependency tree
 
Reported: 2003-12-08 08:52 UTC by gerold.strobel
Modified: 2004-02-16 17:09 UTC (History)
3 users (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 gerold.strobel 2003-12-08 08:52:51 UTC
gcc -O2 -DLINUX -Dlinux -D__KERNEL__ -DMODULE  -nostdinc -iwithprefix  
include  
-I/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/kernel/svgalib_helper/include  
-I. -I/usr/src/linux/include -I/usr/src/linux/include/asm/mach-default  
-DSVGALIB_HELPER_MAJOR=209 -DMODVERSIONS  
-include /usr/src/linux/include/linux/modversions.h -M *.c > .depend  
gcc -O2 -DLINUX -Dlinux -D__KERNEL__ -DMODULE  -nostdinc -iwithprefix  
include  
-I/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/kernel/svgalib_helper/include  
-I. -I/usr/src/linux/include -I/usr/src/linux/include/asm/mach-default  
-DSVGALIB_HELPER_MAJOR=209 -DMODVERSIONS  
-include /usr/src/linux/include/linux/modversions.h   -c -o main.o main.c  
In file included from main.c:24:  
kernel26compat.h:17: error: redefinition of `irqreturn_t'  
/usr/src/linux/include/linux/interrupt.h:16: error: `irqreturn_t' previously declared here  
make: *** [main.o] Fehler 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 52, Exitcode 2  
!!! Failed to build kernel module!  

Reproducible: Always
Steps to Reproduce:
1.emerge svgalib-1.9.17-r1  
2. 
3. 
Actual Results:  
See [Details]  

Expected Results:  
emerge correctly  

Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r1 
) 
================================================================= 
System uname: 2.4.22-gentoo-r1 i686 AMD Athlon(tm) Processor 
Gentoo Base System version 1.4.3.12 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-tbird -O3 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1                                                                                /share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" 
CXXFLAGS="-march=athlon-tbird -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erla                                                                                
ngen.de/pub/mirrors/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow X afs alsa apm arts avi berkdb cdr crypt cups dvd encode esd 
foomatic                                                                                db gdbm gif gpm 
gtk gtk2 imlib java jpeg kde ldap libg++ libwww mad mikmod motif                                                                                 
mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime r                                                                                
eadline sdl slang spell ssl svga tcltk tcpd truetype usb x86 xml2 xmms xv zlib" 
 
 
 
btw: I would have reopened bug 21340 if I could  
  
btw2: what's the proper product on  
http://bugs.gentoo.org/enter_bug.cgi?format=guided to enter such bugs for? I'm  
going to use the ~x86 tree from now on and would like bug reports to go through as  
smoothly as possible
Comment 1 Brian Jackson (RETIRED) gentoo-dev 2003-12-10 12:22:14 UTC
Odd that svgalib tries to use kernel26compat.h when this isn't a 2.6 kernel.
I'd guess whatever tests they employ to determine if kernel26compat.h needs to
be included are broken.
Comment 2 Rene Androsch 2003-12-24 08:26:12 UTC
Same error on a Pentium4 system, with gentoo-sources-2.4.22-r2 (which is somewhat the standard kernel, isn't it?)
Comment 3 Markus Nigbur (RETIRED) gentoo-dev 2004-01-02 22:37:38 UTC
*** Bug 37073 has been marked as a duplicate of this bug. ***
Comment 4 SpanKY gentoo-dev 2004-01-09 16:06:10 UTC
still an issue ?
i just built it against vanilla-2.4.23 and gcc-3.3.2
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-01-09 16:20:56 UTC
Brian, it's failing because gentoo-sources is not using a standard header. These lines are not in 2.4.22 and there is no way to check for their presence as no unique #define is raised. I'm not really sure what they're doing there, either... This is from the -r4 patch.

+/* For 2.6.x compatibility */
+typedef void irqreturn_t;
+#define IRQ_NONE
+#define IRQ_HANDLED
+#define IRQ_RETVAL(x)
+
Comment 6 giovanni.bobbio 2004-01-15 06:46:12 UTC
Also fails against 2.4.23-ck1.
Grrr, how do these errors make it into the stable release?
Comment 7 SpanKY gentoo-dev 2004-01-15 07:54:40 UTC
plasmaroo: looking that the new kernel26compat.h in the patch and i see this logic:

+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
+
+# ifdef KERNEL_2_6
+#  undef KERNEL_2_6
+# endif
+
+#define my_remap_page_range(vma, start, ofs, len, prot) remap_page_range(start,ofs,len,prot)
+
+typedef void irqreturn_t;
+
+#else

perhaps we should drop that typedef for irqreturn_t ?
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2004-01-15 09:37:18 UTC
No, that typedef should definitely not be dropped. Otherwise, you break lots of 2.4 kernels.

This is fixed in -r5 so I am closing this.
Comment 9 Bill Kenworthy 2004-01-15 19:30:02 UTC
ahh, perhaps you could release -r5 so we 2.4 users can go on?

Just updated portage and it seems that -r3 is the latest version in /usr/portage/media-libs/svgalib so even setting ~86 wont get it for us.  In the meantime I commented out the patches in -r3, and it builds but I am not sure if I am missing anything important.

BillK
Comment 10 Tim Yamin (RETIRED) gentoo-dev 2004-01-16 08:52:42 UTC
Yes, sorry, I meant gentoo-sources-2.4.20-r5...
Comment 11 Koen Geeraerts 2004-01-21 10:15:39 UTC
lo all :)

Just wondering whether the svgalib-1.9.17-r5 will be released anytime soon, as this is still keeping my system from being upgraded with an emerge -u world.

And an etcat -v svgalib doesn't show a masked r5 either.

I think it's weird that this bug is been marked as "fixed" while the r5 version (which is supposed to fix it) hasn't been released yet.
Comment 12 Koen Geeraerts 2004-01-21 10:18:54 UTC
ah ... forgive me for my stupid remark.. should have read through my eyes instead of my ass... 

Since I am using vanilla sources, I'll open up a new bugreport for this.
Comment 13 Nathan Adams 2004-02-16 17:04:02 UTC
# date
Mon Feb 16 20:03:22 EST 2004
#emerge -u media-libs/svgalib
{snip}
gcc -O2 -DLINUX -Dlinux -D__KERNEL__ -DMODULE  -nostdinc -iwithprefix include -I/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/kernel/svgalib_helper/include -I. -I/usr/src/linux/include -I/usr/src/linux/include/asm/mach-default -DSVGALIB_HELPER_MAJOR=209 -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h   -c -o main.o main.c
In file included from main.c:24:
kernel26compat.h:17: error: redefinition of `irqreturn_t'
/usr/src/linux/include/linux/interrupt.h:16: error: `irqreturn_t' previously declared here
make: *** [main.o] 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!

# ls -l /usr/src/linux
lrwxrwxrwx    1 root     root           30 Dec  6 12:17 /usr/src/linux -> /usr/src/linux-2.4.23_pre8-gss
Comment 14 Nathan Adams 2004-02-16 17:09:15 UTC
I humbly suggest reopening, and I also wanted to add myself to the CC list. :)