[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bsdi-users
Subject:    Re: Darwin Streaming Server 2.0
From:       "Craig A. Haney" <craig () seamless ! kludge ! net>
Date:       2000-01-27 14:32:45
[Download RAW message or body]


thanks, i just upgraded to 4.1 from 3.1 and was stuck on 
fhandle-exceptions too...your porting effort saved me some time 
thanks!!!

craig

At 07:11 -0500 01/27/2000, Ronny Cook wrote:
>>  Date: Mon, 24 Jan 2000 17:36:17 -0500
>>  From: "Craig A. Haney" <craig@seamless.kludge.net>
>>  Subject: Darwin Streaming Server 2.0 ?
>>
>>  Has anyone ported Apple's Darwin Streaming Server 2.0 and proxy to
>>  the BSDI 4.1 platform?
>>
>>  http://www.publicsource.apple.com/projects/streaming/
>>
>>  -craig
>
>I've done a port, but:
>	- it was to 4.0 rather than 4.1
>	- I haven't tested it yet, and
>	- due to the licensing restrictions I probably can't put the
>	  compiled code up for you (yet).
>
>However, the port (such as it was) was quite straightforward. Here's
>what I did:
>
>	- Added the following entry to the large case statement in Buildit:
>
>	BSD/OS.i386)
>		echo "Configuring for a BSD/OS platform"
>		CPLUS="g++ -fhandle-exceptions"
>		CCOMP=gcc
>		LINKER="gcc"
>		# pthreads are in libc under BSD/OS.
>		# PTHREADLIB=-pthread
>		PTHREADLIB=
>		DLLIB=-ldl
>		SHARED=-shared
>		MODULE_LIBS="-lgcc -lstdc++"
>		CRYPTLIB=
>		# MACHDEFINES="-D__FreeBSD__ -D__BSDI__ -fhandle-exceptions"
>		MACHDEFINES="-D__FreeBSD__ -D__BSDI__"
>		;;
>
>	The weird CPLUS setting is because BSD/OS 4.0's compilers disallow
>	the -fhandle-exceptions flag for gcc, but the MACHDEFINES macro is
>	used for both gcc and g++.
>
>	- Added similar settings to APIStubLib/BuildAPIStubLib and to
>	PlaylistBroadcaster.tproj/BuildPlaylist.
>
>	- Added a __BSDI__ entry to the platform-specific ifdef in
>	PlatformHeader.h. The __BSDI__ entry is identical to the __FreeBSD__
>	entry except that it includes <sys/param.h> and the kPlatformNameString
>	is different.
>
>After that running "./Buildit" did the job.
>
>It's possible I've left something out but I'm pretty sure that was basically
>"it" -- the hard part was the -fhandle-exceptions flag. Of course, just
>getting the code to compile is only half the battle, but given the relative
>"cleanness" of the code the test phase shouldn't be too painful.
>
>For a "proper" port I would lose the -D__FreeBSD__ and edit the source code
>appropriately -- which is the main reason I haven't yet submitted these
>changes to Apple.
>
>		...Ronny
>--
>  Ronald Cook, Technical Manager - The Message eXchange - an Asia 
>Online company
>  Email: ronny@tmx.com.au ----- Phone: +61-2-9550-4448 ---- Fax: 
>+61-2-9519-2551
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: bsdi-users-unsubscribe@mailinglists.org
>For additional commands, e-mail: bsdi-users-help@mailinglists.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic