Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1308117 - scim-thai: FTBFS in rawhide
Summary: scim-thai: FTBFS in rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: scim-thai
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peng Wu
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1307739
Blocks: F24FTBFS
TreeView+ depends on / blocked
 
Reported: 2016-02-13 22:28 UTC by Fedora Release Engineering
Modified: 2016-02-16 08:42 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-16 08:42:41 UTC
Type: ---
Embargoed:


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

Description Fedora Release Engineering 2016-02-13 22:28:01 UTC
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 22:28:03 UTC
Created attachment 1126412 [details]
build.log

Comment 2 Fedora Release Engineering 2016-02-13 22:28:04 UTC
Created attachment 1126413 [details]
root.log

Comment 3 Fedora Release Engineering 2016-02-13 22:28:06 UTC
Created attachment 1126414 [details]
state.log

Comment 4 Jens Petersen 2016-02-16 05:11:12 UTC
 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 05:17:59 UTC
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 06:30:58 UTC
I have updated libthai with the upstream fix for this.  Try rebuilding with it.

Comment 7 Jens Petersen 2016-02-16 07:26:52 UTC
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 08:01:42 UTC
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 08:42:41 UTC
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.