[streaming] Re: vls-0.5.3 on solaris9 with gcc3.3
Mike
mjmatthews1 at rcn.com
Thu Oct 2 01:16:16 CEST 2003
The significance of const is that the function will not touch the
struct. Often coders are sloppy in specifying const when appropriate. It
is actually a valuable construct to allow the compiler to recognize
logic errors. If it is just a redefine issue just comment out vls
declare. From your description it seemed that vls perhaps also
instaniated the function, if so you most certainly do not want that, but
rather the system function.
DSS wrote:
>Thanks for the tips... I just want a better understanding of what files I need to change. I did
>mess around with the config script and the library calls extensively. It calls the right library, but
>the tests for the nanosleep() function and the way it is used in tsstreamer.cpp, seem to be the
>problem. In solaris 9, nanosleep is defined in two places as
>
>int nanosleep(const struct timespec *, struct timespec *);
>
>but in vls, it is defined and tested as if it was
>
>int nanosleep(struct timespec *, struct timespec *);
>
>I just want to know what significance this has and what part of the code I need to tweak. I am
>not expecting anyone else to do this, as I enjoy troubleshooting and compiling vls. It is a great
>software and I just want to be able to run it in solaris 9! If anyone if familiar with the use of
>nanosleep, it would be great to lead me the right direction.
>
>-DSS
>
>
>---------- Original Message -----------
>From: Mike <mjmatthews1 at rcn.com>
>To: streaming at videolan.org
>Sent: Tue, 30 Sep 2003 21:10:24 -0400
>Subject: [streaming] Re: vls-0.5.3 on solaris9 with gcc3.3
>
>
>
>>Seems to me you are on the right track, the configure script does
>>not understand sol 9. You could try to fix the script or fix
>>config.h regarding this lib. Do you expect someone else to do it? :-)
>>
>>
>>
>>
>>>Anyone have any ideas of how I can solve this? Any help would be appreciated.
>>>
>>>-Alaff
>>>
>>>---------- Original Message -----------
>>>From: "DSS" <dss at microsoftaco.com>
>>>To: streaming at videolan.org
>>>Sent: Thu, 25 Sep 2003 23:13:35 -0700
>>>Subject: [streaming] vls-0.5.3 on solaris9 with gcc3.3
>>>
>>>
>>>
>>>
>>>
>>>>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