Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42307 - failed ebuild for svgalib
Summary: failed ebuild for svgalib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-20 14:43 UTC by Zumo Zumoton
Modified: 2004-02-23 14:50 UTC (History)
2 users (show)

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


Attachments
Patch (svgalib-1.9.17-linux2.6-fix2.4issues.patch,1.01 KB, patch)
2004-02-23 14:22 UTC, Tim Yamin (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zumo Zumoton 2004-02-20 14:43:02 UTC
emerge dies when the compiler returns an error

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

Actual Results:  
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
main.c:90: parse error before "vsync_interrupt"
main.c: In function `svgalib_helper_ioctl':
main.c:317: warning: passing arg 2 of `request_irq_R0c60f2e0' from incompatible
pointer type
main.c:321: warning: passing arg 2 of `request_irq_R0c60f2e0' from incompatible
pointer type
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!
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-02-20 15:13:00 UTC
Can you please run and paste in the output of:

1) grep -m4 ".*" /usr/src/linux/Makefile
2) emerge -p linux-headers
3) md5sum /usr/portage/media-libs/svgalib/files/svgalib-1.9.17-linux2.6.patch

Thanks.
Comment 2 mbditt 2004-02-21 08:12:29 UTC
I am having the same problem. I just installed Gentoo for the first time about 5 days ago, and ran into this issue while trying to install KDE. I have Kernel 2.4.24 from Vanilla source. Here is the output that you requested.

1.) grep -m4 ".*" /usr/src/linux/Makefile
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 24
EXTRAVERSION = 

2.) emerge -p linux-headers

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] sys-kernel/linux-headers-2.4.21

3.) md5sum /usr/portage/media-libs/svgalib/files/svgalib-1.9.17-linux2.6.patch

0ded96494b4c3f4f744474ff89033c18 /usr/portage/media-libs/svgalib/files/svgalib-1.9.17-linux2.6.patch

I hope this helps. Thanks.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-02-23 08:33:24 UTC
Hmm, you don't seem to have any headers. Try merging linux-headers and see if that helps...
Comment 4 Josh Sled 2004-02-23 08:48:41 UTC
I'm having the same problem [same versions, errors, &c].

merging linux-headers[-2.4.21] doesn't help me. :(
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-02-23 14:22:12 UTC
Created attachment 26199 [details, diff]
Patch

OK, can you please try applying this patch on
/usr/portage/media-libs/svgalib/files/svgalib-1.9.17-linux2.6.patch and tell us
whether it works or fails?

Thanks.
Comment 6 Josh Sled 2004-02-23 14:37:43 UTC
The patch worksforme; thanks.
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2004-02-23 14:50:33 UTC
Fixed in CVS, should hit Portage in an hour. Thanks.