Need help - Newbie

  • windy3001
Posted: Fri, 04/17/2009 - 12:03
Hey all, Just installed 64Studio and noticed I had no sound. I went to the Creative website to get drivers for my sound card. When it came to making my install file I kept getting error messages like shown below: tom@dot-ii:~/Desktop/XFiDrv_Linux_Public_US_1.00$ make make -C /lib/modules/2.6.21-1-multimedia-amd64/build M=/home/tom/.Trash/XFiDrv_Linux_Public_US_1.00 make[1]: Entering directory `/usr/src/linux-headers-2.6.21-1-multimedia-amd64' CC [M] /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.o /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c: In function ‘put_src_rsc’: /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:569: error: size of array ‘type name’ is negative /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:569: warning: comparison of distinct pointer types lacks a cast /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:576: error: size of array ‘type name’ is negative /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:576: warning: comparison of distinct pointer types lacks a cast /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c: In function ‘put_srcimp_rsc’: /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:883: error: size of array ‘type name’ is negative /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:883: warning: comparison of distinct pointer types lacks a cast /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:887: error: size of array ‘type name’ is negative /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:887: warning: comparison of distinct pointer types lacks a cast /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c: In function ‘srcimp_imap_add’: /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:916: error: size of array ‘type name’ is negative /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:916: warning: comparison of distinct pointer types lacks a cast /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:922: error: size of array ‘type name’ is negative /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:922: warning: comparison of distinct pointer types lacks a cast /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c: In function ‘srcimp_imap_delete’: /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:936: error: size of array ‘type name’ is negative /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:936: warning: comparison of distinct pointer types lacks a cast /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:942: error: size of array ‘type name’ is negative /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:942: warning: comparison of distinct pointer types lacks a cast /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c: In function ‘srcimp_mgr_destroy’: /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:1004: error: size of array ‘type name’ is negative /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:1004: warning: comparison of distinct pointer types lacks a cast /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:1006: error: size of array ‘type name’ is negative /home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.c:1006: warning: comparison of distinct pointer types lacks a cast make[2]: *** [/home/tom/.Trash/XFiDrv_Linux_Public_US_1.00/ctsrc.o] Error 1 make[1]: *** [_module_/home/tom/.Trash/XFiDrv_Linux_Public_US_1.00] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.21-1-multimedia-amd64' make: *** [all] Error 2 Can anybody possibly help me out, I'm a complete newbie when it comes to Linux and any help would be greatly appreciated. Many thanks Tom

Patching

  • Quentin Harley
  • 05/24/07
  • Sun, 11/29/2009 - 20:44

If you need a 2.6.31 kernel, the best would be to roll your own from the kernel sources, rather than trying to hack it up piece by piece.

http://www.kernel.org/

Download the latest stable source, and patch it using the latest realtime kernel patch for that kernel:

http://www.kernel.org/pub/linux/kernel/projects/rt/

Build and install as per kernel building instructions of your choice

Kernel

  • Saturnyne
  • 10/11/07
  • Tue, 12/01/2009 - 17:57
Well, it's not so much that I care what version of the kernel I have, I just want to get my X-Fi working. Since my Audigy went the way of the dodo, I've had a silent 64 Studio for a few weeks now, and Creative's driver apparently contains some parameters that 2.6.21 doesn't agree with.

Hmmm...

  • Saturnyne
  • 10/11/07
  • Fri, 11/27/2009 - 04:41
Is it possible to patch the 2.6.21-1-multimedia-amd64 kernel up to say, 2.6.31.6? I've read a bit about patching kernels, but I'm hardly a Linux guru, so I thought I'd ask.

configuring from source

  • porisija
  • 09/29/07
  • Wed, 05/27/2009 - 19:10
At the beginning the compiler moves to the directory /usr/src/linux-headers-xx and then the problems begin. Apparently the 64Studio multimedia-kernel has a lot of modifications in the headers that make it impossible to compile the third-party driver. BTW, is there no ./configure script in the driver source directory? One possible solution is to compile a new kernel from source downloaded from kernel.org. This website: http://opensource.creative.com/soundcard.html has reports of tests made on quite generic or old Linux distros - I mean Ubuntu 7.10? You could use the Molnar RT-patch for patching your new kernel and try whether it works. The Debian way of making a kernel-package is quite straightforward once you've done it the first time. I configured and compiled a 2.6.29.3 kernel from source patched with RT to my 64Studio system. All was well except the package alsa-firmware kept dpkg from installing the kernel. I removed the problematic package - since I don't have any soundcards that need the ALSA firmware-loader - and after that I could install my "pimped" kernel. The kernel works fine - only GNOME has problems shutting itself, apparently a process priority issue. I have to use ctrl-alt-backspace to get out of X to GDM.

.Trash

  • Quentin Harley
  • 05/24/07
  • Sat, 04/18/2009 - 07:34
Why would you be trying to compile out of your trash folder? If I look at the error messages, it seems like you might have a dependency missing, or perhaps tying to compile the driver for the wrong architecture. This is just a guess.

Card

  • Quentin Harley
  • 05/24/07
  • Fri, 04/17/2009 - 13:32
Hi Tom, Your creative card should be supported out of the box... It might be something as simple as unmuting the main volume, or (as in my case) switching from digital output to analog after install. What card do you own? Cheers, Quentin

Hey Quentin, I'm using a

  • windy3001
  • 04/17/09
  • Fri, 04/17/2009 - 21:03
Hey Quentin, I'm using a Creative Sound Blaster X-Fi. I'll give some of the suggestion a go. Any ideas why I can't make the install file? Many thanks, Tom