Re: Fwd: Re: [sigc] [Fwd: libsigc++ 1.9.13 fails on Solaris 9 sparc] [martin-ml hippogriff de]



Looks like similar issues as last time. Log attached.

I had trouble applying the patch - I'm not very good at that.
I tried
  cd libsigc++-1.9.14
  patch -l -N < base
and
  cd libsigc++-1.9.14
  patch -l -N -p1 < base
but neither time could the files to be patches be found.
Running the same commands from one dir up didn't make any difference.
I ended up carefully applying the changes manually.

Damien.

Martin Schulze wrote:
Here comes the attachment ...

Am 2004.02.19 09:56 schrieb(en) Damien Carbery:

All,

In the first build I did last week I used a tarball from sourceforge. The site was available about an hour after Murrary asked for help.

I downloaded the latest tarball (1.9.14) and attempted to build it on Solaris 9 Update 4 sparc. The attached log shows my environment, configure output and make output.


Thanks a lot!

The errors start with:
"../sigc++/adaptors/lambda/base.h", line 174: Error: Could not find sigc::internal::lambda_core<sigc::internal::lambda_select7, 0>:: lambda_core() to initialize base class.


The wrong template specialization is used because
sigc::is_base_and_derived<> yields a wrong result. Hopefully the reason
is that sizeof(char)==sizeof(double) on your platform. I committed a
patch to cvs that would fix this once and for all. I'm attaching the
patch to this email.

Damien, could you please apply this patch to your copy of libsigc++ 1.9.14 and try again?

Regards,

Martin


------------------------------------------------------------------------

Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/libsigc++2/ChangeLog,v
retrieving revision 1.79
diff -u -3 -r1.79 ChangeLog
--- ChangeLog	14 Feb 2004 19:54:43 -0000	1.79
+++ ChangeLog	19 Feb 2004 21:04:13 -0000
@@ -1,3 +1,9 @@
+2004-02-19  Martin Schulze  <teebaum cvs gnome org>
+
+  * sigc++/type_traits.h: Make is_base_and_derived<> platform independant.
+  * sigc++/adaptors/lambda/macros/base.h.m4: Make lambda_core<> ctors
+  explicit. Remove an unused ctor from lambda_core<T_type, true>.
+
 2004-02-14  Martin Schulze  <teebaum cvs gnome org>
* sigc++/functors/slot_base.h, sigc++/functors/macros/slot.h.m4:
Index: sigc++/type_traits.h
===================================================================
RCS file: /cvs/gnome/libsigc++2/sigc++/type_traits.h,v
retrieving revision 1.7
diff -u -3 -r1.7 type_traits.h
--- sigc++/type_traits.h	1 Nov 2003 00:16:14 -0000	1.7
+++ sigc++/type_traits.h	19 Feb 2004 21:04:14 -0000
@@ -102,9 +102,13 @@
 struct is_base_and_derived
 {
 private:
+  struct big {
+    char memory[64];
+  };
+
   struct test {
-    static double is_base_class_(const void*);
-    static char   is_base_class_(typename type_trait<T_base>::pointer);
+    static big  is_base_class_(const void*);
+    static char is_base_class_(typename type_trait<T_base>::pointer);
   };
public:
Index: sigc++/adaptors/lambda/macros/base.h.m4
===================================================================
RCS file: /cvs/gnome/libsigc++2/sigc++/adaptors/lambda/macros/base.h.m4,v
retrieving revision 1.1
diff -u -3 -r1.1 base.h.m4
--- sigc++/adaptors/lambda/macros/base.h.m4	2 Nov 2003 13:40:57 -0000	1.1
+++ sigc++/adaptors/lambda/macros/base.h.m4	19 Feb 2004 21:04:15 -0000
@@ -64,12 +64,14 @@
FOR(1,CALL_SIZE,[[LAMBDA_DO(%1)]])dnl
   lambda_core() {}
-  lambda_core(const T_type& v)
-    : value_(v) {}
- template <class T1, class T2>
-  lambda_core(const T1& v1, const T2& v2)
-    : value_(v1, v2) {}
+  explicit lambda_core(const T_type& v)
+    : value_(v) {}
+dnl
+dnl  TODO: I have no idea what the following ctor was written for. Remove it?
+dnl  template <class T1, class T2>
+dnl  lambda_core(const T1& v1, const T2& v2)
+dnl    : value_(v1, v2) {}
T_type value_;
 };
@@ -92,7 +94,7 @@
   result_type operator()() const;
FOR(1,CALL_SIZE,[[LAMBDA_DO_VALUE(%1)]])dnl
-  lambda_core(typename type_trait<T_type>::take v)
+  explicit lambda_core(typename type_trait<T_type>::take v)
     : value_(v) {}
T_type value_;
@@ -131,6 +133,7 @@
lambda()
     {}
+
   lambda(typename type_trait<T_type>::take v)
: internal::lambda_core<T_type>(v) {}

--
Damien Carbery
Desktop Release Engineer
Sun Microsystems

Email: damien carbery sun com
Ph: +353 1 819-9218
Ext: x 19218

Dublin Bus and Irish Rail timetables for your Palm:
http://bussched.sourceforge.net
Making all in sigc++
make[1]: Entering directory `/export/home/gnome/2.4/nightly/libsigc/libsigc++2/sigc++'
m4   -I ../sigc++/macros -I macros adaptors/lambda/macros/base.h.m4  > adaptors/lambda/base.h
m4   -I ../sigc++/macros -I macros adaptors/lambda/macros/lambda.cc.m4  > adaptors/lambda/lambda.cc
make  all-am
make[2]: Entering directory `/export/home/gnome/2.4/nightly/libsigc/libsigc++2/sigc++'
source='signal.cc' object='signal.lo' libtool=yes \
depfile='.deps/signal.Plo' tmpdepfile='.deps/signal.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile CC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsigc++\" -DVERSION=\"1.9.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1    -I.. -I.. -I/opt/gnome-2.4/include  -g -c -o signal.lo `test -f 'signal.cc' || echo './'`signal.cc
mkdir .libs
 CC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsigc++\" -DVERSION=\"1.9.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I.. -I.. -I/opt/gnome-2.4/include -g -c signal.cc  -KPIC -DPIC -o .libs/signal.o
 CC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsigc++\" -DVERSION=\"1.9.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I.. -I.. -I/opt/gnome-2.4/include -g -c signal.cc -o signal.o >/dev/null 2>&1
source='trackable.cc' object='trackable.lo' libtool=yes \
depfile='.deps/trackable.Plo' tmpdepfile='.deps/trackable.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile CC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsigc++\" -DVERSION=\"1.9.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1    -I.. -I.. -I/opt/gnome-2.4/include  -g -c -o trackable.lo `test -f 'trackable.cc' || echo './'`trackable.cc
 CC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsigc++\" -DVERSION=\"1.9.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I.. -I.. -I/opt/gnome-2.4/include -g -c trackable.cc  -KPIC -DPIC -o .libs/trackable.o
 CC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsigc++\" -DVERSION=\"1.9.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I.. -I.. -I/opt/gnome-2.4/include -g -c trackable.cc -o trackable.o >/dev/null 2>&1
source='connection.cc' object='connection.lo' libtool=yes \
depfile='.deps/connection.Plo' tmpdepfile='.deps/connection.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile CC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsigc++\" -DVERSION=\"1.9.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1    -I.. -I.. -I/opt/gnome-2.4/include  -g -c -o connection.lo `test -f 'connection.cc' || echo './'`connection.cc
 CC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsigc++\" -DVERSION=\"1.9.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I.. -I.. -I/opt/gnome-2.4/include -g -c connection.cc  -KPIC -DPIC -o .libs/connection.o
 CC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsigc++\" -DVERSION=\"1.9.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I.. -I.. -I/opt/gnome-2.4/include -g -c connection.cc -o connection.o >/dev/null 2>&1
source='functors/slot.cc' object='slot.lo' libtool=yes \
depfile='.deps/slot.Plo' tmpdepfile='.deps/slot.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile CC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsigc++\" -DVERSION=\"1.9.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1    -I.. -I.. -I/opt/gnome-2.4/include  -g -c -o slot.lo `test -f 'functors/slot.cc' || echo './'`functors/slot.cc
 CC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsigc++\" -DVERSION=\"1.9.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I.. -I.. -I/opt/gnome-2.4/include -g -c functors/slot.cc  -KPIC -DPIC -o .libs/slot.o
 CC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsigc++\" -DVERSION=\"1.9.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I.. -I.. -I/opt/gnome-2.4/include -g -c functors/slot.cc -o slot.o >/dev/null 2>&1
source='adaptors/lambda/lambda.cc' object='lambda.lo' libtool=yes \
depfile='.deps/lambda.Plo' tmpdepfile='.deps/lambda.TPlo' \
depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile CC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsigc++\" -DVERSION=\"1.9.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1    -I.. -I.. -I/opt/gnome-2.4/include  -g -c -o lambda.lo `test -f 'adaptors/lambda/lambda.cc' || echo './'`adaptors/lambda/lambda.cc
 CC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libsigc++\" -DVERSION=\"1.9.14\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I.. -I.. -I/opt/gnome-2.4/include -g -c adaptors/lambda/lambda.cc  -KPIC -DPIC -o .libs/lambda.o
"../sigc++/adaptors/lambda/base.h", line 170: Error: Could not find sigc::internal::lambda_core<sigc::internal::lambda_select7, 0>::lambda_core() to initialize base class.
"../sigc++/adaptors/lambda/base.h", line 170: Error: Could not find sigc::internal::lambda_core<sigc::internal::lambda_select6, 0>::lambda_core() to initialize base class.
"../sigc++/adaptors/lambda/base.h", line 170: Error: Could not find sigc::internal::lambda_core<sigc::internal::lambda_select5, 0>::lambda_core() to initialize base class.
"../sigc++/adaptors/lambda/base.h", line 170: Error: Could not find sigc::internal::lambda_core<sigc::internal::lambda_select4, 0>::lambda_core() to initialize base class.
"../sigc++/adaptors/lambda/base.h", line 170: Error: Could not find sigc::internal::lambda_core<sigc::internal::lambda_select3, 0>::lambda_core() to initialize base class.
"../sigc++/adaptors/lambda/base.h", line 170: Error: Could not find sigc::internal::lambda_core<sigc::internal::lambda_select2, 0>::lambda_core() to initialize base class.
"../sigc++/adaptors/lambda/base.h", line 170: Error: Could not find sigc::internal::lambda_core<sigc::internal::lambda_select1, 0>::lambda_core() to initialize base class.
7 Error(s) detected.
make[2]: *** [lambda.lo] Error 1
make[2]: Leaving directory `/export/home/gnome/2.4/nightly/libsigc/libsigc++2/sigc++'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/export/home/gnome/2.4/nightly/libsigc/libsigc++2/sigc++'
make: *** [all-recursive] Error 1


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