Operating System - HP-UX
1819803 Members
3099 Online
109607 Solutions
New Discussion юеВ

Darwin Streaming Server for HPUX

 
Emanuele De Angelis
Frequent Advisor

Darwin Streaming Server for HPUX

Hi to all,
i searching a depot or source of Darwin Streaming Server for HPUX 11.xx.
I know that this packeget was removed from Internet Express software CD for hp and now it's not available.
Sameone have this packeg or have same information for download?
Thanks
11 REPLIES 11
Arunvijai_4
Honored Contributor

Re: Darwin Streaming Server for HPUX

You can download source from http://developer.apple.com/darwin/projects/streaming/

It could be a taunting task to port darwin on HP-UX.
"A ship in the harbor is safe, but that is not what ships are built for"
Emanuele De Angelis
Frequent Advisor

Re: Darwin Streaming Server for HPUX

Hi, thanks for reply but i would want a depot beacouse i have many problems with compilation on HPUX.

This is my error:

gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTRTPFileTest'. Stop.
Building QTRTPGen for HP-UX.9000/800 with gcc
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTRTPGen'. Stop.
Building QTSDPGen for HP-UX.9000/800 with gcc
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTSDPGen'. Stop.
Building QTSampleLister for HP-UX.9000/800 with gcc
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTSampleLister'. Stop.
Building QTTrackInfo for HP-UX.9000/800 with gcc
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTTrackInfo'. Stop.
Arunvijai_4
Honored Contributor

Re: Darwin Streaming Server for HPUX

Can you list the steps you follow before doing make or gmake ?

I think, you need to edit a configuration file in source dir and specify compiler details like, g++, etc..

"A ship in the harbor is safe, but that is not what ships are built for"
Steven E. Protter
Exalted Contributor

Re: Darwin Streaming Server for HPUX

The post prior to my this is correct. Many sources designed for Linux require changes to code or header files to work with HP-UX.

Hopefully someone who has done it will post in some help for you. If not, and you still get it working, please post your completion steps here for the benefit of others.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Emanuele De Angelis
Frequent Advisor

Re: Darwin Streaming Server for HPUX

Ok,
- I have installed gcc 3.4.4
- I have installed gmake
I have modified Buildit file changing make with gmake
- I run "sh Buildit"
and then i received error.
This is all, do you have a tips for me?
Thanks
VEL_1
Valued Contributor

Re: Darwin Streaming Server for HPUX

Hi,

As far as I concerned, HP doesn't provide the depot for Darwin Streaming Server.

Can u send the Buildit file?

Thanks
Emanuele De Angelis
Frequent Advisor

Re: Darwin Streaming Server for HPUX

Hi ,
attached my buildit file.
Thanks
VEL_1
Valued Contributor

Re: Darwin Streaming Server for HPUX

Hi,

Just change in Buildit file, after HP-UX category.

CPLUS=g++
LINKER=g++

let me know if you have any issues
VEL_1
Valued Contributor

Re: Darwin Streaming Server for HPUX


Please change

MAKE as MAKE=gmake also
Emanuele De Angelis
Frequent Advisor

Re: Darwin Streaming Server for HPUX

Hi ,
after i try to compile with this changes, not work.

i received this output:

root@hpserver:/var/DarwinStreamingSrvr5.5-Source# sh Buildit
grep: illegal option -- o
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvx] -e pattern_list...
[-f pattern_file...] [file...]
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvx] [-e pattern_list...]
-f pattern_file... [file...]
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvx] pattern [file...]
Darwin Streaming Server
-----------------------
Configuring for the HP-UX 9000/800 platform
Building for HP-UX.9000/800 with g++
Building CommonUtilitiesLib for HP-UX.9000/800 with g++
g++ -c -o Socket.o -D__hpux__ -g -fPIC -include ../PlatformHeader.h -g -Wall -O2 -I. -I.. -I../APIStubLib -I../RTPMetaInfoLib -I../APICommonCode Socket.cpp
Socket.cpp:56: error: conflicting declaration 'typedef int socklen_t'
/usr/include/sys/socket.h:199: error: 'socklen_t' has a previous declaration as `typedef size_t socklen_t'
Socket.cpp:56: error: declaration of `typedef int socklen_t'
/usr/include/sys/socket.h:199: error: conflicts with previous declaration `typedef size_t socklen_t'
Socket.cpp:56: error: declaration of `typedef int socklen_t'
/usr/include/sys/socket.h:199: error: conflicts with previous declaration `typedef size_t socklen_t'
Socket.cpp: In member function `OS_Error Socket::Bind(UInt32, UInt16)':
Socket.cpp:200: error: invalid conversion from `socklen_t*' to `int*'
Socket.cpp:200: error: initializing argument 3 of `int getsockname(int, void*, int*)'
gmake: *** [Socket.o] Error 1
Building QTFileLib internal for HP-UX.9000/800 with g++
gmake: Nothing to be done for `all'.
Building StreamingServer for HP-UX.9000/800 with g++
gmake: *** No rule to make target `CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `DarwinStreamingServer'. Stop.
Building RefMovieModule for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTSSRefMovieModule'. Stop.
Building DemoAuthorizationModule for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTSSDemoAuthorizationModule'. Stop.
Building RawFileModule for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTSSRawFileModule'. Stop.
Building SpamDefenseModule for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTSSSpamDefenseModule'. Stop.
Building HomeDirectoryModule for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTSSHomeDirectoryModule'. Stop.
Building StreamingProxy for HP-UX.9000/800 with g++
gmake: Nothing to be done for `all'.
Building qtpasswd for HP-UX.9000/800 with g++
g++ -o qtpasswd QTSSPasswd.o ../SafeStdLib/InternalStdLib.o ../OSMemoryLib/OSMemory.o -D__hpux__ -g -fPIC -L../CommonUtilitiesLib -lpthread -lnsl -lm -lcrypt -lstdc++ ../CommonUtilitiesLib/libCommonUtilitiesLib.a
g++: ../CommonUtilitiesLib/libCommonUtilitiesLib.a: No such file or directory
gmake: *** [qtpasswd] Error 1
Building PlaylistBroadcaster for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `PlaylistBroadcaster'. Stop.
Building MP3Broadcaster for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `MP3Broadcaster'. Stop.
Building QTFileTools for HP-UX.9000/800 with g++
Building QTBroadcaster for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTBroadcaster'. Stop.
Building QTFileInfo for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTFileInfo'. Stop.
Building QTFileTest for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTFileTest'. Stop.
Building QTRTPFileTest for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTRTPFileTest'. Stop.
Building QTRTPGen for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTRTPGen'. Stop.
Building QTSDPGen for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTSDPGen'. Stop.
Building QTSampleLister for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTSampleLister'. Stop.
Building QTTrackInfo for HP-UX.9000/800 with g++
gmake: *** No rule to make target `../../CommonUtilitiesLib/libCommonUtilitiesLib.a', needed by `QTTrackInfo'. Stop.
root@hpserver:/var/DarwinStreamingSrvr5.5-Source#
VEL_1
Valued Contributor

Re: Darwin Streaming Server for HPUX

Hi,

It seems you have problem with "socklen_t" conflict and type mismatch also. And also the compile flags shows -D__hpux__. So in CommonUtilitiesLib/Socket.cpp file need some modification.

1. Remove defined(__hpux__) in CommonUtilitiesLib/Socket.cpp file in line 55

2. Replace socklen_t with int in lines 123, 132, 152, 160, 183.

3. Include the following line in CommonUtilitiesLib/SocketUtils.h and PlaylistBroadcaster.tproj/playlist_SDPGen.h files in the beginning of th file.

4. In Builtit file, remove -lcrypt in line 145

And do the compile.

Note:
take the backup of CommonUtilitiesLib/Socket.cpp file.

Thanks.