From: LIM JONG-GYUN
Subject: si:faslink on HP9000-800 (akcl)
Date: 
Message-ID: <1993Jun2.025631.13317@kum.kaist.ac.kr>
Hi,

si::faslink that used to work on Sparc2 doesn't seem to work on
HP9000-800.  The compile and link sequence in the file below used to
work fine and I was able to draw a window using Motif library
functions:

%%%%% test-gui.lsp %%%%%
(load "jk.lisp")
(compile-file "jk.lisp")
(si::faslink "jk.o" "/usr/lib/Motif1.1/libXm.a /usr/lib/X11R4/libXt.a 
	/usr/lib/X11R4/libX11.a /lib/libPW.a /lib/libc.a /lib/libm.a")


Now, it seems that the function si::faslink doesn't work on
HP9000-800.  Could somebody kindly look at the error message generated
by akcl below and shad me some light?

BTW, in (describe 'faslink) it says that si::faslink only works for
BSD.  Could that be a problem?  If so, is anyone working on making it
to work for HP-UX?  FYI, the *features* variable contains BSD as well as
HP-UX as below:

> *features*
(:COMPILER :NUMLIB COMPILER::BUGGY-CC :SDEBUG TRUNCATE_USE_C BSD HP-UX
    MC68020 HP9000-800 IEEE-FLOATING-POINT UNIX AKCL COMMON KCL)


Finally, is si::faslink the only way to link .o and .a files?
There seems to be compiler::clink function, but it does nothing... (or
maybe I don't know how to use it.)

		       -----------------------


>(load "test-gui")
Loading test-gui.lsp
Loading jk.lisp
Finished loading jk.lisp
Compiling jk.lisp.
End of Pass 1.
End of Pass 2.
OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
Finished compiling jk.lisp.ld: Target of unconditional branch is out of range
   Reference from:  /usr/lib/X11R4/libXt.a(Create.o)(0x570)
ld: Target of unconditional branch is out of range
   Reference from:  /usr/lib/X11R4/libXt.a(Create.o)(0x630)
ld: Target of unconditional branch is out of range
   Reference from:  /usr/lib/X11R4/libXt.a(Destroy.o)(0x524)
ld: Target of unconditional branch is out of range
      Reference from:  /usr/lib/X11R4/libXt.a(Error.o)(0x200)
ld: Target of unconditional branch is out of range
            Reference from:  /usr/lib/X11R4/libXt.a(Error.o)(0x308)
ld: Target of unconditional branch is out of range
            Reference from:  /usr/lib/X11R4/libXt.a(Event.o)(0x7f0)
ld: Target of unconditional branch is out of range
            Reference from:  /usr/lib/X11R4/libXt.a(GetResList.o)(0x264)
ld: Target of unconditional branch is out of range
	    Reference from:  /usr/lib/X11R4/libXt.a(Initialize.o)(0x82c)
ld: Target of unconditional branch is out of range
            Reference from:  /usr/lib/X11R4/libX11.a(XFillPoly.o)(0xd8)
ld: Target of unconditional branch is out of range
	    Reference from:  /usr/lib/X11R4/libX11.a(XGetPntMap.o)(0xa0)
ld: Target of unconditional branch is out of range
	    Reference from:  /usr/lib/X11R4/libX11.a(XImText.o)(0x4f8)
ld: Target of unconditional branch is out of range
	    Reference from:  /usr/lib/X11R4/libX11.a(XImText16.o)(0x17c)
ld: Target of unconditional branch is out of range
	    Reference from:  /usr/lib/X11R4/libX11.a(XKeyBind.o)(0xcb8)
Error: The linkage editor failed.
Fast links are on: do (use-fast-links nil) for debugging
Error signalled by SYSTEM:FASLINK.
Broken at SYSTEM:FASLINK.  Type :H for Help.
>>

Notes:  deleted about 80 lines in the middle.



----------------------------------------------------------------------
				Jong-Gyun Lim
  		     /  	Computer Application Lab., R&D Center
	    /            /  	Samsung Electronics Co., LTD.
      /		           /	41 Maetan 3 Dong, Paldal-Gu,
  /	S A M S U N G	   /	Suwon City, Kyungki-Do, Korea  441-742
/			/	0331-200-3093 ; 0331-200-3104 (FAX)
/                 /		(Home: Seoul, SungDong, KwangJang, KukDong apt
  /   /    /			3-306, 452-5541)
From: Jens Kilian
Subject: Re: si:faslink on HP9000-800 (akcl)
Date: 
Message-ID: <JENSK.93Jun4090514@hpbbrn.bbn.hp.com>
> > *features*
> (:COMPILER :NUMLIB COMPILER::BUGGY-CC :SDEBUG TRUNCATE_USE_C BSD HP-UX
>     MC68020 HP9000-800 IEEE-FLOATING-POINT UNIX AKCL COMMON KCL)
      ^^^^^^^^^^^^^^^^^^

You are using a version of AKCL that has not been properly ported.
9000/8xx systems use the PA-RISC CPU - the MC68020 is only used in 9000/3xx.

Don't expect the code that deals with object code relocation on the 9000/3xx
to work on an 8xx machine - the executable files have different formats.

Sorry - can't give more help (I'm a user, not an expert. And of course I don't
speak for HP.)

Greetings,

	Jens.
--
Internet: ·····@hpbeo82.bbn.hp.com    HPDESK : ··············@HP1200
MausNet:  Jens Kilian @ BB                     ·····················@hpbbi4
-------------------------------------------------------------------------------
As the air to a bird, or the sea to a fish, so is contempt to the contemptible.