Re: better suggestion

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Fri, 19 Jul 1996 10:54:46 +0200

On Thu, 18 Jul 1996, Doug Hughes wrote:

> On the SunOS front, I have a better suggestion for the users, though it
> takes a lot more knowledge and doing. The res stuff (either from
> bind or libresolv+) should be linked in with the tnm.so library directly
> to avoid dynamically loadable problems with tclsh, wish, etc

Jochen Wiedmann <wiedmann@ns.neckar-alb.de> wrote:

> I had problems with that on Solaris 2.4. Workaround was to create
> a dynamically linked bind.

I think Dough's idea to write down what the typical problems on SunOS
are and how to solve them is a good idea. I think it is time to start
a porting.notes file similar to the file contained in the Tcl
distribution. I would like to invite more people familiar with their
OS to write down what OS specific problems they had so solve. Below is
the initial version of this file. If someone is willing to provide
help for a special OS (Doug, are you willing to do that for SunOS?)
please let me know and I will include their email address.

Juergen

This file contains a collection of notes that various people have
provided about porting the scotty Tcl extension to various machines
and operating systems. I don't have personal access to any of these
machines, so I make no guarantees that the notes are correct,
complete, or up-to-date. If you see the word "I" in any explanations,
it refers to the person who contributed the information, not to me;
this means that I probably can't answer any questions about any of
this stuff. In some cases, a person has volunteered to act as a
contact point for questions about porting Tcl to a particular machine;
in these cases the person's name and e-mail address are listed. I'm
interested in getting new porting information to add to the file;
please mail updates to "schoenw@cs.utwente.nl".

You should also read the porting.notes file contained in the Tcl
distribution to find out if your problem is probably related to the
Tcl software itself.

--------------------------------------------
SunOS, various versions
--------------------------------------------

1. (for each ld) change the ld for the shared library creation when
compiling with the --enable-shared option so that it adds the uses ld
-assert pure-text and remove the -l flags from the line (they cause
unecessary pic/PIC warnings at this phase - we'll worry about them
later)

2. definitely users should get bind-4.9.4 and compile the resolv from
that when linking in the last phase of scotty. (eliminates the last
remaining pic/PIC problems)

On the SunOS front, I have a better suggestion for the users, though
it takes a lot more knowledge and doing. The resolver stuff should be
linked in with the tnm.so library directly to avoid dynamically
loadable problems with tclsh, wish, etc

--------------------------------------------
IRIX, various versions
--------------------------------------------

The make program which is part of IRIX has problems with substitutions
on the left side of a rule. The easiest way to solve this problem is
to use GNU make.

--------------------------------------------
Solaris 2.4
--------------------------------------------

Dynamic loading problems with the resolver can be solved by building a
dynamically linked bind.