glibmm 2.4 in centos 4.7 compile problem



Hi,
Recently I have had to compile the libsigc++ 2.0 library which depends on the glibmm 2.4 library. But I could not compile the glibmm 2.4 successfully.
The operating system is CentOS 4.7, and the gcc is 4.6.1 which is compiled myself. And the system's gcc version is 4.1.2.
The compile is both not successful with the two gcc.
The error message is as follows:

make  all-recursive
make[1]: Entering directory `/home/good/packages/glibmm-2.4.0'
Making all in tools
make[2]: Entering directory `/home/good/packages/glibmm-2.4.0/tools'
Making all in m4
make[3]: Entering directory `/home/good/packages/glibmm-2.4.0/tools/m4'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/good/packages/glibmm-2.4.0/tools/m4'
Making all in pm
make[3]: Entering directory `/home/good/packages/glibmm-2.4.0/tools/pm'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/good/packages/glibmm-2.4.0/tools/pm'
Making all in extra_defs_gen
make[3]: Entering directory `/home/good/packages/glibmm-2.4.0/tools/extra_defs_gen'
if /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../glib -I/home/good/softwares/libsigc++2.0/include/sigc++-2.0 -I/home/good/softwares/libsigc++2.0/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include      -g -O2 -MT generate_extra_defs.lo -MD -MP -MF ".deps/generate_extra_defs.Tpo" \
          -c -o generate_extra_defs.lo `test -f 'generate_extra_defs.cc' || echo './'`generate_extra_defs.cc; \
        then mv -f ".deps/generate_extra_defs.Tpo" ".deps/generate_extra_defs.Plo"; \
        else rm -f ".deps/generate_extra_defs.Tpo"; exit 1; \
        fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../glib -I/home/good/softwares/libsigc++2.0/include/sigc++-2.0 -I/home/good/softwares/libsigc++2.0/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2 -MT generate_extra_defs.lo -MD -MP -MF .deps/generate_extra_defs.Tpo -c generate_extra_defs.cc  -fPIC -DPIC -o .libs/generate_extra_defs.o
/bin/sh ../../libtool --mode=link g++  -g -O2   -o libglibmm_generate_extra_defs-2.4.la -rpath /home/good/softwares/glibmm-2.4/lib  -version-info 1:0:0  generate_extra_defs.lo -Wl,--export-dynamic -L/home/good/softwares/libsigc++2.0/lib -L/lib64 -lsigc-2.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -Wl,--export-dynamic -L/home/good/softwares/libsigc++2.0/lib -L/lib64 -lsigc-2.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
g++ -shared /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginS.o  .libs/generate_extra_defs.o  -L/home/good/softwares/libsigc++2.0/lib -L/lib64 /home/good/softwares/libsigc++2.0/lib/libsigc-2.0.so -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crtn.o  -Wl,--export-dynamic -Wl,--export-dynamic -o .libs/libglibmm_generate_extra_defs-2.4.so.1.0.0
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o: In function `_init':
(.init+0x0): multiple definition of `_init'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o:(.init+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o: In function `_fini':
(.fini+0x0): multiple definition of `_fini'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o:(.fini+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginS.o:(.data.rel.ro+0x0): multiple definition of `__dso_handle'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginS.o:(.data.rel.ro+0x0): first defined here
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtendS.o:(.dtors+0x0): multiple definition of `__DTOR_END__'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtendS.o:(.dtors+0x0): first defined here
collect2: ld returned 1 exit status
make[3]: *** [libglibmm_generate_extra_defs-2.4.la] Error 1
make[3]: Leaving directory `/home/good/packages/glibmm-2.4.0/tools/extra_defs_gen'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/good/packages/glibmm-2.4.0/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/good/packages/glibmm-2.4.0'
make: *** [all] Error 2

Many thanks,
Nico Zhong


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