You are not logged in.

#1 2010-08-23 04:16:23

poopship21
Member
Registered: 2009-05-13
Posts: 177

ctxfi installation error: missing "driver.h" in ./sound

this is an old card that i havent used in ages.  however the package seems to be installed rather frequently from the AUR.  installation fails with the following output:

==> ctxfi dependencies:
 - kernel26 (already installed)


==> Edit ctxfi.install ? [Y/n] ("A" to abort)
==> -----------------------------------------
==> n

==> Continue building ctxfi ? [Y/n]
==> -------------------------------
==> 
==> Building and installing package
==> Making package: ctxfi 1.00-4 (Sun Aug 22 23:37:51 EDT 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Downloading XFiDrv_Linux_Public_US_1.00.tar.gz...
--2010-08-22 23:37:51--  http://ccftp.creative.com/manualdn/Drivers/AVP/10792/0x0343D29A/XFiDrv_Linux_Public_US_1.00.tar.gz
Resolving ccftp.creative.com... 124.246.79.251
Connecting to ccftp.creative.com|124.246.79.251|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 70448 (69K) [application/x-gzip]
Saving to: "XFiDrv_Linux_Public_US_1.00.tar.gz.part"

100%[========================================================================================================================================================================>] 70,448      19.7K/s   in 3.5s    

2010-08-22 23:38:22 (19.7 KB/s) - "XFiDrv_Linux_Public_US_1.00.tar.gz.part" saved [70448/70448]

  -> Found ctxfi-1.00.diff
==> Validating source files with md5sums...
    XFiDrv_Linux_Public_US_1.00.tar.gz ... Passed
    ctxfi-1.00.diff ... Passed
==> Extracting Sources...
  -> Extracting XFiDrv_Linux_Public_US_1.00.tar.gz with bsdtar
==> Entering fakeroot environment...
==> Starting build()...
patching file cthw20k1.c
patching file cthw20k2.c
patching file Makefile
patching file CEULA
make -C /lib/modules/2.6.32-lts/build M=/tmp/yaourt-tmp-au/aur-ctxfi/src/XFiDrv_Linux_Public_US_1.00
make[1]: Entering directory `/usr/src/linux-2.6.32-lts'
  LD      /tmp/yaourt-tmp-au/aur-ctxfi/src/XFiDrv_Linux_Public_US_1.00/built-in.o
  CC [M]  /tmp/yaourt-tmp-au/aur-ctxfi/src/XFiDrv_Linux_Public_US_1.00/xfi.o
/tmp/yaourt-tmp-au/aur-ctxfi/src/XFiDrv_Linux_Public_US_1.00/xfi.c:14:26: fatal error: sound/driver.h: No such file or directory
compilation terminated.
make[2]: *** [/tmp/yaourt-tmp-au/aur-ctxfi/src/XFiDrv_Linux_Public_US_1.00/xfi.o] Error 1
make[1]: *** [_module_/tmp/yaourt-tmp-au/aur-ctxfi/src/XFiDrv_Linux_Public_US_1.00] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.32-lts'
make: *** [all] Error 2
    Aborting...
==> ERROR: Makepkg was unable to build ctxfi.
==> Restart building ctxfi ? [y/N]
==> ------------------------------
==> 

realizing that there might be something going on with this package i downloaded this driver from creative and tried going with that.  i didnt get very far:

[au@arroyo1 XFiDrv_Linux_Public_US_1.00]$ sudo make
make -C /lib/modules/2.6.32-lts/build M=/home/au/Downloads/docs/source/XFiDrv_Linux_Public_US_1.00
make[1]: Entering directory `/usr/src/linux-2.6.32-lts'
  CC [M]  /home/au/Downloads/docs/source/XFiDrv_Linux_Public_US_1.00/xfi.o
/home/au/Downloads/docs/source/XFiDrv_Linux_Public_US_1.00/xfi.c:14:26: fatal error: sound/driver.h: No such file or directory
compilation terminated.
make[2]: *** [/home/au/Downloads/docs/source/XFiDrv_Linux_Public_US_1.00/xfi.o] Error 1
make[1]: *** [_module_/home/au/Downloads/docs/source/XFiDrv_Linux_Public_US_1.00] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.32-lts'
make: *** [all] Error 2


anyone see this before?  any help would be hugely appreciated.
TIA

Offline

#2 2010-08-23 04:52:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: ctxfi installation error: missing "driver.h" in ./sound

'/usr/src/linux-2.6.32-lts'
What kernel are you using?

This driver is pretty old, KERNEL_VERSION=2.6.28-ARCH is mentioned http://aur.archlinux.org/packages/ctxfi … fi.install

Offline

#3 2010-08-23 16:38:32

poopship21
Member
Registered: 2009-05-13
Posts: 177

Re: ctxfi installation error: missing "driver.h" in ./sound

thanks karol for your reply.  here is the requested information:

[au@arroyo1 ~]$ uname -a
Linux arroyo1 2.6.32-lts #1 SMP Sat Aug 14 21:56:29 CEST 2010 x86_64 AMD Phenom(tm) II X4 965 Processor AuthenticAMD GNU/Linux

are you thinking that maybe the permissions on one or more directories have been changed for kernels since the installer was created?

Last edited by poopship21 (2010-08-23 16:40:56)

Offline

#4 2010-08-23 16:52:36

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: ctxfi installation error: missing "driver.h" in ./sound

And may I ask why aren't you using the current kernel?

Honestly, I have no idea why that driver throws some errors, I'll look into that but I'm no guru.

Offline

#5 2010-08-23 19:42:54

poopship21
Member
Registered: 2009-05-13
Posts: 177

Re: ctxfi installation error: missing "driver.h" in ./sound

karol wrote:

And may I ask why aren't you using the current kernel?

i downgraded because the drivers for the ati 785g chipset integrated hd4200 graphics were refusing to install on kernel version 2.6.35.  btw, you dont happen to have any information on implementing SPDIF (as on coax, which are missing on this particular board) over analog line outs from a Realtek ALC889A codec?  im not sure if this is even possible as a configuration option but its going to be my only option for running digital audio out of the ALC889A since it lacks coaxial.  TIA


NB:
the 785g chipset came with a processor upgrade that i was forced to implement after MCEs started bringing down my system (more properly occurred in conjunction with system crashes) about every 12 hours.  this was an old issue which would intermittently come up.  i was using an old core 2 duo and my theory is that it never really supported x86_64.

Offline

#6 2010-08-23 19:46:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: ctxfi installation error: missing "driver.h" in ./sound

But why not stay with 2.6.34? If I understand correctly -lts is quite a different beast from the regular kernel http://www.archlinux.org/packages/?sort … po=&q=-lts

I suggest you contact the maintainer http://aur.archlinux.org/account.php?Ac … o&ID=11163, he will know best what to do.

Last edited by karol (2010-08-23 20:02:08)

Offline

#7 2010-08-24 00:04:53

scorpyn
Member
From: Sweden
Registered: 2008-01-29
Posts: 66

Re: ctxfi installation error: missing "driver.h" in ./sound

The module included with the kernel works for me, are you sure you need this package?

Offline

#8 2010-08-25 02:51:58

poopship21
Member
Registered: 2009-05-13
Posts: 177

Re: ctxfi installation error: missing "driver.h" in ./sound

scorpyn wrote:

The module included with the kernel works for me, are you sure you need this package?

thanks i had no idea it was part of the kernel yet.  i have been happily using an onboard solution that was part of a now discarded component as stated above since before the release of the source by Creative.  following your post i have investigated the kernel module and have it loaded now:

[au@arroyo1 ~]$ sudo lspci -vv

04:06.0 Multimedia audio controller: Creative Labs SB X-Fi
        Subsystem: Creative Labs X-Fi Platinum
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 32 (1000ns min, 1250ns max)
        Interrupt: pin A routed to IRQ 20
        Region 0: I/O ports at bf00 [size=32]
        Region 1: Memory at dbc00000 (64-bit, non-prefetchable) [size=2M]
        Region 3: Memory at d4000000 (64-bit, non-prefetchable) [size=64M]
        Capabilities: [40] Power Management version 2
                Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Kernel driver in use: SB-XFi
        Kernel modules: snd-ctxfi

but oss is giving me no joy.  so here is /usr/lib/oss/etc/installed_drivers, which includes the device of interest uncommented (as per the wiki) and after that an invocation of "#soundoff && soundon" to show that the remaining elements of this post arent the result of some previous configuration:

[au@arroyo1 ~]$ cat /usr/lib/oss/etc/installed_drivers 
oss_sbxfi #Creative SB X-Fi 20K1 *EARLY BETA*
#oss_hdaudio #ATI High Definition Audio (SB600)
#oss_usb #Generic USB audio/MIDI device (BETA)
[au@arroyo1 ~]$ sudo soundoff
No mixers in the system
[au@arroyo1 ~]$ sudo soundon

here is what this actually provide me with:

[au@arroyo1 ~]$ ossinfo -a

Audio devices

Nodes
  /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0

according to installed_drivers, oss_hdaudio is off limits yet it appears above.

the strangest part is that this system was booted with "!snd-hda-intel" as shown below in a segment of /etc/rc.conf (unchanged after boot):

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(!soundcore !alsa !nouveau !snd-hda-intel nvidia nfs fuse snd-ctxfi)

paging up a few lines in the output of "lspci -vv" (already invoked above), it becomes obvious that i have thought the kernel to do one thing while it was told it to do something else:

00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
        Subsystem: Giga-byte Technology Device a102
        Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at fe024000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel modules: snd-hda-intel

so my question is: how to absolutely loose the onboard audio codec which i have no hope of using for PCM out (since the back panel is all $%&ing toslink + a pretty-colored array of analog 1/8" jacks) and make arch use the ancient X-Fi that i dug out of the closet and plugged in last night that oss apparently sees but does not [like?]?

again, TIA and thanks for the previous replies.

Offline

#9 2010-08-26 02:38:33

scorpyn
Member
From: Sweden
Registered: 2008-01-29
Posts: 66

Re: ctxfi installation error: missing "driver.h" in ./sound

I'm sure there is a clever linux solution to that problem, but I haven't bothered to find one. Instead, I disabled my onboard sound in the bios settings.

Offline

#10 2010-08-26 14:13:00

poopship21
Member
Registered: 2009-05-13
Posts: 177

Re: ctxfi installation error: missing "driver.h" in ./sound

well i finally gave up on OSS.  even in cases where ctxfi is working at all (ie there are Creative devices seen by OSS) i still see users who cannot use SPDIF and experienced users (much less ignorant than me) who dispair of ctxfi spdif support in OSS.  The 785g chipset provides adequate analog stereo line outs in OSS and the only reason i plugged in this old pci card was for digital IO so I have switched to ALSA and everything has gone swimmingly.  Hopefully someday I will shell out for a card with $actual$ hi-fi and better OSS support.  M-Audio has 64-bit drivers for selected models and high-quality drivers from 4Front for its Delta series since 2004.  These are expensive add-ons but I will eat thermal paste before spending money on another card from Creative.

Offline

Board footer

Powered by FluxBB