DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th July 2019
brudan brudan is offline
Fdisk Soldier
 
Join Date: Dec 2018
Posts: 82
Default deadkeys and compose key don't work in xfe and xfw

I am running OpenBSD 6.5, X with default settings, fluxbox with default settings. My keyboard layout is us-international, which has the following deadkeys: ` ~ ^ ' "

The deadkeys and compose key sequences work everywhere (e.g., xterm, gtk applications) but not in xfe and xfw.

For example, in both xfe and xfw:
- AltGr works: AltGr + p gives me ö
- deadkeys broken: ' then e gives me e (é is expected)
- compose key broken: compose then < then 3 gives me <3 (♥ is expected)

I don't think it is a problem with xfe/xfw, because deadkeys and compose key work fine in xfe/xfw running in Debian with same keyboard layout. It must either be a problem with fox toolkit in OpenBSD or else something wrong/missing in my OpenBSD environment.

I already tried launching xfw with different values for XMODIFIERS, to no avail:

Code:
$ XMODIFIERS="@im=xim" xfw
$ XMODIFIERS="@im=uim" xfw
$ XMODIFIERS="@im=ibus" xfw
$ XMODIFIERS="" xfw
I have this in my ~/.xsession:

Code:
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
fluxbox
Any ideas on what I need to do in order for deadkeys and compose key sequences to work in xfe and xfw? I use these two applications a lot.

Last edited by brudan; 19th July 2019 at 07:01 PM. Reason: added .xsession contents
Reply With Quote
  #2   (View Single Post)  
Old 19th July 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

The FAQ recommends LC_CTYPE. "...even LC_ALL and LANG only affect the character encoding."
Reply With Quote
  #3   (View Single Post)  
Old 19th July 2019
brudan brudan is offline
Fdisk Soldier
 
Join Date: Dec 2018
Posts: 82
Default

Thank you, jggimi. I changed my ~/.xsession to this...

Code:
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
fluxbox
...and rebooted. It made no difference, unfortunately.
Reply With Quote
  #4   (View Single Post)  
Old 19th July 2019
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by brudan View Post
Thank you, jggimi. I changed my ~/.xsession to this...

Code:
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
fluxbox
Fluxbox should be started this way when run from .xsession:
Code:
exec startfluxbox
Reply With Quote
  #5   (View Single Post)  
Old 19th July 2019
brudan brudan is offline
Fdisk Soldier
 
Join Date: Dec 2018
Posts: 82
Default

Thank you, ibara. I changed .xsession as you recommended but that did not solve the problem.

Are you able to reproduce the problem?
Reply With Quote
  #6   (View Single Post)  
Old 24th July 2019
brudan brudan is offline
Fdisk Soldier
 
Join Date: Dec 2018
Posts: 82
Default

I tried the adie text editor, which uses the same FOX toolkit that xfe and xfw use. The problem affects adie as well.

So it seems that the problem affects OpenBSD ports that use the FOX toolkit. The problem does not affect ports that use GTK or Qt toolkit. I have not yet found a fix.

Last edited by brudan; 24th July 2019 at 06:57 PM. Reason: clarity
Reply With Quote
  #7   (View Single Post)  
Old 24th July 2019
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

The FOX toolkit could use an update; it's likely very old. Not guaranteed to solve your issue but I'd probably start there.
Reply With Quote
  #8   (View Single Post)  
Old 25th July 2019
brudan brudan is offline
Fdisk Soldier
 
Join Date: Dec 2018
Posts: 82
Default

Good idea, ibara.

So I got the latest stable fox toolkit (version 1.6.57) then compiled and installed it the usual way (note: I cheated and looked at the configure flags and arguments from the existing devel/fox port):

Code:
bruno@thinkpad:~/Downloads/fox-1.6.57$ CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure --x-includes="/usr/X11R6/include -I/usr/X11R6/include/freetype2" --x-libraries=/usr/X11R6/lib --with-xft
bruno@thinkpad:~/Downloads/fox-1.6.57$ make
bruno@thinkpad:~/Downloads/fox-1.6.57$ doas pkg_delete fox
bruno@thinkpad:~/Downloads/fox-1.6.57$ doas make install
No luck after the above--xfe and xfw both run fine, but dead keys and compose key are broken just as before.

Please take a look at the first line of code above. Maybe one of those configure arguments is wrong or extraneous? Or maybe a critical argument is missing?

Last edited by brudan; 25th July 2019 at 03:57 AM.
Reply With Quote
  #9   (View Single Post)  
Old 25th July 2019
brudan brudan is offline
Fdisk Soldier
 
Join Date: Dec 2018
Posts: 82
Default

I made massive progress with this. Turns out --with-xim was the missing critical argument to configure. Also, after make install there was one library that xfe couldn't find, which required a symbolic link.

So here is what I have so far:

Code:
bruno@thinkpad:~/Downloads/fox-1.6.57$ CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure --x-includes="/usr/X11R6/include -I/usr/X11R6/include/freetype2" --x-libraries=/usr/X11R6/lib --with-xft --with-xim
bruno@thinkpad:~/Downloads/fox-1.6.57$ make CXX=c++
bruno@thinkpad:~/Downloads/fox-1.6.57$ doas pkg_delete fox
bruno@thinkpad:~/Downloads/fox-1.6.57$ doas make install
bruno@thinkpad:~/Downloads/fox-1.6.57$ doas ln -s /usr/local/lib/libFOX-1.6.so.0.57 /usr/local/lib/libFOX-1.6.so.2.1
Now dead keys and compose key work fine in xfe and xfw

But now I have this cosmetic issue when launching xfe from the command line:

Code:
bruno@thinkpad:~/Downloads/fox-1.6.57$ xfe
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv120__si_class_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv120__function_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVSt9type_info) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv117__class_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv123__fundamental_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv119__pointer_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv129__pointer_to_member_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv116__enum_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv121__vmi_class_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv117__pbase_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv117__array_type_infoE) size mismatch, relink your program
Since I've come this far, I'd like to recompile so that the above warnings disappear. What went wrong?

Last edited by brudan; 25th July 2019 at 12:28 PM.
Reply With Quote
Old 25th July 2019
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by brudan View Post
Code:
bruno@thinkpad:~/Downloads/fox-1.6.57$ xfe
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv120__si_class_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv120__function_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVSt9type_info) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv117__class_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv123__fundamental_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv119__pointer_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv129__pointer_to_member_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv116__enum_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv121__vmi_class_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv117__pbase_type_infoE) size mismatch, relink your program
xfe:/usr/lib/libstdc++.so.57.0: /usr/lib/libc++abi.so.0.1 : WARNING: symbol(_ZTVN10__cxxabiv117__array_type_infoE) size mismatch, relink your program
Since I've come this far, I'd like to recompile so that the above warnings disappear. What went wrong?
This means that there's a stray g++ in your build. Probably during the link step. You'll want to change

Quote:
Originally Posted by brudan View Post
Code:
bruno@thinkpad:~/Downloads/fox-1.6.57$ CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure --x-includes="/usr/X11R6/include -I/usr/X11R6/include/freetype2" --x-libraries=/usr/X11R6/lib --with-xft --with-xim
to

Code:
bruno@thinkpad:~/Downloads/fox-1.6.57$ CXX=c++ CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure --x-includes="/usr/X11R6/include -I/usr/X11R6/include/freetype2" --x-libraries=/usr/X11R6/lib --with-xft --with-xim
Reply With Quote
Old 25th July 2019
brudan brudan is offline
Fdisk Soldier
 
Join Date: Dec 2018
Posts: 82
Default

Ibara, you are amazing. Yes, that did it.

SOLVED!

This GNU/g++ vs. clang/c++ issue keeps tripping me up. Hopefully someday I'll tame it.

For posterity's sake, here are the final steps I took to solve the problem described in my first post:

Code:
bruno@thinkpad:~/Downloads/fox-1.6.57$ CXX=c++ CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure --x-includes="/usr/X11R6/include -I/usr/X11R6/include/freetype2" --x-libraries=/usr/X11R6/lib --with-xft --with-xim
bruno@thinkpad:~/Downloads/fox-1.6.57$ make
bruno@thinkpad:~/Downloads/fox-1.6.57$ doas pkg_delete fox
bruno@thinkpad:~/Downloads/fox-1.6.57$ doas make install
bruno@thinkpad:~/Downloads/fox-1.6.57$ doas ln -s /usr/local/lib/libFOX-1.6.so.0.57 /usr/local/lib/libFOX-1.6.so.2.1

Last edited by brudan; 25th July 2019 at 03:14 PM.
Reply With Quote
Old 25th July 2019
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

I submitted a port update here: https://marc.info/?l=openbsd-ports&m...7045606394&w=2
Reply With Quote
Old 25th July 2019
brudan brudan is offline
Fdisk Soldier
 
Join Date: Dec 2018
Posts: 82
Default

Nice. Thank you!
Reply With Quote
Reply

Tags
dead keys, fox, keyboard, solved, xfe

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
why won't my table work? tomp OpenBSD Security 3 25th August 2011 12:23 PM
My Mouse Don't Work ??? sharris FreeBSD General 9 7th May 2011 02:15 AM
nspluginwrapper not work... marduk NetBSD Installation and Upgrading 4 3rd January 2011 10:23 PM
Crossplatform UI Work Turophile Programming 9 21st October 2008 11:56 PM
Getting Qt4 to work on FreeBSD enpey FreeBSD Ports and Packages 6 6th May 2008 07:20 AM


All times are GMT. The time now is 05:51 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick