Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
svgalib
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
axses
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2003
Posts: 110

PostPosted: Sun Nov 02, 2003 9:34 pm    Post subject: svgalib Reply with quote

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
View user's profile Send private message
HelloWorld82
n00b
n00b


Joined: 05 Oct 2003
Posts: 46
Location: Germany

PostPosted: Fri Nov 07, 2003 8:31 am    Post subject: Reply with quote

same problem for me. I'm compiling with :
-Os -march=athlon -fomit-frame-pointer --force-addr --force-mem -s -pipe

HelloWorld
Back to top
View user's profile Send private message
axses
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2003
Posts: 110

PostPosted: Fri Nov 07, 2003 9:42 am    Post subject: Reply with quote

I got some one to compile me a binary package and used emerge -K to install it

:-9
Back to top
View user's profile Send private message
HelloWorld82
n00b
n00b


Joined: 05 Oct 2003
Posts: 46
Location: Germany

PostPosted: Fri Nov 07, 2003 3:11 pm    Post subject: Reply with quote

oh ... can i have the binary package ? :)
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Fri Jan 02, 2004 1:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Tom Brown
n00b
n00b


Joined: 24 Aug 2002
Posts: 36
Location: Saskatchewan, Canada

PostPosted: Fri Jan 16, 2004 6:09 pm    Post subject: Reply with quote

Thanks, FishB8. :)

That worked with vanilla sources 2.4.24 here.
Back to top
View user's profile Send private message
OhSh33t
Apprentice
Apprentice


Joined: 03 Sep 2003
Posts: 169
Location: South-Seattle Park

PostPosted: Sat Jan 17, 2004 10:32 am    Post subject: Reply with quote

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... :P

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 :D, 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
View user's profile Send private message
andyl
n00b
n00b


Joined: 16 Jan 2004
Posts: 4
Location: Cincinnati, OH, USA

PostPosted: Sat Jan 17, 2004 2:14 pm    Post subject: Reply with quote

Commenting out those lines from the ebuild fixed the issue with linux-2.4.22-gentoo-r4.

Thanks for your help.
Back to top
View user's profile Send private message
Montana
n00b
n00b


Joined: 31 Dec 2003
Posts: 12

PostPosted: Sun Jan 18, 2004 7:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Montana
n00b
n00b


Joined: 31 Dec 2003
Posts: 12

PostPosted: Sun Jan 18, 2004 7:33 am    Post subject: Reply with quote

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
View user's profile Send private message
jcosters
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2003
Posts: 104
Location: Gent, Belgium

PostPosted: Sun Jan 18, 2004 9:57 am    Post subject: Reply with quote

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
View user's profile Send private message
dstutz97
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2003
Posts: 80

PostPosted: Fri Jan 23, 2004 7:06 am    Post subject: Me too! Reply with quote

Another "Me too!"
Kernel: vanilla-2.4.24
Solution: commented out the 2 patches
Thanks!
Back to top
View user's profile Send private message
rickj
Guru
Guru


Joined: 06 Feb 2003
Posts: 427
Location: Calgary, Alberta, Canada

PostPosted: Thu Jan 29, 2004 4:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
weirdalex
n00b
n00b


Joined: 25 Nov 2003
Posts: 22

PostPosted: Fri Jan 30, 2004 9:31 am    Post subject: Reply with quote

commenting those two lines worked for me as well
THANKS !
:)

kernel: vanilla-sources 2.4.24
machine: Pentium4
_________________
Simply Gentoo...
Back to top
View user's profile Send private message
quantumwire
Guru
Guru


Joined: 15 Oct 2003
Posts: 403
Location: Lausanne

PostPosted: Fri Jan 30, 2004 10:25 am    Post subject: Reply with quote

weirdalex wrote:
commenting those two lines worked for me as well
THANKS !
:)

kernel: vanilla-sources 2.4.24
machine: Pentium4


The same for me!!! :lol:
Thanks guy!
_________________
HOWTO 1: Spegnere il laptop!
HOWTO 2: Comprimere i DVDs!
Back to top
View user's profile Send private message
raaf
Apprentice
Apprentice


Joined: 31 Dec 2003
Posts: 293
Location: Kraków

PostPosted: Fri Jan 30, 2004 12:19 pm    Post subject: Tip: Styles can be applied quickly to selected text. Reply with quote

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
View user's profile Send private message
Belinus
n00b
n00b


Joined: 05 Sep 2003
Posts: 26

PostPosted: Mon Feb 02, 2004 2:54 pm    Post subject: Reply with quote

Commenting those two lines out in the eBuild file works for the kernel.org sources for 2.4.24.
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Tue Feb 03, 2004 11:57 am    Post subject: Reply with quote

You've gotta love these forums....

Worked for me :lol:
Back to top
View user's profile Send private message
nuclear
n00b
n00b


Joined: 03 Dec 2003
Posts: 9

PostPosted: Sun Feb 08, 2004 7:07 am    Post subject: Reply with quote

Yep :) worked here march=pentium4, vanilla-sources-2.4.24

No more banging head on wall! :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum