[PlanetCCRMA] libhydrogen compilation fails

Fernando Pablo Lopez-Lezcano nando@ccrma.Stanford.EDU
Wed Nov 12 15:26:02 2003


--=-zvRE0Ukss0R4NBHh/fua
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

> > > Rebuilding libhydrogen-0.8.0-1.src.rpm on Red Hat 9 (fully updated):
> > > 
> > > g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -c Hydrogen.cpp -MT Hydrogen.lo -MD
> > > -MP -MF .deps/Hydrogen.TPlo  -fPIC -DPIC -o .libs/Hydrogen.lo
> > > Hydrogen.cpp: In function `void audioEngine_startAudioDrivers()':
> > > Hydrogen.cpp:1393: invalid conversion from `int (*)(long unsigned int,
> > > void*)'
> > >    to `int (*)(unsigned int, void*)'
> > > Hydrogen.cpp:1393:   initializing argument 1 of
> > > `JackDriver::JackDriver(int
> > >    (*)(unsigned int, void*))'
> > > 
> > > I'm using jack-audio-connection-kit-0.80.0-1, alsa-driver-0.9.8-2.fr and
> > > kernel-2.4.20-20.9.XFS1.3.1
> 
> Include the patch attached to this email in the build process... I'll be
> updating the source rpm soon. 

The attached patch does work...
-- Fernando


--=-zvRE0Ukss0R4NBHh/fua
Content-Disposition: attachment; filename=libhydrogen-0.8.0-jack.patch
Content-Type: text/plain; name=libhydrogen-0.8.0-jack.patch; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

--- libhydrogen-0.8.0/src/Hydrogen.cpp~	2003-05-24 10:30:09.000000000 -0700
+++ libhydrogen-0.8.0/src/Hydrogen.cpp	2003-11-12 15:02:05.000000000 -0800
@@ -1390,7 +1390,7 @@
 	}
 	else if (audioDriver == "Jack") {
 #ifdef JACK_SUPPORT
-		driver = new JackDriver(audioEngine_process);
+	        driver = new JackDriver((int (*)(unsigned int, void*))audioEngine_process);
 
 #else
 		audioEngine_raiseError( "No Jack audio driver support" );

--=-zvRE0Ukss0R4NBHh/fua--