[streaming] vls-0.5.3 on solaris9 with gcc3.3

DSS dss at microsoftaco.com
Fri Sep 26 08:13:35 CEST 2003


I successfully compiled libdvdread-0.9.4, libdvdcss-1.2.6, libdvbpsi-0.1.2 on a UltraSPARC-IIi 
360MHz with 512MB of RAM with Solaris 9 (s9_58shwpl3 SPARC, 64-bit kernel), and gcc-3.3 
with make-3.80.  When I got around to compiling vls-0.5.3, I first got some getopt() errors, 
which were conflicting with already defined gcc3.3 and sun libraries.  So I commented out the 
definitions of getopt() from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/include/stdio.h 
and /usr/include/stdlib.h... So I eventually ran into this error

Generating dependancies for src/server/tsstreamer.cpp...
src/server/tsstreamer.cpp:348:5: #error nanosleep not present !
Compiling src/server/tsstreamer.cpp...
g++  -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DCONFIG_PATH='"/usr/local/etc/
videolan/vls"' -DBUGGY_VLC -DYY_NO_UNPUT -DSYSLOG  -o obj/server/tsstreamer.o -c src/
server/tsstreamer.cpp 
src/server/tsstreamer.cpp:348:5: #error nanosleep not present !
make: *** [obj/server/tsstreamer.o] Error 1

After lots of reading on the net, I fine tuned my solaris by tweaking /etc/system and enabling 
hires_tick.  The hires_tick parameter is a Solaris kernel tunable parameter.   When enabled, it 
causes the Solaris system environment to run at a system clock rate of 1000 instead of the 
default 100. It takes in two values, the default value of 0 (disabled) or one (enabled).  I figured 
this might help with nanosleep()...Still it gave me the same error... here are some things the 
system could not find during ./configure..

> checking for gettimeofday... no		#I have this in <sys/time.h>
> checking for select... no			#I have this too...
> checking for strerror... yes
> checking for strtol... no			#This one is in <stdlib.h>         

> checking for stdint.h... no		#I only saw this on my linuxbox, not in solaris.

> checking for nanosleep... no		#This in <time.h> and the -lrt libraries...
> checking for nanosleep in -lrt... no    	#So this should say yes!
> checking for nanosleep in -lposix4... no

Should I care that nanosleep() is defined differently?
nanosleep() is defined in /lib/llib-lrt  in solaris9 as

int nanosleep(const struct timespec *, struct timespec *);

while in ~src/server/tsstreamer.cpp, it is defined as

int nanosleep(struct timespec *, struct timespec *);

Should I care about this net/if.h errors?
> checking net/if.h usability... no
> checking net/if.h presence... yes
> configure: WARNING: net/if.h: present but cannot be compiled
> configure: WARNING: net/if.h: check for missing prerequisite headers?
> configure: WARNING: net/if.h: proceeding with the preprocessor's result
> checking for net/if.h... yes

How about this?
> checking for getopt_long... no
> checking for getopt_long in -lgnugetopt... no
> checking for inet_pton... no		#I have this in -lnsl
> checking for inet_pton in -lresolv... no
> checking whether setsockopt accepts SO_BINDTODEVICE... no

Any help you guys can send my way would be appreciated... Great thing you have going here.  
Any more system info I can send you to help resolve this, please post...

-Alaff
dss at microsoftaco.com

-- 
This is the streaming mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the streaming mailing list