🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #38389

ld problem: adding libgcc.a to libX11.so.4.20 (X11R6)

#38389
From: Shash Chatterjee
Date: Fri, 25 Aug 1995 00:00
35 lines
2419 bytes
Hi,

I'm trying to build X11R6 (pl12) with gcc-2.7.0 on a Sun3/470 (SunOS 4.1.1).
When I try to run "old" Sun executables (like mailtool) I get an
"undefined symbol ___eprintf" error.  So, as suggested by the Readme.x11
file in the gcc distribution, I modified the X11R6 config files to define
SharedX11Reqs to "/usr/local/lib/gcc-lib/m68k-sun-sunos4.1.1/2.7.0/libgcc.a"
(There weren't any patches for X11R6, just for X11R5).  The command line
when libX11 was built was

ld -o libX11.so.4.20~ -assert pure-text ....all the libX11 objects..\
	/usr/local/lib/gcc-lib/m68k-sun-sunos4.1.1/2.7.0/libgcc.a

I then did a make install.  Unfortunately, "___eprintf" still cannot be found.
(I also tried adding -lc after the libgcc.a without any success).

I have the libc jumbo pathces as well as the ld patch (100170) and have
SunPost411FCSLd defined.

What am I doing wrong?  If ld succeeds in adding libgcc.a to libX11.so.4.20,
should I be able to nm libX11.so.4.20 and see the libgcc.a objects in there?

IF ANYBODY HAS X11R6/XVIEW-3.2 BUILT CORRECTLY ON A SUN-3 (ie, you are able to 
run Sun supplied tools like mailtool) PLEASE HELP ME!!!!!!

Thanks,
Shash
-- 
+-----------------------------------------------------------------+
+                  ChatterjeeS@lfwc.lockheed.com                  +
+ Sasvata Chatterjee   | Electronic Systems Design & Integration  +
+    "SHASH-WATA"      | Lockheed Martin Tactical Aircraft Systems+
+ (817) 763-1495       | Lockheed Boulevard, MZ2273               +
+ (817) 763-1495 (FAX) | Fort Worth, TX 76108                     +
+-----------------------------------------------------------------+
Technical Details
Message-ID: <41krnu$c6j@butch.lmsc.lockheed.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,f389970c94ba17e7,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: 103734,f389970c94ba17e7,start
X-Google-Attributes: gid103734,public
X-Google-Thread: 1070f0,f389970c94ba17e7,start
X-Google-Attributes: gid1070f0,public
From: Shash Chatterjee <chatterj>
Subject: ld problem: adding libgcc.a to libX11.so.4.20 (X11R6)
Date: 1995/08/25
Message-ID: <41krnu$c6j@butch.lmsc.lockheed.com>
X-Deja-AN: 108832835
content-type: text/plain; charset=us-ascii
organization: Lockheed Martin Tactical Aircraft Systems
x-url: news:comp.windows.x
mime-version: 1.0
newsgroups: comp.windows.x,comp.sys.sun.admin,gnu.gcc.help
x-mailer: Mozilla 1.1N (X11; I; SunOS 5.4 sun4m)