Bug 1308117 - scim-thai: FTBFS in rawhide
scim-thai: FTBFS in rawhide
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: scim-thai (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Peng Wu
Fedora Extras Quality Assurance
:
Depends On: 1307739
Blocks: F24FTBFS
  Show dependency treegraph
 
Reported: 2016-02-13 17:28 EST by Fedora Release Engineering
Modified: 2016-02-16 03:42 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-02-16 03:42:41 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
build.log (20.99 KB, text/plain)
2016-02-13 17:28 EST, Fedora Release Engineering
no flags Details
root.log (98.12 KB, text/plain)
2016-02-13 17:28 EST, Fedora Release Engineering
no flags Details
state.log (633 bytes, text/plain)
2016-02-13 17:28 EST, Fedora Release Engineering
no flags Details

  None (edit)
Description Fedora Release Engineering 2016-02-13 17:28:01 EST
Your package scim-thai failed to build from source in current rawhide.

http://koji.fedoraproject.org/koji/taskinfo?taskID=12868476

For details on mass rebuild see https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
Comment 1 Fedora Release Engineering 2016-02-13 17:28:03 EST
Created attachment 1126412 [details]
build.log
Comment 2 Fedora Release Engineering 2016-02-13 17:28:04 EST
Created attachment 1126413 [details]
root.log
Comment 3 Fedora Release Engineering 2016-02-13 17:28:06 EST
Created attachment 1126414 [details]
state.log
Comment 4 Jens Petersen 2016-02-16 00:11:12 EST
 g++ -DHAVE_CONFIG_H -I. -I.. -DSCIM_THAI_LOCALEDIR=\"/usr/share/locale\" -DSCIM_ICONDIR=\"/usr/share/scim/icons\" -I/usr/include/scim-1.0 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c scim_thai_imengine.cpp  -fPIC -DPIC -o .libs/thai_la-scim_thai_imengine.o
In file included from /usr/include/thai/thwctype.h:69:0,
                 from scim_thai_imengine.cpp:30:
/usr/include/thai/thctype.h:372:19: error: left operand of shift expression '(-1 << 3)' is negative [-fpermissive]
   _th_CClassMsk = _th_bitmsk(1, 3),  /*   Thai consonant shape masks */
                   ^
/usr/include/thai/thctype.h:372:19: error: enumerator value for '_th_CClassMsk' is not an integer constant
   _th_CClassMsk = _th_bitmsk(1, 3),  /*   Thai consonant shape masks */
                   ^
/usr/include/thai/thctype.h:378:19: error: left operand of shift expression '(-1 << 3)' is negative [-fpermissive]
   _th_VClassMsk = _th_bitmsk(4, 3),  /*   Thai vowel class masks */
                   ^
/usr/include/thai/thctype.h:378:19: error: enumerator value for '_th_VClassMsk' is not an integer constant
   _th_VClassMsk = _th_bitmsk(4, 3),  /*   Thai vowel class masks */
                   ^
Makefile:426: recipe for target 'thai_la-scim_thai_imengine.lo' failed
make[2]: *** [thai_la-scim_thai_imengine.lo] Error 1
Comment 5 Jens Petersen 2016-02-16 00:17:59 EST
I updated pkg git master to 0.1.3 finally but also run into:

http://koji.fedoraproject.org/koji/taskinfo?taskID=13002947

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -DSCIM_THAI_LOCALEDIR=\"/usr/share/locale\" -DSCIM_ICONDIR=\"/usr/share/scim/icons\" -I/usr/include/scim-1.0 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c scim_thai_keymap.cpp  -fPIC -DPIC -o .libs/thai_la-scim_thai_keymap.o
In file included from /usr/include/thai/thwctype.h:69:0,
                 from scim_thai_imengine.cpp:30:
/usr/include/thai/thctype.h:372:19: error: left operand of shift expression '(-1 << 3)' is negative [-fpermissive]
   _th_CClassMsk = _th_bitmsk(1, 3),  /*   Thai consonant shape masks */
                   ^
/usr/include/thai/thctype.h:372:19: error: enumerator value for '_th_CClassMsk' is not an integer constant
   _th_CClassMsk = _th_bitmsk(1, 3),  /*   Thai consonant shape masks */
                   ^
/usr/include/thai/thctype.h:378:19: error: left operand of shift expression '(-1 << 3)' is negative [-fpermissive]
   _th_VClassMsk = _th_bitmsk(4, 3),  /*   Thai vowel class masks */
                   ^
/usr/include/thai/thctype.h:378:19: error: enumerator value for '_th_VClassMsk' is not an integer constant
   _th_VClassMsk = _th_bitmsk(4, 3),  /*   Thai vowel class masks */
                   ^
Makefile:505: recipe for target 'thai_la-scim_thai_imengine.lo' failed
make[2]: *** [thai_la-scim_thai_imengine.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
scim_thai_imengine_setup.cpp: In function 'GtkWidget* create_setup_window()':
scim_thai_imengine_setup.cpp:171:58: error: 'gtk_box_new' was not declared in this scope
         window = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
                                                          ^
scim_thai_imengine_setup.cpp: In function 'void setup_widget_value()':
scim_thai_imengine_setup.cpp:326:12: warning: enumeration value 'THAI_KEYBOARD_NUM_LAYOUTS' not handled in switch [-Wswitch]
     switch (__config_kb_layout)
            ^
scim_thai_imengine_setup.cpp: In function 'void load_config(const ConfigPointer&)':
scim_thai_imengine_setup.cpp:379:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          i < sizeof (__layout_config_string)/sizeof (*__layout_config_string);
          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scim_thai_imengine_setup.cpp:392:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          i < sizeof (__isc_config_string)/sizeof (*__isc_config_string);
          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:484: recipe for target 'thai_imengine_setup_la-scim_thai_imengine_setup.lo' failed
Comment 6 Daiki Ueno 2016-02-16 01:30:58 EST
I have updated libthai with the upstream fix for this.  Try rebuilding with it.
Comment 7 Jens Petersen 2016-02-16 02:26:52 EST
With newer libthai-0.1.24-1.fc24 I still get:

http://koji.fedoraproject.org/koji/taskinfo?taskID=13004133
Comment 8 Daiki Ueno 2016-02-16 03:01:42 EST
The remaining errors have nothing to do with libthai.  You updated scim-thai to the latest upstream, which seems only be compiled with gtk3.  To solve this, maybe you could wait for the scim package being compiled with --with-gtk-version=3, or forward port the gtk2 code from the older version of scim-thai.
Comment 9 Peng Wu 2016-02-16 03:42:41 EST
Use gtk2 for setup dialog, built for rawhide.

URL: http://koji.fedoraproject.org/koji/buildinfo?buildID=736251

Note You need to log in before you can comment on or make changes to this bug.