Re: [gtkmm] Problems compiling libsigc++ 2.0.3 on Fedora Core 2



I can't reproduce your problem and overall i've never had any problems
compiling 2.0.3 on Fedora Core 2 (also with gcc 3.3.3-7), so I suspect
something is broken in your development environment. Can you compile it
from this SRPM  ? :

http://www.poolshark.org/rpms/fc2/gtkmm24/libsigc++20-2.0.3-0.fdr.1.2.src.rpm


--- Vladislav Grinchenko <vlad vgrinche-nt integ local> wrote:
> Hi,
> 
> I cannot build libsigc++ 2.0.3 on Fedora Core 2 (final).
> 
> System info:
> 
> [vlg dedalus]/Gtkmm/libsigc++-2.0.3> uname -r
> 2.6.5-1.358
> 
> [vlg dedalus]/Gtkmm/libsigc++-2.0.3> g++ --version
> g++ (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7)
> 
> The error I'm getting from g++ is:
> 
> ../sigc++/trackable.h:62: error: template-id `
>    list<sigc::internal::trackable_callback>' used as a declarator
> ../sigc++/trackable.h:62: error: syntax error before `;' token
> ../sigc++/trackable.h:63: error: 'callback_list' is used as a type,
> but is not
>    defined as a type. 
> 
> Looking into trackable.h reveals:
> 
> -------------------------------------------
> namespace sigc {
> namespace internal {
> 
> struct trackable_callback
> {
> 	...
> };
> 
> struct trackable_callback_list
> {
> 	...
> 
> private:
>   typedef std::list<trackable_callback> callback_list;
>   callback_list callbacks_;
> };
> 
> };
> };
> -------------------------------------------
> 
> Any ideas? (output of configure and make are attached)
> --Vlad 
> ______________________________________________________
> Vladislav Grinchenko    e-mail (w): vgrinche integ com
> Software Engineer            (h): 3rdshift comcast net
> Integral Systems, Inc.
> 
>    Focus on quality, and productivity will follow.
> ______________________________________________________
> > checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for gm4... no
> checking for m4... m4
> checking for perl... /usr/bin/perl
> checking whether to enable maintainer-specific portions of
> Makefiles... no
> checking for gcc... gcc
> checking for C compiler default output... 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 how to run the C preprocessor... gcc -E
> checking for some Win32 platform... no
> checking for a sed that does not truncate output... /bin/sed
> checking for egrep... grep -E
> checking for ld used by gcc... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking for /usr/bin/ld option to reload object files... -r
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking whether ln -s works... yes
> checking how to recognise dependent libraries... pass_all
> 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 dlfcn.h usability... yes
> checking dlfcn.h presence... yes
> checking for dlfcn.h... yes
> 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 how to run the C++ preprocessor... g++ -E
> checking for g77... g77
> checking whether we are using the GNU Fortran 77 compiler... yes
> checking whether g77 accepts -g... yes
> checking the maximum length of command line arguments... 32768
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> checking for objdir... .libs
> checking for ar... ar
> checking for ranlib... ranlib
> checking for strip... strip
> checking if gcc static flag  works... yes
> checking if gcc supports -fno-rtti -fno-exceptions... no
> checking for gcc option to produce PIC... -fPIC
> checking if gcc PIC flag -fPIC works... yes
> checking if gcc supports -c -o file.o... yes
> checking whether the gcc linker (/usr/bin/ld) supports shared
> libraries... yes
> checking whether -lc should be explicitly linked in... no
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> configure: creating libtool
> appending configuration tag "CXX" to libtool
> checking for ld used by g++... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking whether the g++ linker (/usr/bin/ld) supports shared
> libraries... yes
> checking for g++ option to produce PIC... -fPIC
> checking if g++ PIC flag -fPIC works... yes
> checking if g++ supports -c -o file.o... yes
> checking whether the g++ linker (/usr/bin/ld) supports shared
> libraries... yes
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> appending configuration tag "F77" to libtool
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> checking for g77 option to produce PIC... -fPIC
> checking if g77 PIC flag -fPIC works... yes
> checking if g77 supports -c -o file.o... yes
> checking whether the g77 linker (/usr/bin/ld) supports shared
> libraries... yes
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking whether we are using the GNU C++ compiler... (cached) yes
> checking whether g++ accepts -g... (cached) yes
> checking dependency style of g++... (cached) gcc3
> checking if C++ compiler supports the use of a particular
> specialization when calling operator() template methods.... yes
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating sigc++-2.0.pc
> config.status: creating sigc++/Makefile
> config.status: creating scripts/Makefile
> config.status: creating tests/Makefile
> config.status: creating examples/Makefile
> config.status: creating MSVC_Net2003/Makefile
> config.status: creating docs/Makefile
> config.status: creating docs/images/Makefile
> config.status: creating docs/reference/Makefile
> config.status: creating docs/reference/Doxyfile
> config.status: creating sigc++config.h
> config.status: executing depfiles commands
> > make  all-recursive
> make[1]: Entering directory `/home/vlg/develop/Gtkmm/libsigc++-2.0.3'
> Making all in sigc++
> make[2]: Entering directory
> `/home/vlg/develop/Gtkmm/libsigc++-2.0.3/sigc++'
> make  all-am
> make[3]: Entering directory
> `/home/vlg/develop/Gtkmm/libsigc++-2.0.3/sigc++'
> if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H   -I.. -I.. 
>  -g -O2 -MT signal.lo -MD -MP -MF ".deps/signal.Tpo" \
>   -c -o signal.lo `test -f 'signal.cc' || echo './'`signal.cc; \
> then mv -f ".deps/signal.Tpo" ".deps/signal.Plo"; \
> else rm -f ".deps/signal.Tpo"; exit 1; \
> fi
> mkdir .libs
>  g++ -DHAVE_CONFIG_H -I.. -I.. -g -O2 -MT signal.lo -MD -MP -MF
> .deps/signal.Tpo -c signal.cc  -fPIC -DPIC -o .libs/signal.o
>  g++ -DHAVE_CONFIG_H -I.. -I.. -g -O2 -MT signal.lo -MD -MP -MF
> .deps/signal.Tpo -c signal.cc -o signal.o >/dev/null 2>&1
> if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H   -I.. -I.. 
>  -g -O2 -MT signal_base.lo -MD -MP -MF ".deps/signal_base.Tpo" \
>   -c -o signal_base.lo `test -f 'signal_base.cc' || echo
> './'`signal_base.cc; \
> then mv -f ".deps/signal_base.Tpo" ".deps/signal_base.Plo"; \
> else rm -f ".deps/signal_base.Tpo"; exit 1; \
> fi
>  g++ -DHAVE_CONFIG_H -I.. -I.. -g -O2 -MT signal_base.lo -MD -MP -MF
> .deps/signal_base.Tpo -c signal_base.cc  -fPIC -DPIC -o
> .libs/signal_base.o
> In file included from signal.h:10,
>                  from /usr/include/pthread.h:24,
>                  from
> /usr/include/c++/3.3.3/i386-redhat-linux/bits/gthr-default.h:37,
>                  from
> /usr/include/c++/3.3.3/i386-redhat-linux/bits/gthr.h:98,
>                  from
> /usr/include/c++/3.3.3/i386-redhat-linux/bits/c++io.h:37,
>                  from /usr/include/c++/3.3.3/bits/fpos.h:44,
>                  from /usr/include/c++/3.3.3/iosfwd:49,
>                  from /usr/include/c++/3.3.3/bits/stl_algobase.h:70,
>                  from /usr/include/c++/3.3.3/list:67,
>                  from ../sigc++/signal_base.h:24,
>                  from signal_base.cc:20:
> ../sigc++/trackable.h:62: error: template-id `
>    list<sigc::internal::trackable_callback>' used as a declarator
> ../sigc++/trackable.h:62: error: syntax error before `;' token
> ../sigc++/trackable.h:63: error: 'callback_list' is used as a type,
> but is not 
>    defined as a type.
> In file included from /usr/include/pthread.h:24,
>                  from
> /usr/include/c++/3.3.3/i386-redhat-linux/bits/gthr-default.h:37,
>                  from
> /usr/include/c++/3.3.3/i386-redhat-linux/bits/gthr.h:98,
>                  from
> /usr/include/c++/3.3.3/i386-redhat-linux/bits/c++io.h:37,
>                  from /usr/include/c++/3.3.3/bits/fpos.h:44,
>                  from /usr/include/c++/3.3.3/iosfwd:49,
>                  from /usr/include/c++/3.3.3/bits/stl_algobase.h:70,
>                  from /usr/include/c++/3.3.3/list:67,
>                  from ../sigc++/signal_base.h:24,
>                  from signal_base.cc:20:
> signal.h:25: error: syntax error before `;' token
> signal.h:33: error: `signal_impl' is not a class or namespace
> signal.h:33: error: `iterator_type' is not a class or namespace
> signal.h:39: confused by earlier errors, bailing out
> make[3]: *** [signal_base.lo] Error 1
> make[3]: Leaving directory
> `/home/vlg/develop/Gtkmm/libsigc++-2.0.3/sigc++'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/home/vlg/develop/Gtkmm/libsigc++-2.0.3/sigc++'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/vlg/develop/Gtkmm/libsigc++-2.0.3'
> make: *** [all] Error 2
> > _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
> 




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