* Problem linking OSF/Motif code -- Missing "I18n" functions
@ 1992-10-09 16:30 Lee E. Brotzman
1992-10-09 20:07 ` Paul Tatarsky
0 siblings, 1 reply; 3+ messages in thread
From: Lee E. Brotzman @ 1992-10-09 16:30 UTC (permalink / raw)
Greetings,
I have a new DECstation 5000/125 which came with DEC OSF/Motif release 1.1.3.
My problem is pretty simple, none of the Motif code I have tried to compile
will link correctly. I have tried several packages, and the response from ld
is always the same (cc command edited for readability):
-------------------------------------------------------------------------------
cc -o mxqwais global.o main.o mocode.o waisq.o qread.o question.o document.o\
util.o source.o utils.o ../bin/inv.a ../bin/wais.a\
-lXm -lDXm -lXt -lX11 -lm
ld:
Undefined:
I18nGetLocaleString
I18nGetLocaleCharset
I18nGetLocaleCharsets
I18nCreateDefaultFontList
I18nHasSubstring
I18nCSConstructInit
I18nCSConstructEnd
I18nCSConstructSegment
I18nCSConstructLine
I18nCvtCStoFCInit
I18nCvtCStoFCEnd
I18nCvtCStoFCSegment
I18nCvtCStoFCLine
I18nCvtCStoOSInit
I18nCvtCStoOSEnd
I18nCvtCStoOSSegment
I18nCvtCStoOSLine
I18nCvtFCtoCS
I18nCvtOStoCS
_XtAddPDDestroyCallback
_Xt_LoadQueryFont
_XtAddCallbackForOtherWidget
*** Error code 1
-------------------------------------------------------------------------------
After grepping my way through the include directories, I found that the "I18n"
routines have to do with internationalization. I have run 'nm' on all of the
libraries I have, and have indeed found undefined references to these routines
in /usr/lib/libDXm.a and /usr/lib/libXm.a. No library has the routines defined
as local text. Where the last three routines from the Xtoolkit are, I have no
idea. I have tried several variations on the ordering of the libraries with no
luck. I have tried putting additional libraries in the path with no luck. I
think that I am simply missing a library or that one of the libraries that DEC
*thinks* I have isn't the right one (I did a full load from the CD-ROM marked,
"ULTRIX DECwindows for OSF/Motif V1.1.3", AG-PPJ3A-RE).
Am I missing something simple here? Could it be that I just not linking the
things right? That's my hope anyway. If I *am* missing a library, where can I
get it?
Any and all help will be greatly appreciated.
--
-- Lee E. Brotzman Internet: leb@hypatia.gsfc.nasa.gov
-- Hughes STX DECNET: NDADSA::BROTZMAN
-- National Space Science Data Center BITNET: ZMLEB@GIBBS
-- NASA Goddard Space Flight Center
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem linking OSF/Motif code -- Missing "I18n" functions
1992-10-09 16:30 Problem linking OSF/Motif code -- Missing "I18n" functions Lee E. Brotzman
@ 1992-10-09 20:07 ` Paul Tatarsky
1992-10-10 3:36 ` Lee E. Brotzman
0 siblings, 1 reply; 3+ messages in thread
From: Paul Tatarsky @ 1992-10-09 20:07 UTC (permalink / raw)
We don't run the DECwindows or DEC Motif stuff here, but recently I
helped out some folks in another department who had your exact same
problem.
Here's what I think happened, and what you can do to fix it.
When you loaded Ultrix and Motif I think you did this:
Loaded the default DECwindows subset UDWXDEV420
Loaded the DEC Motif 1.1.3 subset DXMXM113
( then, saw the MIT R4 stuff in the Unsupported and...)
Loaded the Unsupported X11 R4 Components ULXUNMIT420
So, here's what happened with regards to your linking X libs of
-lXm -lDXm -lXt -lX11
-lXm links to the DEC Motif libXm.a
-lDXm links to the DEC Motif libDXm.a
-lXt links to the UNSUPPORTED libXt.a which CLOBBERED the
DEC Motif supplied libXt.a <<< ERROR, DOES NOT WORK >>>
-lX11 links to the DECwindows -lX11 because the MIT one is named
-lX11-mit.
A listing from setld confirms the fact the the Unsupported MIT
setld clobbers the DEC motif libXt.a
DEC Motif X11 libs: MIT Unsupported X11 libs:
/usr/lib/libX11.a /usr/lib/libX11-mit.a
/usr/lib/libXm.a
/usr/lib/libXmu.a /usr/lib/libXmu.a
/usr/lib/libXt.a /usr/lib/libXt.a
So actually you have two clobbered Motif libs: -lXt and -lXmu
To fix it we did this:
Move /usr/lib/libXt.a to /usr/lib/libXt-mit.a and
/usr/lib/libXmu.a to /usr/lib/libXmu-mit.a
Re-install the Motif development subset again. Which is named
DXMXM113 OSF/Motif Development Env. (RISC)
I am pretty sure this will fix your problem. At this point
I suggested a move to public domain MIT X11R5 and a purchase
of OSF's Motif. This value added stuff X11 stuff should be
scrapped. It makes life more difficult than it has to be.
Let me know if this works for you.
Paul Tatarsky email: paul@cse.ucsc.edu
UC Santa Cruz
CIS/CE Board
Technical Staff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem linking OSF/Motif code -- Missing "I18n" functions
1992-10-09 20:07 ` Paul Tatarsky
@ 1992-10-10 3:36 ` Lee E. Brotzman
0 siblings, 0 replies; 3+ messages in thread
From: Lee E. Brotzman @ 1992-10-10 3:36 UTC (permalink / raw)
Thank you very much, Mr. Tatarsky. The "unsupported X11" load module was the
culprit in this case. I have received several queries by E-mail to share the
solution, so this is obviously a problem that is wide-spread. You have saved
me many days of frustrating searches and tests and I am very grateful.
This is why I love having Usenet as a resource. I could have relegated my
problem to the DEC tech-service phone tree, but within hours I have a working
solution that has me up and running -- without the pain and suffering.
Now if only the DEC team that created the OSF/Motif 1.1.3 release had tried
installing the system as presented, using the most obvious "all of the above"
selection presented by 'setld' (which I and most of the systems administration
public has chosen), and THEN TRIED TO COMPILE ANY MOTIF CLIENTS, this
whole problem might have been avoided.
Personally, I have always tried to load and run major applications on a "clean"
system, devoid of the usual development tricks of the trade. I haven't
mentioned that I had to load the Ultrix operating system *three times* because
I was using all the CD-ROMs shipped in a single package for version 4.3 plus
OSF/Motif, then I loaded the security patches on the CD-ROMS in a separate
package to bring me up to version 4.3c. This was a mistake since the security
patches blew out Motif. I had to load DEC windows -- then the patches -- and
only then the Motif package. Of course the proper sequence was never
mentioned in the installation and release notes.
DEC could probably save technical support costs by hiring systems persons that
are not Ultrix-aware (like me), and handing them the installation media and
seeing what troubles they get into *BEFORE THEY RELEASE THE PRODUCTS*. Better
yet, they could test these things in-house and make sure there isn't a problem.
I have been administering Silicon Graphics machines for several years, and
never had any problems with OS installation/upgrades, so at least someone out
there is doing it right.
Sorry if this message has developed into a sermon. I would like to thank you
again, Mr. Tatarsky, for enforcing my belief in Usenet as the greatest pulic
source of information I know.
--
-- Lee E. Brotzman Internet: leb@hypatia.gsfc.nasa.gov
-- Hughes STX DECNET: NDADSA::BROTZMAN
-- National Space Science Data Center BITNET: ZMLEB@GIBBS
-- NASA Goddard Space Flight Center
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1992-10-10 3:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-10-09 16:30 Problem linking OSF/Motif code -- Missing "I18n" functions Lee E. Brotzman
1992-10-09 20:07 ` Paul Tatarsky
1992-10-10 3:36 ` Lee E. Brotzman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox