Today I have mostly been playing with streaming servers, I’ve been meaning to give Apple’s Darwin Streaming server a go for a while now but never got around to trying it, unfortunatly theres no official binaries for OpenBSD but a quick google around & I found this
I download the patch from the url specified in the post & then onto Apples site to download the sources. I was unable to use the patch in its original form as the creator had specified the paths from his computer to the files which ofcourse where invalid on my system. A quick edit of the dif & i was back on track. 🙂
Heres my moded patch with the paths taken out, place it inside the DarwinStreamingSrc5.0.1.1 directory & patch away 🙂
As specified in the Jeff Ross’s post, patch the source with patch -p0 < DSS_5.diff
then compile & install with
./Buildit
./DSS_MakeRoot -f DarwinStreamingSvr
cd DarwinStreamingSvr
sudo ./Install
once installation is completed run rmuser qtss
then run adduser
& create a new user with the username qtss,with the shell /sbin/nologin & no password.
otherwise Darwin fails with the following error Cannot switch to group qtss
Now run /usr/local/sbin/streamingadminserver.pl
then openup your browser & goto http://localhost:1220
You should be presented with a login screen! 😀
enjoy!
tried it on OpenBSD 3.6 RELEASE and it worked. Thanks a lot!
I tried install DSS-v5_0_3_2 on OpenBSD 3.7 with your patch but it did not work. I got sevral errors like this one:
gcc: ../../QTFileLib/libQTFileExternalLib.a: No such file or directory
*** Error code 1
Stop in /home/admin/DSS-v5_0_3_2/QTFileTools/QTTrackInfo.tproj (line 48 of Makefile.POSIX).
Hello !
I have downloaded DSS 5.5 and patched it on OpenBSD 3.7-i386 (CPU is AMD k6-400) patched to the actual security issues and I just give it a try . Hope it works .. Will see soon.. It is still compiling ..
.. Seen some error code 1.. also in line 48 ..
seems, they have changed some things ..
..” /usr/local/src/DarwinStreamingSrvr5.5-Source/CommonUtilitiesLib/OSFileSource.cpp :103: undefined reference to `operator delete(void*)’
../../CommonUtilitiesLib/libCommonUtilitiesLib.a(OSFileSource.o)(.gnu.linkonce.r ._ZTI11OSQueueElem+0x0): undefined reference to `vtable for __cxxabiv1::__class_ type_info’
../../CommonUtilitiesLib/libCommonUtilitiesLib.a(OSQueue.o)(.text+0x2ee): In fun ction `OSQueue_Blocking::DeQueueBlocking(OSThread*, long)’:
/usr/local/src/DarwinStreamingSrvr5.5-Source/CommonUtilitiesLib/OSQueue.cpp:231: undefined reference to `__gxx_personality_sj0′
../../CommonUtilitiesLib/libCommonUtilitiesLib.a(OSQueue.o)(.text+0x402): In fun ction `OSQueue_Blocking::DeQueue()’:
/usr/local/src/DarwinStreamingSrvr5.5-Source/CommonUtilitiesLib/OSQueue.cpp:248: undefined reference to `__gxx_personality_sj0′
../../CommonUtilitiesLib/libCommonUtilitiesLib.a(OSQueue.o)(.text+0x4ea): In fun ction `OSQueue_Blocking::EnQueue(OSQueueElem*)’:
/usr/local/src/DarwinStreamingSrvr5.5-Source/CommonUtilitiesLib/OSQueue.cpp:256: undefined reference to `__gxx_personality_sj0′
collect2: ld returned 1 exit status
*** Error code 1
..”
I have been working on a patch for DSS 5.5, here is a beta version, give it a try & let me know how you get on: http://www.geeklan.co.uk/files/DSS55_patch.tar.gz
Nope, still not working, ..
Apple has changed the Version to 5.5.1. Older Versions unavailable. Let’s see, if your patch is working on this version too..
I have just tried it. When starting Buildit I get some Error 1 complaints about something not defined and compilation stops with well known error in line 48. Details of stdout below :
”
..In file included from /usr/include/sys/sysctl.h:46,
from OS.cpp:69:
/usr/include/sys/ucred.h:46: error: `NGROUPS’ was not declared in this scope
In file included from /usr/include/sys/sysctl.h:47,
from OS.cpp:69:
/usr/include/sys/proc.h:61: error: `MAXLOGNAME’ was not declared in this scope
/usr/include/sys/proc.h:214: error: `MAXCOMLEN’ was not declared in this scope
In file included from OS.cpp:69:
/usr/include/sys/sysctl.h:326: error: `MAXLOGNAME’ was not declared in this
scope
*** Error code 1
..”
It aborts some time later with a general Error 1
I have attempted to fix some of the build issues with a newer version of a patch, most of the components build on DSS 5.5.1, but there is quiet a bit of work to be done yet.
http://www.geeklan.co.uk/files/DSS55_patch-final.tar.gz
I try to install Darwin Streaming server 5.5 on my SUSE 8.0. The installation was a piece of cake (just need to type ./Install) but I receive the same error “Cannot switch to group qtss” (this doesn’t happen if I use Red hat 9). Unfortuntely, SUSE don’t have /sbin/nologin shell and don’t alow me to create a user without password . I try sth around that user qtss but things haven’t changed much.
Can anyone give me a hint.
does /bin/nologin exist???
try “whereis nologin” & see you get any results
Using the patch above as a starting point:
http://www.geeklan.co.uk/files/DSS55_patch-final.tar.gz
I was able to get DSS to compile, execute and stream on OpenBSD 3.9 i386.
There are two additional changes that need to be made after the patch is applied.
1) In the CommonUtilities/OSThread.h, line 40, it should read:
#if __solaris__ || __sgi__ || __hpux__ || __OpenBSD__
(the original version does not include __OpenBSD__)
2) in the Buildit file, line 100, it should read:
LINKER=”g++”
(the original version tried to link using gcc which doesn’t work becuz you need libstdc++)
Once you’ve got that, run Buildit, then buildtarball and you can install and it works beautifully.
Nice one mate, I’ll amend my patch and post it another copy of it for others to download.
Hi !
Here again .. I am just testing the final patch and inserted the modifications of Advisor Joe. Testsystem was OpenBSD 4.0 betta (current) and DSS 5.5.1. The current tree sources were taken about three days ago. Buildit has succeeded. This ist the output of buildtarball 🙂 :
“…
copying StreamingProxy to StreamingProxy–OpenBSD/StreamingProxy
copying streamingproxy.conf to StreamingProxy–OpenBSD/streamingproxy.conf
copying StreamingProxy.html to StreamingProxy–OpenBSD/StreamingProxy.html
.
Done.
StreamingProxy–OpenBSD
StreamingProxy–OpenBSD/StreamingProxy
StreamingProxy–OpenBSD/streamingproxy.conf
StreamingProxy–OpenBSD/StreamingProxy.html
Success!
..”
Thanks ! It works on OpenBSD 4.0-beta.
Thanks for keeping me posted dude 🙂
Hi I tried all the above mentioned steps on Open BSD 3.9, running 5.5.3- source. The patch got applied fine but when I tried to use the makebuild I got the following error.
In file included from ../../CommonUtilitiesLib/OSMutex.h:61,
from ../../CommonUtilitiesLib/OSQueue.h:38,
from ../../CommonUtilitiesLib/OSFileSource.h:42,
from ../../QTFileLib/QTFile.h:37,
from QTFileTest.cpp:29:
../../CommonUtilitiesLib/OSThread.h: In static member function `static int
OSThread::GetErrno()’:
../../CommonUtilitiesLib/OSThread.h:105: error: `errno’ undeclared (first use
this function)
../../CommonUtilitiesLib/OSThread.h:105: error: (Each undeclared identifier is
reported only once for each function it appears in.)
*** Error code 1
Stop in /tmp/DarwinStreamingSrvr5.5.3-Source/QTFileTools/QTFileTest.tproj.
Building QTRTPFileTest for OpenBSD.i386 with gcc
gcc -c -o QTRTPFileTest.o -include ../../PlatformHeader.h -g -Wall -O3 -I. -I../../QTFileLib -I../../CommonUtilitiesLib -I../../RTPMetaInfoLib QTRTPFileTest.cpp
In file included from ../../CommonUtilitiesLib/OSMutex.h:61,
from ../../CommonUtilitiesLib/OS.h:39,
from QTRTPFileTest.cpp:37:
../../CommonUtilitiesLib/OSThread.h: In static member function `static int
OSThread::GetErrno()’:
../../CommonUtilitiesLib/OSThread.h:105: error: `errno’ undeclared (first use
this function)
../../CommonUtilitiesLib/OSThread.h:105: error: (Each undeclared identifier is
reported only once for each function it appears in.)
*** Error code 1
I am very new to the open source community and would appreciate any help that can be provided. I have the tar files in the tmp folder, can that be reason for this error ?