LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-08-2009, 02:13 PM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
libXm.so.3...


Hi Forum

I have installed multilib compatibility, and motif widgets, which I have compiled for 64bits arch, because I had to compile an app who called for them... OpenDX.

Now that I am about to install a 32 bit app that calls for libXm.so.3 ( motif widgets installed .so.4, and .so.2 )

Would it be enough to recompile for ARCH=i486... ?

In this case to which folder would the 32bit libXm.so.2 and libXm.so.4 go...? ( would they still be found by the app, or shoud i anex its path to LD_LIBRARY_PATH in the install shell...? )

Guess it would be enough to hack a simlink called libXm.so.3 pointing to my 32 bit libXm so.4(2)... am i right... ?

Or is libXm.so.3 a completely different kind of "animal" fom libXm.so.2(4)...?


AFAIK there is something called OpenMOTIF, and another thing called Lesstif...

This is what raises some doubts...


BRGDS

Alex
 
Old 12-08-2009, 03:25 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
' libXm.so.3 ' is from 'openmotif-2.2.x'.
The binary file is available in, example,
the package openmotif22 for CentOS 5.4

A link to your current lib may work .. you will find out ...

Else : A Slackbuild for 2.2.2
http://slackware.osuosl.org/slackwar...rce/openmotif/
.....

P.S. : About OpenDX ... remember this ?
http://www.linuxquestions.org/questi...ghlight=opendx
.....

Last edited by knudfl; 12-08-2009 at 04:01 PM.
 
1 members found this post helpful.
Old 12-08-2009, 05:53 PM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Knudfl

I remember allright... Thks for all yr help :-)

... I got it working with the motif slackbuild for Slackware 13

...I will now build the OpenMotif from Sl 10.2 but i will build it i486... the target app is 32 bit...

Thks

BRGDS

Alex
 
Old 12-09-2009, 03:23 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I have a OpenMotif SlackBuild script plus packages for Slackware 13.0 (32-bit as well as 64-bit) here: http://slackware.com/~alien/slackbuilds/openmotif/

Eric
 
1 members found this post helpful.
Old 12-16-2009, 04:51 PM   #5
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi AlienBob

Thks for this hint, been busy with other stuff, back to Motif Stuff now...

One question though... :

I have multilib enabled... assuming i want to build your slackbuild from source, i only have to source the 32bit environment,

Code:
root@iskandhar:/home/alex/Downloads/OMotif# . /etc/profile.d/32dev.sh
set ARCH in the slackBuild to i486, and run the SlackBuild, right...?

This is Intuitive, it is why i did so, anyway, the result is this...


Code:
...................................................
o .libs/TabStack.o .libs/DrawUtils.o .libs/Tree.o .libs/DropDown.o .libs/Jpeg.o .libs/Png.o  -Wl,--rpath -Wl,/usr/lib64 -Wl,--rpath -Wl,/usr/lib64 -L/usr/lib64 /usr/lib64/libXmu.so -L/lib64 /usr/lib64/libXt.so /usr/lib64/libXext.so /usr/lib64/libXp.so -lz -L/usr/lib /usr/lib64/libXft.so /usr/lib64/libXrender.so /usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so /usr/lib64/libX11.so -ljpeg -lpng  -march=i486 -mtune=i686 -Wl,-soname -Wl,libXm.so.4 -o .libs/libXm.so.4.0.2
/usr/lib64/libXmu.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [libXm.la] Error 1
make[3]: Leaving directory `/tmp/build/tmp-openmotif/openmotif-2.3.2/lib/Xm'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/tmp/build/tmp-openmotif/openmotif-2.3.2/lib/Xm'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/build/tmpo .libs/TabStack.o .libs/DrawUtils.o .libs/Tree.o .libs/DropDown.o .libs/Jpeg.o .libs/Png.o  -Wl,--rpath -Wl,/usr/lib64 -Wl,--rpath -Wl,/usr/lib64 -L/usr/lib64 /usr/lib64/libXmu.so -L/lib64 /usr/lib64/libXt.so /usr/lib64/libXext.so /usr/lib64/libXp.so -lz -L/usr/lib /usr/lib64/libXft.so /usr/lib64/libXrender.so /usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so /usr/lib64/libX11.so -ljpeg -lpng  -march=i486 -mtune=i686 -Wl,-soname -Wl,libXm.so.4 -o .libs/libXm.so.4.0.2
/usr/lib64/libXmu.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [libXm.la] Error 1
make[3]: Leaving directory `/tmp/build/tmp-openmotif/openmotif-2.3.2/lib/Xm'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/tmp/build/tmp-openmotif/openmotif-2.3.2/lib/Xm'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/build/tmp-openmotif/openmotif-2.3.2/lib'
make: *** [install-recursive] Error 1
mv: cannot stat `/tmp/build/package-openmotif/usr/man/man3/Shell.3': No such file or directory
./openmotif.SlackBuild FAILED at line 160
root@iskandhar:/home/alex/Downloads/OMotif/Bobs#
-openmotif/openmotif-2.3.2/lib'
make: *** [install-recursive] Error 1
mv: cannot stat `/tmp/build/package-openmotif/usr/man/man3/Shell.3': No such file or directory
./openmotif.SlackBuild FAILED at line 160
root@iskandhar:/home/alex/Downloads/OMotif/Bobs#

What is wrong here...?


One more thing... Should I installpkg the 32 build from http://connie.slackware.com/~alien/s...otif/pkg/13.0/, must i source the environment /etc/profile.d/32dev.sh before..._

Where will the 32bit binaries lsnd in this case...? ( is the default target directory sensible to the sourcing of this environment... ? )


BRGDS

Alex
 
Old 12-16-2009, 05:11 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by Alexvader View Post
I have multilib enabled... assuming i want to build your slackbuild from source, i only have to source the 32bit environment,

Code:
root@iskandhar:/home/alex/Downloads/OMotif# . /etc/profile.d/32dev.sh
set ARCH in the slackBuild to i486, and run the SlackBuild, right...?

...

What is wrong here...?
Please read http://alien.slackbook.org/dokuwiki/...2-bit_programs more carefully if you want to compile 32-bit software on multilib-Slackware64. You will find your error documented there.

Quote:
One more thing... Should I installpkg the 32 build from http://connie.slackware.com/~alien/s...otif/pkg/13.0/, must i source the environment /etc/profile.d/32dev.sh before..._
Sourcing the "32dev.sh" script is only needed when compiling 32-bit software... not when installing 32-bit software. If you want to install a 32-bit openmofig package in Slackware64, I would suggest using "convertpkg-compat32" to create a 32-bit package that will not conflict with the 64-bit openmotif package (in case you ever want to install that as well).

Quote:
Where will the 32bit binaries lsnd in this case...? ( is the default target directory sensible to the sourcing of this environment... ? )
I have no idea what this question is about...

Eric
 
1 members found this post helpful.
Old 12-16-2009, 05:26 PM   #7
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi AlienBob


Thks for your answer...

Code:
 Where will the 32bit binaries land in this case...? ( is the default target directory sensible to the sourcing of this environment... ? )
This was a typo...


BRGDS

Alex
 
Old 12-17-2009, 04:09 AM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by Alexvader View Post
Code:
 Where will the 32bit binaries land in this case...? ( is the default target directory sensible to the sourcing of this environment... ? )
This was a typo...
I had seen that, but the question itself does not make sense to me.

Eric
 
1 members found this post helpful.
Old 12-17-2009, 07:22 AM   #9
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi AlienBob

What I have ment is :

"when I installpkg a package resulting from, say convertpkg-compat32 <foo.tgz>, the resulting shared objects are put into /usr/lib ? "

More specifically :

I have followed your advice as how to obtain a 32 bit package of OpenMotif-2.2.2 so as to have a libXm.so.3 in my system...

So... I grabbed http://slackware.osuosl.org/slackwar...2.2-i486-1.tgz, a 32bit package from Slackware 10.2, and as you advised me, I ran convertpkg-compat32 over it to obtain openmotif-compat32-2.2.2-x86_64-1.txz, I installpkg'ed it, so it went somewhere... I found the required libs in /usr/X11R6/lib...

I tried to Install an application that calls for 32bit OpenMotif 2.2.2, ProEngineer Wildfire 3...

First try : Without sourcing the 32bit env script from /etc/... I ran the installer from ProEngineer, it reported missing libXm.so.3... So, I sourced the 32bit environment... ran into the same problem.

Second try : Almost the same as the first try, only variation being that I extended the LD_LIBRARY_PATH to include /usr/X11R6/lib before sourcing the 32 bit environment script... still the installer would not find the created libXm.so.3 where i told him it would be...


Seems like I am doind something n00bish os stupid... but i do not know what...

Can you give me a hint on what is my mistake...?

BRGDS

Alex

BTW: Slackware used to be simply the BEST Platform EVER to run ProEngineer... check this :
www.proesite.com/BENCH30/Wildfire_on_linux.pdf

Since it is a 32bit app, which is no longer supported for Linux I am trying to bring it to run in Slackware64 13...

Last edited by Alexvader; 12-17-2009 at 07:28 AM.
 
Old 12-17-2009, 12:43 PM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by Alexvader View Post
I have followed your advice as how to obtain a 32 bit package of OpenMotif-2.2.2 so as to have a libXm.so.3 in my system...

So... I grabbed http://slackware.osuosl.org/slackwar...2.2-i486-1.tgz, a 32bit package from Slackware 10.2, and as you advised me, I ran convertpkg-compat32 over it to obtain openmotif-compat32-2.2.2-x86_64-1.txz, I installpkg'ed it, so it went somewhere... I found the required libs in /usr/X11R6/lib..
That is a very old package! It is also for a version of X that is not compatible with Slackware 13.0 which is probably the reason that the libs are not detected after installation.

Uninstall that, and then try converting this package instead (but since it overwrites parts of the "lesstif" package you have to remove the lesstif package too before installing the new openmotif): http://slackware.com/~alien/slackbui...otif/pkg/13.0/

Eric
 
1 members found this post helpful.
Old 12-17-2009, 01:27 PM   #11
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi AlienBob

Thkz for your answer

I Already have this installed as x86_64 arch I do not needed it 32bit anyway... needed it to compile OpenDX ( Data eXplorer from IBM )

...the problem is that this will give me libXm.so.4 ( which I have allright ...)

... well Pro Engineer calls for libXm.so.3

Do you think that converting this package to 32 bit and installing it and then making a symlink to 32 bit libXm.so.4 called libXm.so.3 will solve the issue...? ...Won't there be unknown symbols issues and stuff...?

BRGDS

Alex
 
Old 12-17-2009, 01:58 PM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You'll only find out by creating the symlink and looking at what happens...
Alternatively, you can grab the openmotif-2.2.2 source, modify my openmotif.SlackBuild (hopefully the only thing needed is changing the VERSION number) and create a 32-bit package for this version yourself.

Eric
 
  


Reply

Tags
openmotif



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Library] libXm.so.3 missing ko0nz Red Hat 12 05-24-2015 04:37 PM
failed dependency libXm.so.3 Curtux Mandriva 19 05-04-2011 06:23 AM
libXm.so.3 missing Biosys Linux - Software 5 08-03-2008 11:32 PM
Need XKeySymDB and libXm.so.3 for FC7 UTKEngineer Linux - Software 2 09-07-2007 02:27 PM
libXm.so.2 missing Rutnut Linux - Software 3 08-04-2002 02:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration