
Dance Dance Dance!Bakou wrote:http://www.phoronix.com/scan.php?page=a ... =990&num=1
*does the open source dance*![]()
I also posted on this here, please show your support!
http://forums.gentoo.org/viewtopic-t-657596.html
Portage 2.1.3.19 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r6 x86_64 Intel(R) Core(TM)2 Quad CPU @ 2.40GHz
Timestamp of tree: Thu, 07 Feb 2008 17:00:01 +0000
app-shells/bash: 3.2_p17-r1
dev-lang/python: 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distfiles distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/dis ... ons/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi akode alsa amd64 arts audiofile berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox flac fortran gdbm gif gphoto2 gpm gstreamer hal iconv ipv6 isdnlog jpeg kde kerberos ldap lm_sensors logitech-mouse mad midi mikmod mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection sdl session smp spell spl sse sse2 ssl ssse3 svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis xine xml xorg xv xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
blubbi wrote:Okay, I tried to compile against 2.6.23-rc8 without success:
gcc -Wall -fomit-frame-pointer -Os -fno-strict-aliasing -pipe -D__CT_SYS_LINUX -DNO_SWSYNTH -D_
_CT_LITTLE_ENDIAN -DNO_NEWDELETE_OVERLOAD -DUSE_CALLBACKS_EX -DNATIVE_OPENAL -DCTAUDBINARY -DKB
UILD_MODNAME="x-fi" -I../../include -isystem /lib/modules/2.6.23-rc8/source/include -I/lib/mo
dules/2.6.23-rc8/source/include/asm/mach-default -I/lib/modules/2.6.23-rc8/source/include -D__
KERNEL__ -DMODULE -mcmodel=kernel -D__x86_64__ -m64 -mno-red-zone -fno-reorder-blocks -Wno-sign
-compare -fno-asynchronous-unwind-tables -D__CT_SYS_LINUX_AMD64 -D__CT_BOUND_64BIT -c LinuxSys.
c
LinuxSys.c: In function ‘sysRegisterInterrupt’:
LinuxSys.c:637: warning: cast from pointer to integer of different size
LinuxSys.c:642: warning: ‘deprecated_irq_flag’ is deprecated (declared at /lib/modules/2.6.23-r
c8/source/include/linux/interrupt.h:64)
LinuxSys.c:642: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
LinuxSys.c: In function ‘sysGetPagePhysAddr’:
LinuxSys.c:947: warning: passing argument 1 of ‘kvirt_to_phys’ makes integer from pointer witho
ut a cast
LinuxSys.c: In function ‘sysGetPageBusAddr’:
LinuxSys.c:974: warning: passing argument 1 of ‘kvirt_to_bus’ makes integer from pointer withou
t a cast
LinuxSys.c: In function ‘sysOpenCreateFile’:
LinuxSys.cerror: ‘O_RDWR’ undeclared (first use in this function)
LinuxSys.cerror: (Each undeclared identifier is reported only once
LinuxSys.cerror: for each function it appears in.)
LinuxSys.cerror: ‘O_CREAT’ undeclared (first use in this function)
LinuxSys.cerror: ‘O_RDONLY’ undeclared (first use in this function)
LinuxSys.cerror: ‘O_WRONLY’ undeclared (first use in this function)
LinuxSys.cwarning: implicit declaration of function ‘filp_open’
LinuxSys.cwarning: assignment makes pointer from integer without a cast
LinuxSys.cwarning: implicit declaration of function ‘filp_close’
LinuxSys.c: In function ‘sysGetFileSize’:
LinuxSys.cwarning: assignment makes pointer from integer without a cast
LinuxSys.cerror: dereferencing pointer to incomplete type
LinuxSys.c: In function ‘sysWriteFile’:
LinuxSys.cwarning: assignment makes pointer from integer without a cast
LinuxSys.cerror: dereferencing pointer to incomplete type
LinuxSys.cerror: dereferencing pointer to incomplete type
LinuxSys.cerror: dereferencing pointer to incomplete type
LinuxSys.c: In function ‘sysReadFile’:
LinuxSys.cwarning: assignment makes pointer from integer without a cast
LinuxSys.cerror: dereferencing pointer to incomplete type
LinuxSys.cerror: dereferencing pointer to incomplete type
LinuxSys.cerror: dereferencing pointer to incomplete type
make[1]: *** [LinuxSys.o] Error 1
make[1]: Leaving directory `/home/blub/Desktop/x-fi/XFiDrv_Linux_US-1.04/src/ossrv'
make: *** [ctossrv] Error 2
gonna try it against 2.6.22.8
regards
blubbi
Code: Select all
gcc -Wall -fomit-frame-pointer -Os -fno-strict-aliasing -pipe -D__CT_SYS_LINUX -DNO_SWSYNTH -D__CT_LITTLE_ENDIAN -DNO_NEWDELETE_OVERLOAD -DUSE_CALLBACKS_EX -DNATIVE_OPENAL -DCTAUDBINARY -DKBUILD_MODNAME=\"x-fi\" -I../../include -isystem /lib/modules/2.6.24-gentoo/source/include -I/lib/modules/2.6.24-gentoo/source/include/asm/mach-default -I/lib/modules/2.6.24-gentoo/source/include -D__KERNEL__ -DMODULE -mcmodel=kernel -D__x86_64__ -m64 -mno-red-zone -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -D__CT_SYS_LINUX_AMD64 -D__CT_BOUND_64BIT -M LinuxReg.c LinuxSys.c ctossrv_main.c osutils.c > .depend
LinuxReg.c:16:30: error: asm-x86_64/param.h: No such file or directory
LinuxSys.c:19:30: error: asm-x86_64/param.h: No such file or directory
ctossrv_main.c:16:30: error: asm-x86_64/param.h: No such file or directory
osutils.c:17:30: error: asm-x86_64/param.h: No such file or directory
make[1]: *** [.depend] Error 1
make[1]: Leaving directory `/home/morlipf/Downloads/XFiDrv_Linux_US-1.04/XFiDrv_Linux_US-1.04/src/ossrv'
make: *** [ctossrv] Error 2
the first six pages of this thread aren't too much to read, are they?jmrk wrote:I just found out how to make the driver compile using kernel 2.6.23(-gentoo-r1) (and gcc-4.2.2, not sure whether the gcc version affects it). I had the same problem as K_O-Gnom, i.e. errors when trying to "make".
This is what I did:
open XFiDrv_Linux_US-1.04/src/ossrv/LinuxSys.c
and add the following include-lines somewhere at the top of the file:After this fix, the driver compiled without errors.Code: Select all
//added for 2.6.23 kernel #include <linux/fs.h> #include <asm-generic/fcntl.h>
Code: Select all
#include <asm-x86/param.h>Code: Select all
ks -Wno-sign-compare -fno-asynchronous-unwind-tables -D__CT_SYS_LINUX_AMD64 -D__CT_BOUND_64BIT -c LinuxReg.c
gcc -Wall -fomit-frame-pointer -Os -fno-strict-aliasing -pipe -D__CT_SYS_LINUX -DNO_SWSYNTH -D__CT_LITTLE_ENDIAN -DNO_NEWDELETE_OVERLOAD -DUSE_CALLBACKS_EX -DNATIVE_OPENAL -DCTAUDBINARY -DKBUILD_MODNAME=\"x-fi\" -I../../include -isystem /lib/modules/2.6.24-gentoo-r2/source/include -I/lib/modules/2.6.24-gentoo-r2/source/include/asm/mach-default -I/lib/modules/2.6.24-gentoo-r2/source/include -D__KERNEL__ -DMODULE -mcmodel=kernel -D__x86_64__ -m64 -mno-red-zone -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -D__CT_SYS_LINUX_AMD64 -D__CT_BOUND_64BIT -c LinuxSys.c
LinuxSys.c: In function 'sysRegisterInterrupt':
LinuxSys.c:639: warning: cast from pointer to integer of different size
LinuxSys.c:644: error: 'SA_SHIRQ' undeclared (first use in this function)
LinuxSys.c:644: error: (Each undeclared identifier is reported only once
LinuxSys.c:644: error: for each function it appears in.)
LinuxSys.c:644: warning: passing argument 2 of 'request_irq' from incompatible pointer type
LinuxSys.c: In function 'sysGetPagePhysAddr':
LinuxSys.c:949: warning: passing argument 1 of 'kvirt_to_phys' makes integer from pointer without a cast
LinuxSys.c: In function 'sysGetPageBusAddr':
LinuxSys.c:976: warning: passing argument 1 of 'kvirt_to_bus' makes integer from pointer without a cast
LinuxSys.c: In function 'sysWriteFile':
LinuxSys.c:1628: warning: pointer targets in passing argument 2 of 'filp->f_op->write' differ in signedness
LinuxSys.c: In function 'sysReadFile':
LinuxSys.c:1677: warning: pointer targets in passing argument 2 of 'filp->f_op->read' differ in signedness
make[1]: *** [LinuxSys.o] Error 1
make[1]: Leaving directory `/home/morlipf/Downloads/XFiDrv_Linux_US-1.04/XFiDrv_Linux_US-1.04/src/ossrv'
make: *** [ctossrv] Error 2

Code: Select all
gcc -Wall -fomit-frame-pointer -Os -fno-strict-aliasing -pipe -D__CT_SYS_LINUX -DNO_SWSYNTH -D__CT_LITTLE_ENDIAN -DNO_NEWDELETE_OVERLOAD -DUSE_CALLBACKS_EX -DNATIVE_OPENAL -DCTAUDBINARY -DKBUILD_MODNAME=\"x-fi\" -I../../include -isystem /lib/modules/2.6.23-gentoo-r5/source/include -I/lib/modules/2.6.23-gentoo-r5/source/include/asm/mach-default -I/lib/modules/2.6.23-gentoo-r5/source/include -D__KERNEL__ -DMODULE -mcmodel=kernel -D__x86_64__ -m64 -mno-red-zone -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -D__CT_SYS_LINUX_AMD64 -D__CT_BOUND_64BIT -c LinuxReg.c
gcc -Wall -fomit-frame-pointer -Os -fno-strict-aliasing -pipe -D__CT_SYS_LINUX -DNO_SWSYNTH -D__CT_LITTLE_ENDIAN -DNO_NEWDELETE_OVERLOAD -DUSE_CALLBACKS_EX -DNATIVE_OPENAL -DCTAUDBINARY -DKBUILD_MODNAME=\"x-fi\" -I../../include -isystem /lib/modules/2.6.23-gentoo-r5/source/include -I/lib/modules/2.6.23-gentoo-r5/source/include/asm/mach-default -I/lib/modules/2.6.23-gentoo-r5/source/include -D__KERNEL__ -DMODULE -mcmodel=kernel -D__x86_64__ -m64 -mno-red-zone -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -D__CT_SYS_LINUX_AMD64 -D__CT_BOUND_64BIT -c LinuxSys.c
LinuxSys.c: In function ‘sysRegisterInterrupt’:
LinuxSys.c:638: warning: cast from pointer to integer of different size
LinuxSys.c:643: warning: ‘deprecated_irq_flag’ is deprecated (declared at /lib/modules/2.6.23-gentoo-r5/source/include/linux/interrupt.h:64)
LinuxSys.c:643: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
LinuxSys.c: In function ‘sysGetPagePhysAddr’:
LinuxSys.c:948: warning: passing argument 1 of ‘kvirt_to_phys’ makes integer from pointer without a cast
LinuxSys.c: In function ‘sysGetPageBusAddr’:
LinuxSys.c:975: warning: passing argument 1 of ‘kvirt_to_bus’ makes integer from pointer without a cast
LinuxSys.c: In function ‘sysOpenCreateFile’:
LinuxSys.c:1492: error: ‘O_RDWR’ undeclared (first use in this function)
LinuxSys.c:1492: error: (Each undeclared identifier is reported only once
LinuxSys.c:1492: error: for each function it appears in.)
LinuxSys.c:1492: error: ‘O_CREAT’ undeclared (first use in this function)
LinuxSys.c:1497: error: ‘O_RDONLY’ undeclared (first use in this function)
LinuxSys.c:1501: error: ‘O_WRONLY’ undeclared (first use in this function)
LinuxSys.c:1516: warning: implicit declaration of function ‘filp_open’
LinuxSys.c:1516: warning: assignment makes pointer from integer without a cast
LinuxSys.c:1518: warning: implicit declaration of function ‘filp_close’
LinuxSys.c: In function ‘sysGetFileSize’:
LinuxSys.c:1575: warning: assignment makes pointer from integer without a cast
LinuxSys.c:1577: error: dereferencing pointer to incomplete type
LinuxSys.c: In function ‘sysWriteFile’:
LinuxSys.c:1624: warning: assignment makes pointer from integer without a cast
LinuxSys.c:1626: error: dereferencing pointer to incomplete type
LinuxSys.c:1627: error: dereferencing pointer to incomplete type
LinuxSys.c:1627: error: dereferencing pointer to incomplete type
LinuxSys.c: In function ‘sysReadFile’:
LinuxSys.c:1673: warning: assignment makes pointer from integer without a cast
LinuxSys.c:1675: error: dereferencing pointer to incomplete type
LinuxSys.c:1676: error: dereferencing pointer to incomplete type
LinuxSys.c:1676: error: dereferencing pointer to incomplete type
make[1]: *** [LinuxSys.o] Error 1
make[1]: Leaving directory `/usr/src/XFiDrv_Linux_US-1.04/XFiDrv_Linux_US-1.04/src/ossrv'
make: *** [ctossrv] Error 2


how you manage to get it workable? In KDE (3.5) with default setup it tells, that pcm freq. are not compatible (exactly - x-fi works with 96000, not 48000). I tried to use an advice here http://www.4front-tech.com/forum/viewto ... cc914aae7f - KDE start sound is OK, but nothing in xine and mplayer. I made a link /dev/dsp to /dev/dsp2 just to hear sound from kde.Narusegawa wrote:Aslong as it works enough for music, videos and games (cedega too) that's good enough for me.All I need is basic output on line-out as I have an amp doing the rest for me