View previous topic :: View next topic |
Author |
Message |
axses Tux's lil' helper
Joined: 18 Mar 2003 Posts: 110
|
Posted: Sun Nov 02, 2003 9:34 pm Post subject: svgalib |
|
|
Hi
I cannot emerge svgalib , have tried us x86 and ~x86 , nothing works .
Code: |
Entering directory `/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/threeDKit'
rm -f lib3dkit.a
ar rcs lib3dkit.a
make: Leaving directory `/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/threeDKit'
make: Entering directory `/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/kernel/svgalib_helper'
rm -f *.ko *.o *~ core .depend *.bak *.orig
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] 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 52, Exitcode 2
!!! Failed to build kernel module!
|
Here my emerge info
Code: |
root@foo axses # emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.4.22-gentoo-test-r0)
=================================================================
System uname: 2.4.22-gentoo-test-r0 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.3.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox autoaddcvs ccache"
GENTOO_MIRRORS="rsync://ftp.snt.utwente.nl/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://sunsite.cnlab-switch.ch/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad mikmod mpeg ncurses nls pdflib png quicktime sdl spell svga truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts tetex aalib tcltk X gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl acpi acpi4linux amd cdr curl dga doc dvd dvdr ethereal faad fbcon imagemagick ipv6 javascript joystick libgda maildir mmx nocd openssh pcmcia pnp radeon samba snmp sse tiff usagi usb xine video_cards_radeon"
root@foo axses #
|
thx |
|
Back to top |
|
|
HelloWorld82 n00b
Joined: 05 Oct 2003 Posts: 46 Location: Germany
|
Posted: Fri Nov 07, 2003 8:31 am Post subject: |
|
|
same problem for me. I'm compiling with :
-Os -march=athlon -fomit-frame-pointer --force-addr --force-mem -s -pipe
HelloWorld |
|
Back to top |
|
|
axses Tux's lil' helper
Joined: 18 Mar 2003 Posts: 110
|
Posted: Fri Nov 07, 2003 9:42 am Post subject: |
|
|
I got some one to compile me a binary package and used emerge -K to install it
:-9 |
|
Back to top |
|
|
HelloWorld82 n00b
Joined: 05 Oct 2003 Posts: 46 Location: Germany
|
Posted: Fri Nov 07, 2003 3:11 pm Post subject: |
|
|
oh ... can i have the binary package ? |
|
Back to top |
|
|
FishB8 l33t
Joined: 17 Mar 2003 Posts: 820
|
Posted: Fri Jan 02, 2004 1:17 am Post subject: |
|
|
I came across this problem today and this is the only forum entry I could find of the same problem. I checked and there is a bug filed for this and from reading a comment in the bug list I found that the problem is from a patch that is being applied to make it compile with the 2.6 kernel.
Since I using a 2.4 kernel I didn't need this patch, and removing it fixed the build problem. If any body else is having the same problems with a 2.4 kernel you can disable two of the patches and it should build fine.
Quote: |
nano -w /usr/portage/media-libs/svgalibs/svgalib-1.9.17-r3.ebuild
|
I'm trying to build 1.9.17-r3, change the version you're using accordingly
within the section src_unpack() comment out the lines with the bad patches by placing a # in front of them so that they read something like:
Quote: |
# epatch ${FILESDIR}/${P}-linux2.6.patch
# epatch ${FILESDIR}/${P}-modversions_h.patch
|
Then just emerge.
Happy Building. |
|
Back to top |
|
|
Tom Brown n00b
Joined: 24 Aug 2002 Posts: 36 Location: Saskatchewan, Canada
|
Posted: Fri Jan 16, 2004 6:09 pm Post subject: |
|
|
Thanks, FishB8.
That worked with vanilla sources 2.4.24 here. |
|
Back to top |
|
|
OhSh33t Apprentice
Joined: 03 Sep 2003 Posts: 169 Location: South-Seattle Park
|
Posted: Sat Jan 17, 2004 10:32 am Post subject: |
|
|
FishB8 said: Quote: |
Since I using a 2.4 kernel I didn't need this patch, and removing it fixed the build problem.
|
So did you actually remove the whole .ebuild ? Or do you mean that you kept the said .ebuild but modified it by commenting out the lines you specified?
E.G.
Code: |
# epatch ${FILESDIR}/${P}-linux2.6.patch
# epatch ${FILESDIR}/${P}-modversions_h.patch
|
I'm running 2.4.20-gentoo-r7 and commenting out those two lines doesn't stop this build from failing. I get the same exact results after using your suggestions.
Code: |
!!! ERROR: media-libs/svgalib-1.9.17-r3 failed.
!!! Function src_compile, Line 52, Exitcode 2
!!! Failed to build kernel module!
|
I'm almost assuming that I can "rm" this ebuild because it appears to be for the 2.6.x kernel, but I'm unsure from reading your post. Please let me know if you can. In the mean time the only thing that I can do is "rm" the ebuild so that I can finish compiling my other ebuilds. Hopefully my decision wont effect anything. I will soon find out. Heh... Heh...
I'm a noob when it comes to troubleshooting Portage errors and how to work around them. It appears that I will be a pro in a very short time though , as it seems that there seem to be allot of broken packages/.ebuilds circulating.
Anyways this is what I have listed in my svgalib dir if it matters:
root@fusion1 svgalib # dir
ChangeLog Manifest files svgalib-1.4.3-r4.ebuild svgalib-1.9.17-r2.ebuild svgalib-1.9.17-r3.ebuild
Thanks for any help or suggestions.
[/code] _________________ JB |
|
Back to top |
|
|
andyl n00b
Joined: 16 Jan 2004 Posts: 4 Location: Cincinnati, OH, USA
|
Posted: Sat Jan 17, 2004 2:14 pm Post subject: |
|
|
Commenting out those lines from the ebuild fixed the issue with linux-2.4.22-gentoo-r4.
Thanks for your help. |
|
Back to top |
|
|
Montana n00b
Joined: 31 Dec 2003 Posts: 12
|
Posted: Sun Jan 18, 2004 7:10 am Post subject: |
|
|
I had the same problem in a Athlon-XP running gentoo-sources-2.4.20-r9 and on a P4 running gentoo-sources-2.4.22-r2.
Commenting out those two lines helped on both machines.
Thanks |
|
Back to top |
|
|
Montana n00b
Joined: 31 Dec 2003 Posts: 12
|
Posted: Sun Jan 18, 2004 7:33 am Post subject: |
|
|
Sorry little correction from my side. The errors occured only on Pentiums (P2 and P4) both running gentoo-sources-2.4.22-r2.
On the Athlon with gentoo-sources-2.4.20-r9 the emerging went without any modifying of the svgalib ebuild.
Thanks again |
|
Back to top |
|
|
jcosters Tux's lil' helper
Joined: 26 Feb 2003 Posts: 104 Location: Gent, Belgium
|
Posted: Sun Jan 18, 2004 9:57 am Post subject: |
|
|
I had the same problem because before I updated svgalib, I ran make mrproper in the kernel source tree and did not complete the kernel build, which deleted several autogenerated files, including modverions.h.
Completing the kernel build before building svgalib solved the problem. |
|
Back to top |
|
|
dstutz97 Tux's lil' helper
Joined: 14 Apr 2003 Posts: 80
|
Posted: Fri Jan 23, 2004 7:06 am Post subject: Me too! |
|
|
Another "Me too!"
Kernel: vanilla-2.4.24
Solution: commented out the 2 patches
Thanks! |
|
Back to top |
|
|
rickj Guru
Joined: 06 Feb 2003 Posts: 427 Location: Calgary, Alberta, Canada
|
Posted: Thu Jan 29, 2004 4:22 pm Post subject: |
|
|
Commenting out these lines works for me.
kernel: vanilla-sources 2.4.24
machine: Athlon
CFLAGS:"-march=athlon -O3 -pipe"
I put a cross-reference to this thread in the bug report, just so these 2.6 adventurers know. |
|
Back to top |
|
|
weirdalex n00b
Joined: 25 Nov 2003 Posts: 22
|
Posted: Fri Jan 30, 2004 9:31 am Post subject: |
|
|
commenting those two lines worked for me as well
THANKS !
kernel: vanilla-sources 2.4.24
machine: Pentium4 _________________ Simply Gentoo... |
|
Back to top |
|
|
quantumwire Guru
Joined: 15 Oct 2003 Posts: 403 Location: Lausanne
|
Posted: Fri Jan 30, 2004 10:25 am Post subject: |
|
|
weirdalex wrote: | commenting those two lines worked for me as well
THANKS !
kernel: vanilla-sources 2.4.24
machine: Pentium4 |
The same for me!!!
Thanks guy! _________________ HOWTO 1: Spegnere il laptop!
HOWTO 2: Comprimere i DVDs! |
|
Back to top |
|
|
raaf Apprentice
Joined: 31 Dec 2003 Posts: 293 Location: Kraków
|
Posted: Fri Jan 30, 2004 12:19 pm Post subject: Tip: Styles can be applied quickly to selected text. |
|
|
axses wrote: | Hi
I cannot emerge svgalib , have tried us x86 and ~x86 , nothing works .
Code: |
Entering directory `/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/threeDKit'
rm -f lib3dkit.a
ar rcs lib3dkit.a
make: Leaving directory `/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/threeDKit'
make: Entering directory `/var/tmp/portage/svgalib-1.9.17-r3/work/svgalib-1.9.17/kernel/svgalib_helper'
rm -f *.ko *.o *~ core .depend *.bak *.orig
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] 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 52, Exitcode 2
!!! Failed to build kernel module!
|
Here my emerge info
Code: |
root@foo axses # emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.4.22-gentoo-test-r0)
=================================================================
System uname: 2.4.22-gentoo-test-r0 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.3.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox autoaddcvs ccache"
GENTOO_MIRRORS="rsync://ftp.snt.utwente.nl/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://sunsite.cnlab-switch.ch/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad mikmod mpeg ncurses nls pdflib png quicktime sdl spell svga truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts tetex aalib tcltk X gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl acpi acpi4linux amd cdr curl dga doc dvd dvdr ethereal faad fbcon imagemagick ipv6 javascript joystick libgda maildir mmx nocd openssh pcmcia pnp radeon samba snmp sse tiff usagi usb xine video_cards_radeon"
root@foo axses #
|
thx |
hi!
try this USE="build" emerge svgalib
this works for me!
regards
raaf |
|
Back to top |
|
|
Belinus n00b
Joined: 05 Sep 2003 Posts: 26
|
Posted: Mon Feb 02, 2004 2:54 pm Post subject: |
|
|
Commenting those two lines out in the eBuild file works for the kernel.org sources for 2.4.24. |
|
Back to top |
|
|
Pink Veteran
Joined: 24 Jul 2003 Posts: 1062
|
Posted: Tue Feb 03, 2004 11:57 am Post subject: |
|
|
You've gotta love these forums....
Worked for me |
|
Back to top |
|
|
nuclear n00b
Joined: 03 Dec 2003 Posts: 9
|
Posted: Sun Feb 08, 2004 7:07 am Post subject: |
|
|
Yep worked here march=pentium4, vanilla-sources-2.4.24
No more banging head on wall! |
|
Back to top |
|
|
|