[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-i18n-discuss
Subject:    Re: [i18n-discuss] failed to build scim 1.4.7 on Solaris Express
From:       Yong Sun <Yong.Sun () Sun ! COM>
Date:       2007-11-27 2:06:37
Message-ID: 474B7BAD.209 () Sun ! COM
[Download RAW message or body]

Hi, Libei,

I just updated the patch and spec files for 1.4.7. Please check out and 
have a try. I also attached with my email.

Regards,

Yong Sun wrote:
> Hi, Libei,
> 
> Have you applied the scim patches if you are using SunStudio C++ compiler?
> http://src.opensolaris.org/source/xref/nv-g11n/inputmethod/scim/patches/
> 
> Regards,
> 
> libei 写道:
> 
> > I download SCIM 1.4.7 and run below:
> > 1 ./configure   OK
> > 2  gmake  FAILed:
> > "scim_compose_key.cpp", line 174: Error: Cannot use scim::ComposeKey Instance* to \
> > initialize scim::Pointer<scim::IMEngineInstanceBase> without \
> > "scim::Pointer<scim::IMEngineInstanceBase>::scim::Pointer<scim::IMEngineInstanceBase>(const \
> > scim::Pointer<scim::IMEngineInstanceBase>&)". 
> > if I run make, I'll get:
> > make: Fatal error : Command failed for target 'all-recursive'
> > 
> > Is there anything wrong in my steps?
> > 
> > 
> > This message posted from opensolaris.org
> > _______________________________________________
> > i18n-discuss mailing list
> > i18n-discuss@opensolaris.org
> > http://mail.opensolaris.org/mailman/listinfo/i18n-discuss
> > 
> > 
> 
> _______________________________________________
> i18n-discuss mailing list
> i18n-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/i18n-discuss
> 


["OSIMscim.spec" (text/x-rpm-spec)]

%include Solaris.inc

%define cmpt	scim

Summary:	Smart Common Input Method Framework
Name:		OSIMscim
Version: 	1.4.7
Release:	1
License: 	LGPL
Group: 		System/GUI/GNOME
Source: 	%{cmpt}-%{version}.tar.gz
Patch1:		scim-1.4.6-on-nv-ss11-patch.diff
Patch2:		scim-1.4.6-on-nv-ss12-patch.diff
Patch3:		scim-1.4.7-on-nv-ss12-patch.diff
BuildRoot:      %{_tmppath}/%{cmpt}-%{version}-build

%include default-depend.inc
Requires: SUNWgnome-base-libs
Requires: SUNWgnome-panel
BuildRequires: SUNWgnome-base-libs-devel
BuildRequires: SUNWgnome-panel-devel

%package devel
Summary:                 %{summary} - development files
SUNW_BaseDir:            %{_basedir}
%include default-depend.inc
Requires: SUNWgnome-base-libs

%prep
%setup -q -n %{cmpt}-%{version}

%patch3 -p0

touch ChangeLog

%build
export CFLAGS="%optflags"
export LDFLAGS="-lsocket"
./bootstrap
./configure --prefix=%{_prefix}                 \
            --sysconfdir=%{_sysconfdir}         \
            --disable-debug
make

%install
rm -rf ${RPM_BUILD_ROOT}
DESTDIR=${RPM_BUILD_ROOT} make install
find ${RPM_BUILD_ROOT} -name "*.a" -exec rm  {} \; -print
find ${RPM_BUILD_ROOT} -name "*.la" -exec rm {} \; -print

%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c \
"%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" \
$RPM_BUILD_ROOT}

%post
gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules

%clean
rm -rf ${RPM_BUILD_ROOT}

%files 
%defattr(-, root, bin)
%attr (0755, root, sys) %{_sysconfdir}
%dir %attr (0755, root, sys) /usr
%{_bindir}/*
%{_libdir}/lib*.so*
%{_libdir}/gtk-2.0/*
%{_libdir}/scim-1.0/*
%dir %attr (0755, root, sys) %{_datadir}
%attr (0755, root, other) %{_datadir}/locale
%dir %attr (0755, root, other) %{_datadir}/applications
%{_datadir}/applications/*
%dir %attr (0755, root, other) %{_datadir}/control-center-2.0
%dir %attr (0755, root, other) %{_datadir}/control-center-2.0/capplets
%{_datadir}/control-center-2.0/capplets/*
%dir %attr (0755, root, other) %{_datadir}/pixmaps
%{_datadir}/pixmaps/*
%{_datadir}/scim/*

%files devel
%defattr(-, root, bin)
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/*
%{_includedir}/*


["scim-1.4.7-on-nv-ss12-patch.diff" (text/x-patch)]

Index: src/scim.h
===================================================================
--- src/scim.h	(revision 56)
+++ src/scim.h	(working copy)
@@ -298,14 +298,14 @@
     #include <scim_global_config.h>
 #endif
 
+#ifdef Uses_SCIM_POINTER
+    #include <scim_pointer.h>
+#endif
+
 #ifdef Uses_SCIM_OBJECT
     #include <scim_object.h>
 #endif
 
-#ifdef Uses_SCIM_POINTER
-    #include <scim_pointer.h>
-#endif
-
 #ifdef Uses_SCIM_SLOT
     #include <scim_slot.h>
 #endif
Index: src/ltdl.cpp
===================================================================
--- src/ltdl.cpp	(revision 56)
+++ src/ltdl.cpp	(working copy)
@@ -3372,7 +3372,7 @@
   assert (filename);
 
   len = LT_STRLEN (filename);
-  ext = strrchr (filename, '.');
+  ext = strrchr ((char*)filename, '.');
 
   /* If FILENAME already bears a suitable extension, there is no need
      to try appending additional extensions.  */
Index: src/scim_socket.cpp
===================================================================
--- src/scim_socket.cpp	(revision 56)
+++ src/scim_socket.cpp	(working copy)
@@ -50,6 +50,10 @@
 #include "scim_private.h"
 #include "scim.h"
 
+#if defined(sun) && !defined(SUN_LEN)
+#define SUN_LEN(su) (sizeof(*(su)) - sizeof((su)->sun_path) + \
strlen((su)->sun_path)) +#endif
+
 #define SCIM_SOCKET_SERVER_MAX_CLIENTS  256
 
 namespace scim {
Index: src/scim_utility.cpp
===================================================================
--- src/scim_utility.cpp	(revision 56)
+++ src/scim_utility.cpp	(working copy)
@@ -40,6 +40,7 @@
 #include <stdio.h>
 #include <time.h>
 #include <errno.h>
+#include <locale.h>
 
 #include "scim_private.h"
 #include "scim.h"
Index: src/scim_transaction.cpp
===================================================================
--- src/scim_transaction.cpp	(revision 56)
+++ src/scim_transaction.cpp	(working copy)
@@ -792,7 +792,8 @@
         }
 
         if (len)
-            str = String (m_impl->m_holder->m_buffer + m_impl->m_read_pos, \
m_impl->m_holder->m_buffer + m_impl->m_read_pos + len); +            str = String \
((const char*)(m_impl->m_holder->m_buffer + m_impl->m_read_pos),  +                   \
(const char*)m_impl->m_holder->m_buffer + m_impl->m_read_pos + len);  else
             str = String ("");
 
@@ -828,7 +829,8 @@
         }
 
         if (len)
-            mbs = String (m_impl->m_holder->m_buffer + m_impl->m_read_pos, \
m_impl->m_holder->m_buffer + m_impl->m_read_pos + len); +            mbs = String \
((const char*)(m_impl->m_holder->m_buffer + m_impl->m_read_pos),  +                   \
(const char*)m_impl->m_holder->m_buffer + m_impl->m_read_pos + len);  else
             mbs = String ("");
 
Index: src/scim_pointer.h
===================================================================
--- src/scim_pointer.h	(revision 56)
+++ src/scim_pointer.h	(working copy)
@@ -84,7 +84,7 @@
     //!<
     //!< <BR>Initialize a new Pointer with any dumb pointer.
 
-    Pointer(Pointer& src) : t(0)
+    Pointer(const Pointer& src) : t(0)
     {
         set(src.get());
     }
Index: src/scim_types.h.in
===================================================================
--- src/scim_types.h.in	(revision 56)
+++ src/scim_types.h.in	(working copy)
@@ -32,6 +32,10 @@
 
 @INCLUDE_STDINT@
 
+#if defined (sun) && defined (_WCHAR_T)
+#  define __STDC_ISO_10646__
+#endif
+
 #ifdef __FreeBSD__
 # include <osreldate.h>
 # if __FreeBSD_version > 500035
Index: src/Makefile.am
===================================================================
--- src/Makefile.am	(revision 56)
+++ src/Makefile.am	(working copy)
@@ -134,8 +134,7 @@
 			  $(LD_VERSION_SCRIPT_OPTION) \
 			  @LIBTOOL_EXPORT_OPTIONS@ \
 			  @LIBICONV@ \
-			  @LTLIBINTL@ \
-			  -lstdc++
+			  @LTLIBINTL@ 
 
 libscim@SCIM_EPOCH@_la_LIBADD	= libltdlc.la
 
Index: tests/Makefile.am
===================================================================
--- tests/Makefile.am	(revision 56)
+++ tests/Makefile.am	(working copy)
@@ -49,7 +49,6 @@
 test_helper_la_LDFLAGS	= -avoid-version \
 		     	  -rpath $(helpermoduledir) \
 			  -module \
-			  -lstdc++ \
 			  @LIBTOOL_EXPORT_OPTIONS@ \
 			  @GTK2_LIBS@ \
 			  @LTLIBINTL@
Index: configure.ac
===================================================================
--- configure.ac	(revision 56)
+++ configure.ac	(working copy)
@@ -66,7 +66,9 @@
 
 # Init gettext
 ALL_LINGUAS="zh_CN zh_TW ja ko de fr it cs pa fi sv nl"
-AM_GNU_GETTEXT
+AM_GLIB_GNU_GETTEXT
+LTLIBINTL=
+AC_SUBST(LTLIBINTL)
 
 # Init libtool
 AC_LIBTOOL_DLOPEN
Index: extras/setup/Makefile.am
===================================================================
--- extras/setup/Makefile.am	(revision 56)
+++ extras/setup/Makefile.am	(working copy)
@@ -55,7 +55,6 @@
 setup_la_LDFLAGS	= -avoid-version \
 		     	  -rpath $(moduledir) \
 			  -module \
-			  -lstdc++ \
 			  @LIBTOOL_EXPORT_OPTIONS@ \
 			  @GTK2_LIBS@ \
 			  @LTLIBINTL@
Index: extras/gtk2_immodule/Makefile.am
===================================================================
--- extras/gtk2_immodule/Makefile.am	(revision 56)
+++ extras/gtk2_immodule/Makefile.am	(working copy)
@@ -38,13 +38,13 @@
 
 im_scim_la_SOURCES = gtkimcontextscim.cpp imscim.cpp
 
-im_scim_la_CXXFLAGS=@GTK2_CFLAGS@
+im_scim_la_CXXFLAGS=@GTK2_CFLAGS@ \
+		    -instlib=$(top_builddir)/src/.libs/libscim-1.0.so
 im_scim_la_CFLAGS  =@GTK2_CFLAGS@
 
 im_scim_la_LDFLAGS = -rpath $(moduledir) \
 		     -avoid-version \
 		     -module \
-		     -lstdc++ \
 		     $(LD_VERSION_SCRIPT_OPTION) \
 		     @GTK2_LIBS@
 
Index: modules/FrontEnd/scim_x11_frontend.cpp
===================================================================
--- modules/FrontEnd/scim_x11_frontend.cpp	(revision 56)
+++ modules/FrontEnd/scim_x11_frontend.cpp	(working copy)
@@ -46,6 +46,7 @@
 #include <X11/Xlib.h>
 #include <X11/keysym.h>
 #include <X11/Xutil.h>
+#include <locale.h>
 #include "IMdkit/IMdkit.h"
 #include "IMdkit/Xi18n.h"
 
Index: bootstrap
===================================================================
--- bootstrap	(revision 56)
+++ bootstrap	(working copy)
@@ -20,7 +20,7 @@
 #! /bin/sh
 
 set -x
-aclocal -I m4
+aclocal
 autoheader
 libtoolize -c --automake 
 automake --add-missing --copy --include-deps
Index: Makefile.am
===================================================================
--- Makefile.am	(revision 56)
+++ Makefile.am	(working copy)
@@ -33,7 +33,7 @@
 			  intltool-update.in
 
 AUTOMAKE_OPTIONS 	= gnu
-SUBDIRS 		= m4  intl src utils modules configs docs po extras data tests
+SUBDIRS 		= src utils modules configs docs po extras data tests
 
 MAINTAINERCLEANFILES 	= Makefile.in \
 			  aclocal.m4 \
@@ -61,7 +61,7 @@
 			  $(GTK_UTILS_PKGCONFIG) \
 			  $(X11_UTILS_PKGCONFIG)
 
-ACLOCAL_AMFLAGS = -I m4
+ACLOCAL_AMFLAGS = 
 
 .PHONY: update-ChangeLog
 



_______________________________________________
i18n-discuss mailing list
i18n-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/i18n-discuss


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic