home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!tymix!Tymnet.COM!rmurphy
- From: rmurphy@Tymnet.COM (Ron Murphy)
- Newsgroups: comp.windows.x
- Subject: Help! SunOS 4.1.2/Xmu linking problem
- Message-ID: <2312@tymix.Tymnet.COM>
- Date: 14 Aug 92 21:40:55 GMT
- Sender: usenet@tymix.Tymnet.COM
- Reply-To: rmurphy@Tymnet.COM (Ron Murphy)
- Organization: BT Tymnet Inc.; San Jose, CA
- Lines: 67
- Nntp-Posting-Host: fusco
-
- Greetings X window Xperts,
-
- I have just installed Sun OS 4.1.2/OpenWindows 3 on my system. A problem now
- arises in linking one of my programs using X11R4 (pure MIT) libraries. (The
- same thing happens whether I use the ones I got myself from MIT or the ones
- with OW 3.) This problem occurs when linking the shared library versions.
-
- Since I use facilities in libXExt.a, the symbol references
- _get_wmShellWidgetClass and _get_applicationShellWidgetClass occur,
- but they never get resolved!
-
- The library resolving these symbols is libXmu.sa.4.0 on my system, as
- you can see:
-
- fusco% nm /usr/lib/X11/libXmu.sa.4.0
-
- sharedlib.o:
- U _applicationShellWidgetClass
- 00000000 T _get_applicationShellWidgetClass
- 0000000c T _get_wmShellWidgetClass
- U _wmShellWidgetClass
-
- I gave the linker every chance to load libXmu, by specifying
-
- -lXaw -lXt -lXmu -lX11 -lXext -lXmu -lm -lg -lc -lXmu
-
- Can't be too careful!
-
- I used cc -v to determine the linker command that was issued, and then I
- executed this command with -M to figure out what the linker was doing. Here
- is a summary of the interesting stuff:
-
- ...(lots of my modules and libraries)
-
- /usr/lib/X11/libXaw.so.4.0
- /usr/lib/X11/libXt.so.4.1
- /usr/lib/X11/libXt.sa.4.1
- sharedlib.o
- /usr/lib/X11/libXmu.so.4.0
- /usr/lib/X11/libXmu.sa.4.0
- /usr/lib/X11/libX11.so.4.3
- /usr/lib/X11/libX11.sa.4.3
- /usr/lib/X11/libXext.a
- XShape.o
- extutil.o
- /usr/lib/X11/libXmu.so.4.0
- /usr/lib/X11/libXmu.sa.4.0
-
- ...(math and C libraries)
-
- /lib/libdl.so.1.0
- /usr/lib/X11/libXmu.so.4.0
- /usr/lib/X11/libXmu.sa.4.0
- ld: Undefined symbol
- _get_wmShellWidgetClass
- _get_applicationShellWidgetClass
-
- So, on every pass, libXmu.sa.4.0 was ignored! Is this a known bug, and how
- would I get a patch for it? Or am I missing something?
-
- If you post an answer, please also reply by e-mail. I don't normally read this
- group since there's so much stuff on it.
-
- Cheers,
-
- Ron Murphy
- BT North America Inc.
-