Re: XForms: And furthermore, static linking, Solaris 2.5 vs Solaris 2.6

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 7 Jan 99 19:27:46 PST

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> If I link on Solaris 2.5 and try to run on 2.6 I get the error:
>
> ./act_ui: Can't open display blah:0--Invalid argument
>
> which I mentioned before, and which, as Steve correctly surmised,
> immediately terminates the application.

> [...]

> I'm not sure what ld.so.1 is. ld in the man page is a link editor, but
> that's an application. Could it be a dynamic loader?

Yup. See the man page for `ld.so.1' for details.

NAME
ld.so.1 - runtime linker for dynamic objects

SYNOPSIS
/usr/lib/ld.so.1

/etc/lib/ld.so.1

DESCRIPTION
Dynamic applications consist of one or more dynamic objects.
They are typically a dynamic executable and its shared
object dependencies. As part of the initialization and exe-
cution of a dynamic application, an interpreter is called to
complete the binding of the application to its shared object
dependencies. In Solaris this interpreter is referred to as
the runtime linker.

[...]

> I should mention that if compiled on 2.5 it runs fine on 2.5 and if compiled
> on 2.6 it runs fine on 2.6

My suggestion is to link dynamically. I used to hate the dynamic
loader but I've learned to live with it. If you have specific needs
for certain libraries loaded statically, I suggest bracketing them
with -Bstatic and -Bdynamic. I used to do this with XForms while the
API was still changing a fair amount but have stopped doing it since
things have stabilized.

Can you give some reason for wanting to statically link? I think you
may be beating your head against a wall for no particular reason. Not
that it doesn't feel sooooo goooood when you stop, of course...

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/