gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-dev] ./configure problems with C++ preprocessor hash_map and boos


From: Matt Anderson
Subject: [Gnash-dev] ./configure problems with C++ preprocessor hash_map and boost lightweight_mutex
Date: Mon, 23 Apr 2007 14:47:38 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

Hello,

I tried checking out gnash on my Ubuntu system newly updated to feisty.
After getting some really good hints on adding libgtkglext1-dev
libboost-dev and libpthread-dev to my system ./configure completed, but
not without these two warnings.  They didn't seem fatal to me, so I
tried to compile anyway.  That didn't get to far, anyhow:

address@hidden:~/src/gnash-0.7.2$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles...
no
checking whether make sets $(MAKE)... (cached) 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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c -p
checking for library file name specifics... no
checking how to run the C preprocessor... gcc -E
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 mallinfo... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for autotrace... no
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking dejagnu.h usability... no
checking dejagnu.h presence... no
checking for dejagnu.h... no
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for sqrt in -lm... yes
checking for XInput_find_display in -lXi... yes
checking for XDisableAccessControl in -lX11... yes
checking for shm_unlink in -lrt... yes
checking for shm_open... yes
checking for shm_unlink... yes
checking for vsnprintf... yes
checking for finite... yes
checking for isfinite... no
checking whether g++ implements __PRETTY_FUNCTION__... yes
checking whether g++ implements __FUNCTION__... yes
checking whether g++ implements __func__... yes
checking for getopt... yes
checking for sysconf... yes
checking for shmget... yes
checking for shmat... (cached) yes
checking for shmdt... yes
checking for mmap... yes
checking for gettimeofday... yes
checking for strlcpy... no
checking for strlcat... no
checking winsock.h usability... no
checking winsock.h presence... no
checking for winsock.h... no
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking for socket... yes
checking for CreateFileMappingA... no
checking how to run the C++ preprocessor... g++ -E
checking ext/hash_map usability... no
checking ext/hash_map presence... yes
configure: WARNING: ext/hash_map: present but cannot be compiled
configure: WARNING: ext/hash_map:     check for missing prerequisite
headers?
configure: WARNING: ext/hash_map: see the Autoconf documentation
configure: WARNING: ext/hash_map:     section "Present But Cannot Be
Compiled"
configure: WARNING: ext/hash_map: proceeding with the preprocessor's
result
configure: WARNING: ext/hash_map: in the future, the compiler will take
preceden
ce
configure: WARNING:     ## -------------------------------- ##
configure: WARNING:     ## Report this to the gnash lists.  ##
configure: WARNING:     ## -------------------------------- ##
checking for ext/hash_map... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for zlib library... yes
checking for zlibVersion in -lz... yes
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
checking for libjpeg header... 
checking for jpeg_mem_init in -ljpeg... no
checking for libjpeg library... 
checking for ming-config... no
checking for doxygen... no
checking for the SDL Version... 
checking for SDL header... checking SDL.h usability... no
checking SDL.h presence... no
checking for SDL.h... no

checking for SDL_Init in -lSDL... no
checking for SDL library... 
checking for the Boost Version... no version needed
checking boost/detail/lightweight_mutex.hpp usability... no
checking boost/detail/lightweight_mutex.hpp presence... yes
configure: WARNING: boost/detail/lightweight_mutex.hpp: present but
cannot be co
mpiled
configure: WARNING: boost/detail/lightweight_mutex.hpp:     check for
missing pr
erequisite headers?
configure: WARNING: boost/detail/lightweight_mutex.hpp: see the Autoconf
documen
tation
configure: WARNING: boost/detail/lightweight_mutex.hpp:     section
"Present But
 Cannot Be Compiled"
configure: WARNING: boost/detail/lightweight_mutex.hpp: proceeding with
the prep
rocessor's result
configure: WARNING: boost/detail/lightweight_mutex.hpp: in the future,
the compi
ler will take precedence
configure: WARNING:     ## -------------------------------- ##
configure: WARNING:     ## Report this to the gnash lists.  ##
configure: WARNING:     ## -------------------------------- ##
checking for boost/detail/lightweight_mutex.hpp... yes
checking for boost header... -I/usr/include
checking for library containing cleanup_slots... no
checking for Boost thread library... 
checking for xml2-config... no
no
checking for libxml2... no
checking for size_t... yes
checking size of size_t... 8
checking for long... yes
checking size of long... 8
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for kde-config... /usr/bin/kde-config
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking if C++ programs can be compiled... no
configure: error: Your Installation isn't able to compile simple C++
programs.
Check config.log for details - if you're using a Linux distribution you
might mi
ss
a package named similar to libstdc++-dev.
address@hidden:~/src/gnash-0.7.2$ ./configure
--with-plugindir=/usr/lib/firefox/plugins/
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles...
no
checking whether make sets $(MAKE)... (cached) 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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c -p
checking for library file name specifics... no
checking how to run the C preprocessor... gcc -E
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 mallinfo... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for autotrace... no
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking dejagnu.h usability... no
checking dejagnu.h presence... no
checking for dejagnu.h... no
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for sqrt in -lm... yes
checking for XInput_find_display in -lXi... yes
checking for XDisableAccessControl in -lX11... yes
checking for shm_unlink in -lrt... yes
checking for shm_open... yes
checking for shm_unlink... yes
checking for vsnprintf... yes
checking for finite... yes
checking for isfinite... no
checking whether g++ implements __PRETTY_FUNCTION__... yes
checking whether g++ implements __FUNCTION__... yes
checking whether g++ implements __func__... yes
checking for getopt... yes
checking for sysconf... yes
checking for shmget... yes
checking for shmat... (cached) yes
checking for shmdt... yes
checking for mmap... yes
checking for gettimeofday... yes
checking for strlcpy... no
checking for strlcat... no
checking winsock.h usability... no
checking winsock.h presence... no
checking for winsock.h... no
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking for socket... yes
checking for CreateFileMappingA... no
checking how to run the C++ preprocessor... g++ -E
checking ext/hash_map usability... no
checking ext/hash_map presence... yes
configure: WARNING: ext/hash_map: present but cannot be compiled
configure: WARNING: ext/hash_map:     check for missing prerequisite
headers?
configure: WARNING: ext/hash_map: see the Autoconf documentation
configure: WARNING: ext/hash_map:     section "Present But Cannot Be
Compiled"
configure: WARNING: ext/hash_map: proceeding with the preprocessor's
result
configure: WARNING: ext/hash_map: in the future, the compiler will take
precedence
configure: WARNING:     ## -------------------------------- ##
configure: WARNING:     ## Report this to the gnash lists.  ##
configure: WARNING:     ## -------------------------------- ##
checking for ext/hash_map... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for zlib library... yes
checking for zlibVersion in -lz... yes
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
checking for libjpeg header... 
checking for jpeg_mem_init in -ljpeg... no
checking for libjpeg library... 
checking for ming-config... no
checking for doxygen... no
checking for the SDL Version... 
checking for SDL header... checking SDL.h usability... no
checking SDL.h presence... no
checking for SDL.h... no

checking for SDL_Init in -lSDL... no
checking for SDL library... 
checking for the Boost Version... no version needed
checking boost/detail/lightweight_mutex.hpp usability... no
checking boost/detail/lightweight_mutex.hpp presence... yes
configure: WARNING: boost/detail/lightweight_mutex.hpp: present but
cannot be compiled
configure: WARNING: boost/detail/lightweight_mutex.hpp:     check for
missing prerequisite headers?
configure: WARNING: boost/detail/lightweight_mutex.hpp: see the Autoconf
documentation
configure: WARNING: boost/detail/lightweight_mutex.hpp:     section
"Present But Cannot Be Compiled"
configure: WARNING: boost/detail/lightweight_mutex.hpp: proceeding with
the preprocessor's result
configure: WARNING: boost/detail/lightweight_mutex.hpp: in the future,
the compiler will take precedence
configure: WARNING:     ## -------------------------------- ##
configure: WARNING:     ## Report this to the gnash lists.  ##
configure: WARNING:     ## -------------------------------- ##
checking for boost/detail/lightweight_mutex.hpp... yes
checking for boost header... -I/usr/include
checking for library containing cleanup_slots... no
checking for Boost thread library... 
checking for xml2-config... no
no
checking for libxml2... no
checking for size_t... yes
checking size of size_t... 8
checking for long... yes
checking size of long... 8
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for kde-config... /usr/bin/kde-config
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking if C++ programs can be compiled... no
configure: error: Your Installation isn't able to compile simple C++
programs.
Check config.log for details - if you're using a Linux distribution you
might miss
a package named similar to libstdc++-dev.
address@hidden:~/src/gnash-0.7.2$ make
make  all-recursive
make[1]: Entering directory `/home/mra/src/gnash-0.7.2'
Making all in libbase
make[2]: Entering directory `/home/mra/src/gnash-0.7.2/libbase'
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I. -I..  -I.. -I. -I.. -I../server         -I/usr/include
-DQT_THREAD_SUPPORT  -D_REENTRANT  -g -O2 -march=k8     -W     -Wall
-Wcast-align     -Wcast-qual     -Wpointer-arith     -Wreturn-type
-MT config.lo -MD -MP -MF ".deps/config.Tpo" -c -o config.lo config.cpp;
\
        then mv -f ".deps/config.Tpo" ".deps/config.Plo"; else rm -f
".deps/config.Tpo"; exit 1; fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I.. -I../server
-I/usr/include -DQT_THREAD_SUPPORT -D_REENTRANT -g -O2 -march=k8 -W
-Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -MT
config.lo -MD -MP -MF .deps/config.Tpo -c config.cpp  -fPIC -DPIC -o
.libs/config.o
if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I. -I..  -I.. -I. -I.. -I../server         -I/usr/include
-DQT_THREAD_SUPPORT  -D_REENTRANT  -g -O2 -march=k8     -W     -Wall
-Wcast-align     -Wcast-qual     -Wpointer-arith     -Wreturn-type
-MT container.lo -MD -MP -MF ".deps/container.Tpo" -c -o container.lo
container.cpp; \
        then mv -f ".deps/container.Tpo" ".deps/container.Plo"; else rm
-f ".deps/container.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I.. -I../server
-I/usr/include -DQT_THREAD_SUPPORT -D_REENTRANT -g -O2 -march=k8 -W
-Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -MT
container.lo -MD -MP -MF .deps/container.Tpo -c container.cpp  -fPIC
-DPIC -o .libs/container.o
/usr/include/pthread.h:285: error: conflicting declaration 'typedef
struct pthread_st* pthread_t'
/usr/include/bits/pthreadtypes.h:50: error: 'pthread_t' has a previous
declaration as 'typedef long unsigned int pthread_t'
/usr/include/pthread.h:286: error: conflicting declaration 'typedef
struct pthread_attr_st* pthread_attr_t'
/usr/include/bits/pthreadtypes.h:57: error: 'pthread_attr_t' has a
previous declaration as 'typedef union pthread_attr_t pthread_attr_t'
/usr/include/pthread.h:287: error: conflicting declaration 'typedef int
pthread_key_t'
/usr/include/bits/pthreadtypes.h:140: error: 'pthread_key_t' has a
previous declaration as 'typedef unsigned int pthread_key_t'
/usr/include/pthread.h:289: error: conflicting declaration 'typedef int
pthread_mutexattr_t'
/usr/include/bits/pthreadtypes.h:110: error: 'pthread_mutexattr_t' has a
previous declaration as 'typedef union pthread_mutexattr_t
pthread_mutexattr_t'
/usr/include/pthread.h:290: error: conflicting declaration 'typedef
struct pthread_mutex_st* pthread_mutex_t'
/usr/include/bits/pthreadtypes.h:104: error: 'pthread_mutex_t' has a
previous declaration as 'typedef union pthread_mutex_t pthread_mutex_t'
/usr/include/pthread.h:291: error: conflicting declaration 'typedef int
pthread_condattr_t'
/usr/include/bits/pthreadtypes.h:136: error: 'pthread_condattr_t' has a
previous declaration as 'typedef union pthread_condattr_t
pthread_condattr_t'
/usr/include/pthread.h:292: error: conflicting declaration 'typedef
struct pthread_cond_st* pthread_cond_t'
/usr/include/bits/pthreadtypes.h:130: error: 'pthread_cond_t' has a
previous declaration as 'typedef union pthread_cond_t pthread_cond_t'
/usr/include/pthread.h:293: error: conflicting declaration 'typedef int
pthread_rwlockattr_t'
/usr/include/bits/pthreadtypes.h:192: error: 'pthread_rwlockattr_t' has
a previous declaration as 'typedef union pthread_rwlockattr_t
pthread_rwlockattr_t'
/usr/include/pthread.h:294: error: conflicting declaration 'typedef
struct pthread_rwlock_st* pthread_rwlock_t'
/usr/include/bits/pthreadtypes.h:186: error: 'pthread_rwlock_t' has a
previous declaration as 'typedef union pthread_rwlock_t
pthread_rwlock_t'
make[2]: *** [container.lo] Error 1
make[2]: Leaving directory `/home/mra/src/gnash-0.7.2/libbase'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mra/src/gnash-0.7.2'
make: *** [all] Error 2
address@hidden:~/src/gnash-0.7.2$ e: WARNING: ext/hash_map: in the future, the
compiler will take precedence
deps/container.Plo"; else rm -f ".deps/container.Tpo"; exit 1; fi
 gbash: e:: command not found
address@hidden:~/src/gnash-0.7.2$


any thoughts?  My system is an x86_64 just dist-upgraded to Feisty

-matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]