Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error in compiling 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
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Sun Mar 16, 2003 11:07 am    Post subject: Error in compiling svgalib Reply with quote

When emerge svgalib:
Code:
make: Entering directory `/var/tmp/portage/svgalib-1.9.17-r1/work/svgalib-1.9.17/kernel/svgalib_helper'
gcc -O2 -DLINUX -Dlinux -D__KERNEL__ -DMODULE -Wall   -I/usr/src/linux/include -DSVGALIB_HELPER_MAJOR=209 -M *.c > .depend
In file included from /usr/src/linux/include/linux/module.h:11,
                 from main.c:1:
/usr/src/linux/include/linux/spinlock.h:223:1: warning: "read_unlock" redefined
In file included from /usr/src/linux/include/linux/spinlock.h:57,
                 from /usr/src/linux/include/linux/module.h:11,
                 from main.c:1:
/usr/include/asm/spinlock.h:200:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/module.h:11,
                 from main.c:1:
/usr/src/linux/include/linux/spinlock.h:225:1: warning: "write_unlock" redefined
In file included from /usr/src/linux/include/linux/spinlock.h:57,
                 from /usr/src/linux/include/linux/module.h:11,
                 from main.c:1:
/usr/include/asm/spinlock.h:201:1: warning: this is the location of the previous definition
gcc -O2 -DLINUX -Dlinux -D__KERNEL__ -DMODULE -Wall   -I/usr/src/linux/include -DSVGALIB_HELPER_MAJOR=209   -c -o main.o main.c
In file included from /usr/src/linux/include/linux/module.h:11,
                 from main.c:1:
/usr/src/linux/include/linux/spinlock.h:223:1: warning: "read_unlock" redefined
In file included from /usr/src/linux/include/linux/spinlock.h:57,
                 from /usr/src/linux/include/linux/module.h:11,
                 from main.c:1:
/usr/include/asm/spinlock.h:200:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/module.h:11,
                 from main.c:1:
/usr/src/linux/include/linux/spinlock.h:225:1: warning: "write_unlock" redefined
In file included from /usr/src/linux/include/linux/spinlock.h:57,
                 from /usr/src/linux/include/linux/module.h:11,
                 from main.c:1:
/usr/include/asm/spinlock.h:201:1: warning: this is the location of the previous definition
In file included from /usr/src/linux/include/linux/mm.h:4,
                 from /usr/src/linux/include/linux/slab.h:14,
                 from main.c:4:
/usr/src/linux/include/linux/sched.h: In function `unhash_process':
/usr/src/linux/include/linux/sched.h:943: warning: implicit declaration of function `_raw_write_lock'
/usr/src/linux/include/linux/sched.h:948: warning: implicit declaration of function `_raw_write_unlock'
/usr/src/linux/include/linux/sched.h: In function `task_lock':
/usr/src/linux/include/linux/sched.h:954: warning: implicit declaration of function `_raw_spin_lock'
/usr/src/linux/include/linux/sched.h: In function `task_unlock':
/usr/src/linux/include/linux/sched.h:959: warning: implicit declaration of function `_raw_spin_unlock'
/usr/src/linux/include/linux/sched.h: In function `d_path':
/usr/src/linux/include/linux/sched.h:969: warning: implicit declaration of function `_raw_read_lock'
/usr/src/linux/include/linux/sched.h:972: warning: implicit declaration of function `_raw_read_unlock'
In file included from /usr/src/linux/include/linux/highmem.h:5,
                 from /usr/src/linux/include/linux/vmalloc.h:8,
                 from /usr/include/asm/io.h:47,
                 from /usr/include/asm/pci.h:35,
                 from /usr/src/linux/include/linux/pci.h:622,
                 from main.c:12:
/usr/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/include/asm/pgalloc.h:78: structure has no member named `processor'
/usr/include/asm/pgalloc.h:79: structure has no member named `processor'
/usr/include/asm/pgalloc.h:81: structure has no member named `processor'
/usr/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/include/asm/pgalloc.h:89: structure has no member named `processor'
/usr/include/asm/pgalloc.h:90: structure has no member named `processor'
/usr/include/asm/pgalloc.h:91: structure has no member named `processor'
/usr/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/include/asm/pgalloc.h:122: structure has no member named `processor'
/usr/include/asm/pgalloc.h:123: structure has no member named `processor'
/usr/include/asm/pgalloc.h:125: structure has no member named `processor'
/usr/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/include/asm/pgalloc.h:132: structure has no member named `processor'
/usr/include/asm/pgalloc.h:133: structure has no member named `processor'
/usr/include/asm/pgalloc.h:134: structure has no member named `processor'
make: *** [main.o] Error 1
make: Leaving directory `/var/tmp/portage/svgalib-1.9.17-r1/work/svgalib-1.9.17/kernel/svgalib_helper'

!!! ERROR: media-libs/svgalib-1.9.17-r1 failed.
!!! Function src_compile, Line 77, Exitcode 2
!!! Failed to build kernel module!

I tried CFLAGS all the way down to -march=athlon -O2 -pipe but still no luck
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
azote
Guru
Guru


Joined: 17 Sep 2002
Posts: 415

PostPosted: Sat Mar 22, 2003 9:24 pm    Post subject: Reply with quote

I got the same problem ... im using kernel 2.5.65
_________________
contact me -> azote@mail.i2p

What do you want to emerge today?

if you think that a person is normal, it is because you do not know them well
Back to top
View user's profile Send private message
Nakke
n00b
n00b


Joined: 15 Jan 2003
Posts: 13

PostPosted: Fri Mar 28, 2003 1:15 pm    Post subject: Reply with quote

Code:
main.c: In function `svgalib_helper_ioctl':
main.c:298: warning: implicit declaration of function `request_irq'
main.c:315: warning: implicit declaration of function `free_irq'
main.c:109: warning: `i' might be used uninitialized in this function
main.c: In function `svgalib_helper_open':
main.c:338: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:431)
main.c: In function `svgalib_helper_release':
main.c:344: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:443)
main.c: In function `init_module':
main.c:442: warning: implicit declaration of function `devfs_register_chrdev'
main.c:456: warning: null format string
main.c:456: warning: too many arguments for format
main.c:457: warning: implicit declaration of function `devfs_register_series'
main.c:460: too many arguments to function `devfs_mk_symlink'
main.c:461: warning: implicit declaration of function `devfs_auto_unregister'
main.c:515: `EXPORT_NO_SYMBOLS' undeclared (first use in this function)
main.c:515: (Each undeclared identifier is reported only once
main.c:515: for each function it appears in.)
main.c:522: warning: implicit declaration of function `devfs_unregister_chrdev'
make: *** [main.o] Error 1
make: Leaving directory `/var/tmp/portage/svgalib-1.9.17-r1/work/svgalib-1.9.17/kernel/svgalib_helper'

!!! ERROR: media-libs/svgalib-1.9.17-r1 failed.
!!! Function src_compile, Line 78, Exitcode 2
!!! Failed to build kernel module!


I tried on kernels 2.5.6x and different CFLAGS with no success. Even the small patch on https://bugs.gentoo.org/show_bug.cgi?id=11092 did not help.
Back to top
View user's profile Send private message
s0be
Apprentice
Apprentice


Joined: 23 Nov 2002
Posts: 240

PostPosted: Fri Mar 28, 2003 1:25 pm    Post subject: Reply with quote

kernel 2.5.59(I believe that's the version) and above have a MAJOR rewrite in devfs and that causes some packages (svgalib being the mose dominant one) to break compatibility. That's why it's a developmental kernal. I believe there is a patch for svgalib for 2.5.64 that fixes it but devfs is still going through some major changes. If all else fails, you could try compiling the kernel without devfs support, installing svgalib, then compiling the kernel with devfs support. I don't know how much luck you'll have. YMMV.

s0be
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