[parisc-linux] tsocks Error

John David Anglin dave@hiauly1.hia.nrc.ca
Mon, 25 Feb 2002 12:50:54 -0500 (EST)

> Has anyone used tsocks successfully?  I just installed the latest with
> apt-get (tsocks version 1.7-4) and receive the following error on use:
> relocation error: /usr/lib/libtsocks.so: undefined symbol: $$dyncall

$$dyncall is in libgcc.a.  The link command for the library should
include -lgcc at the end of the library list.

As a side note, there was extensive discussion about the inclusion of the
PA millicode routines in libgcc after problems arose on one port linking
both shared and static versions of libgcc when creating shared libraries.
The fallout from changing how libgcc is linked is still being worked out.

A decision was reached that only the shared libgcc should be used when
creating shared libraries (it's actually more complicated than that
because the new binutils allows undefined symbols) and the PA milli
routines should be moved to another location because they must be
linked statically.  The options include putting them into a separate
libmilli.a (the linker has support for automatically linking in
the library) or in the static part of libc.

If somebody wants to put these functions in libc, let me know.  Otherwise
I will create a libmilli.a in gcc.

J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)