On Mon, Apr 10, 2023 at 10:11 PM James McCoy <james...@jamessan.com> wrote:
>
> On Mon, Apr 10, 2023 at 09:29:52AM +0200, Tony Mechelynck wrote:
> > On Sun, Apr 9, 2023 at 11:02 PM Bram Moolenaar <b...@moolenaar.net> wrote:
> > >
> > >
> > > Tony wrote:
> > >
> > > > Recently (but I'm not sure when) my supposedly Motif gvim started
> > > > getting compiled without GUI. Examination of the config log showed the
> > > > following lines:
> > > >
> > > > checking --enable-gui argument... Motif GUI support
> > > > checking for pkg-config... /usr/bin/pkg-config
> > > > checking for location of Motif GUI includes... in default path
> > > > checking --with-motif-lib argument... no
> > > > checking for location of Motif GUI libs... <not found>
> > > >
> > > > After some trial and error, I found out that by changing just one line
> > > > in my environment settings, as follows:
> > > >
> > > > from: export CONF_OPT_GUI='--enable-gui=motif'
> > > >   to: export CONF_OPT_GUI='--enable-gui=motif --with-motif-lib=-lXm'
> > > >
> > > > (and doing no other changes), then sourcing the configure script again
> > > > in the same shell to overwrite the environment values set by the
> > > > previous version of the same script, and running "make reconfig", its
> > > > --version output told me this time "Tiny version with X11-Motif GUI".
> > > > The relevant lines in the config log are now
> > > >
> > > > checking --enable-gui argument... Motif GUI support
> > > > checking for pkg-config... /usr/bin/pkg-config
> > > > checking for location of Motif GUI includes... in default path
> > > > checking --with-motif-lib argument... -lXm
> > > >
> > > > Is this expected? If just specifying that the Motif lib is named libXm
> > > > (without mentioning a directory) makes configure find it, I would have
> > > > expected it to already know that. Or is that name nonstandard?
> > >
> > > It's not about the lib name, it's about finding the library to link
> > > with.  A sequence of directories are checked for:
> > >         libXm.a
> > >         libXm.dll.a
> > >         libXm.so*
> > >         libXm.sl
> > >         libXm.dylib
> > >
> > > Perhaps the name of the library changed?  On my system I can find
> > > /usr/lib/x86_64-linux-gnu/libXm.a
> > >
> > > The check hasn't changed for a long time.  It can be found in
> > > src/configure.ac around line 2960.
> >
> > According to the YaST installer, openSUSE Tumbleweed package libXm4
> > titled "Motif runtime library" installs (only) files
> > /usr/lib64/libXm.so.4 and /usr/lib64/libXm.so.4.0.4
>
> Most shared library packages on Linux are split into the runtime package
> (which contains only the SONAME-versioned library names) and the
> development package (which includes the header files and the unversioned
> library name -- libXm.so -- which is used when building).  It sounds
> like you only have the runtime package installed.
>
> Cheers,
> --
> James
> GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB

When I search for "Motif" packages, YaST tells me (in alphabetical
order) that the following are installed:
• libGLwM1 : Motif OpenGL drawing area widget library
• libMrm4 : Motif Resource Manager library
• libUil4 : Motif User Interface Language library
• libXm4 : Motif runtime library
• motif : Motif Runtime Programs
• motif-devel : Motif Include Files and Libraries Mandatory for Development
Not installed are:
• motif-debuginfo : Debug information for package motif
• motif-debugsource : Debug sources for package motif
• motif-devel-debuginfo : Debug information for package motif-devel

If motif-devel were not installed, configure would not find, as it
does even without my help, the Motif include files; and the existence
of the unversioned /usr/lib64/libXm.so as a soft link pointing where
it should, is mentioned in one of my ealier messages.

Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAJkCKXsAzD%3DVa3%3DLpuhDL1296swqgzxOrqJ4z%2BuKsFE7Pf1GJg%40mail.gmail.com.

Raspunde prin e-mail lui