Hi All,
I have problem to compile VLS. Below is my error message and it seemed that there is no C++ library on my host. Is it true?
I use VLS because our customer also use VLS to do their trial streaming server.
=========================================
[root@szlinux226 vls-0.5.6]# ./configure --disable-dvd
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ranlib... ranlib
checking for ar... ar
checking for a BSD-compatible install... /usr/bin/install -c
checking whether byte ordering is bigendian... no
checking for gettimeofday... yes
checking for select... yes
checking for strerror... yes
checking for strtol... yes
checking for opendir... yes
checking for usleep... yes
checking for sigaction... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking return type of signal handlers... void
checking for dlopen in -ldl... yes
checking for crypt in -lcrypt... yes
checking for connect... yes
checking for gethostbyname... yes
checking for sem_post... no
checking for sem_post in -lposix4... no
checking for nanosleep... yes
checking for pthread_attr_init in -lpthread... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for strings.h... (cached) yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking for getopt_long... yes
checking for socklen_t... yes
checking for inet_pton... yes
checking for sockaddr_in6 in netinet/in.h... yes
checking whether setsockopt accepts SO_BINDTODEVICE... no
checking if $CXX accepts -shared... yes
checking if $CXX accepts -bundle -undefined error -lcc_dynamic... no
checking if $CXX accepts -rdynamic... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking dvbpsi/dvbpsi.h usability... yes
checking dvbpsi/dvbpsi.h presence... yes
checking for dvbpsi/dvbpsi.h... yes
configure: creating ./config.status
config.status: creating Makefile.opts
config.status: creating src/server/config.h
config.status: creating src/core/defs.h
global configuration
--------------------
system : linux-gnu
architecture : i686
debug : 0
profiling : 0
vls configuration
-----------------
vls version : 0.5.6
debug mode : 0
system logging : 1
daemon mode :
built-in modules : filechannel netchannel filereader ts2ts ps2ts localinput videoinput
plug-in modules :
[root@szlinux226 vls-0.5.6]# make
Generating dependancies for src/core/application.cpp...
Compiling src/core/application.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/core/application.o -c src/core/application.cpp
In file included from src/core/application.cpp:97:
src/core/hashtable.h:67: error: an explicit specialization must be preceded by 'template <>'
src/core/hashtable.h:80: error: an explicit specialization must be preceded by 'template <>'
src/core/hashtable.h:93: error: an explicit specialization must be preceded by 'template <>'
In file included from src/core/application.cpp:113:
src/core/library.cpp: In member function `void C_Library<Type, Arg>::Load()':
src/core/library.cpp:82: error: `DL_LAZY' undeclared (first use this function)
src/core/library.cpp:82: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/core/library.cpp:93: error: there are no arguments to `dlsym' that depend on a template parameter, so a declaration of `dlsym' must be available
src/core/library.cpp:93: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
src/core/library.cpp:110: error: there are no arguments to `dlsym' that depend on a template parameter, so a declaration of `dlsym' must be available
src/core/library.cpp: In member function `void C_Library<Type, Arg>::Unload()':
src/core/library.cpp:133: error: there are no arguments to `dlclose' that depend on a template parameter, so a declaration of `dlclose' must be available
src/core/library.cpp: In member function `C_String C_Library<Type, Arg>::GetLoaderError()':
src/core/library.cpp:177: error: there are no arguments to `dlerror' that depend on a template parameter, so a declaration of `dlerror' must be available
make: *** [obj/core/application.o] Error 1