[streaming] MiniSAPserver port to Solaris 10
Saso Kiselkov
skiselkov at gmail.com
Sun Mar 1 21:53:11 CET 2009
Hi Rémi,
Rémi Denis-Courmont wrote:
> Hello,
>
> Le samedi 28 février 2009 14:25:10 Saso Kiselkov, vous avez écrit :
>
>> I've created a port of minisapserver-0.3.6 to Solaris 10 (patch file
>> attached). I've tested it quickly (on a sparc-sun-solaris2.10 system)
>> and it appears to be functional. Unfortunatelly, since I lack detailed
>> knowledge of autoconf/automake I'd like to ask somebody more skilled on
>> this mailing list to do the build configuration changes. What's needed
>> for a proper build on Solaris is:
>>
>> - add an AC_CHECK_HEADERS for "sys/sockio.h" (for the Solaris
>> definition of SIOCGIFADDR)
>> - add an AC_CHECK_FUNCTIONS for the "daemon" function (to activate the
>> workaround code in sapserver.cpp on SYSV)
>>
>
> I've merged your patch, and added those checks.
>
>
>> - add the linker flags "-lsocket -lrt -lnsl"
>>
The direct linker output is as follows:
$ g++ -g -O2 -o sapserver broadcast.o message.o parser.o program.o
sapserver.o
Undefined first referenced
symbol in file
__xnet_sendto broadcast.o
__xnet_socket broadcast.o
nanosleep sapserver.o
if_nametoindex broadcast.o
setsockopt broadcast.o
inet_addr message.o
inet_pton broadcast.o
__xnet_bind broadcast.o
shutdown broadcast.o
ld: fatal: Symbol referencing errors. No output written to sapserver
collect2: ld returned 1 exit status
The symbols fall into the following library dependencies:
* libsocket.so:
__xnet_sendto
__xnet_socket
if_nametoindex
setsockopt
__xnet_bind
* libnsl.so:
inet_addr
inet_pton
* librt.so:
nanosleep
>
> Which functions are those needed for, respectively? I guess socket() will do
> for libsocket, but I don't know for real-time and the name service?
>
Where can I get the latest development source for testing?
Cheers
--
Saso
More information about the streaming
mailing list