Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96450 - New: oss2jack is a daemon that offers a /dev/dsp device and sends the sound to jackd.
Summary: New: oss2jack is a daemon that offers a /dev/dsp device and sends the sound t...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on: 96449
Blocks:
  Show dependency tree
 
Reported: 2005-06-18 04:03 UTC by Bruno
Modified: 2018-06-07 18:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Suggested ebuild (oss2jack-0.21.ebuild,878 bytes, text/plain)
2005-06-18 04:10 UTC, Bruno
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno 2005-06-18 04:03:08 UTC
oss2jack is a daemon that creates a userspace /dev/dsp device using the fusd  
library (Bug #96449).  
  
Sound coming from audio applications over the dsp device is redirected to  
jackd.  
  
It supports playback, recording and mmap. 

Reproducible: Always
Steps to Reproduce:
Comment 1 Bruno 2005-06-18 04:10:08 UTC
Created attachment 61440 [details]
Suggested ebuild

oss2jack has been tested on x86 with some audio programs and works correctly.

Too large jack buffers may cause sound quality issues.
Comment 2 Markus Ullmann (RETIRED) gentoo-dev 2006-09-25 12:17:59 UTC
This is now in the sunrise overlay. You can find it at:
http://gentoo-sunrise.org/svn/reviewed/media-sound/oss2jack
Comment 3 Nico Baggus 2006-09-26 05:38:09 UTC
trying to emerge it fails in fusd-kor
>>> Compiling source in /var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11 ...
 * Preparing kfusd module
echo EXTRA_CFLAGS=-I/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/../include
EXTRA_CFLAGS=-I/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/../include
make -C /lib/modules/2.6.17-gentoo-r7/build SUBDIRS=/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd EXTRA_CFLAGS=-I/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/../include modules
make[1]: Entering directory `/usr/src/linux-2.6.17-gentoo-r7'
  CC [M]  /var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.o
/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:181: error: syntax error before string constant
/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:181: warning: type defaults to `int' in declaration of `MODULE_PARM'
/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:181: warning: function declaration isn't a prototype
/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:181: warning: data definition has no type or storage class
/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c: In function `fusd_register_device':
/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:2036: warning: label `register_failed2' defined but not used
/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c: In function `init_fusd':
/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:2929: warning: label `fail7' defined but not used
/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:2941: warning: label `fail2' defined but not used
make[2]: *** [/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.o] Error 1
make[1]: *** [_module_/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17-gentoo-r7'
make: *** [default] Error 2

!!! ERROR: media-sound/fusd-kor-1.10.11 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  fusd-kor-1.10.11.ebuild, line 33:   Called linux-mod_src_compile
  linux-mod.eclass, line 469:   Called die


------ infoPortage 2.1.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 Mobile AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.12.5
Last Sync: Mon, 25 Sep 2006 22:30:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-4 -fomit-frame-pointer -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-4 -fomit-frame-pointer -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mir.zyrianes.net/gentoo/"
LINGUAS="en_GB nl en"
MAKEOPTS="-j2"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X X509 aalib accessibility acl acpi activefilter alsa apache2 arts audiofile bash-completion berkdb bitmap-fonts bluetooth bootsplash bzip2 cairo caps cdparanoia cdr cli crypt cups curl directfb divx4linux dlloader dri dvb dvd dvdr dvdread edl eds elibc_glibc emboss encode esd eurofile exiscan exiscan-acl extensions fbcon flac fltk font-server foomaticdb fortran fpx frxp gcj gdbm ggi gif gimp gimpprint glut gmp gnokii gnome gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 hal hardenedphp idea ieee1394 imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipppd ipv6 isdnlog ithreads jack jack-tmpfs java java-script jbig jpeg jpeg2k kde kernel_linux kqemu ladcca lcms ldap libcaca libclamav libg++ libwww linguas_en linguas_en_GB linguas_nl live lm_sensors lzo mad mailwrapper matroska memlimit mikmod mjpeg mmap mmx motif mp3 mpeg mschap musicbrainz mysql nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh nas ncurses network nls nptl nptlonly nsplugin oav odbc ogg openexr opengl oss pam pcmcia pcre pda perl plotutils png pnp portaudio povray ppds pppd python qt qt3 qt4 quicktime quotas radius rdesktop readline real reflection rtc samba sasl sdl session silc skey slang slp sndfile snmp snortsam softmmu speex spell spf spl srs sse ssl syslog tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode ups usb userland_GNU userlocales video_cards_radeon visualization vorbis wifi win32codecs winbind wmf xanim xfs xml xmms xorg xscreensaver xv xvid yv12 zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 4 jannis 2006-09-26 13:49:10 UTC
#3 this is known to me, just remove the line it complains about here:

/var/tmp/portage/fusd-kor-1.10.11/work/fusd-kor-1.10-11/kfusd/kfusd.c:181: error: syntax error before string constant

and it will work. maybe a bad hack but compiles and works. Can someone please fix the ebuild, I'm not used to sed, thanks.
Comment 5 Nico Baggus 2006-09-26 15:45:49 UTC
Then this is the patch that needs to be applied

--- kfusd.c.orig        2006-09-27 00:41:37.000000000 +0200
+++ kfusd.c     2006-09-27 00:43:06.000000000 +0200
@@ -178,7 +178,7 @@
 #ifdef CONFIG_FUSD_DEBUG

 STATIC int fusd_debug_level = CONFIG_FUSD_DEBUGLEVEL;
-MODULE_PARM(fusd_debug_level, "i");
+//MODULE_PARM(fusd_debug_level, "i");

 #define BUFSIZE 1000 /* kernel's kmalloc pool has a 1012-sized bucket */
Comment 6 Thomas Sachau gentoo-dev 2009-08-25 15:16:06 UTC
Dropped from sunrise overlay because of missing dependency (sys-apps/realtime-lsm), feel free to join the sunrise project and add a new, updated and working version.
Comment 7 Nico Baggus 2010-07-06 18:49:48 UTC
oss2jack isn't in the tree anymore, I guess it can be closed now.
Comment 8 Nico Baggus 2017-10-03 23:17:47 UTC
jack still lives, but oss doesn;t so this probably can be closed as well.