1834152 Members
2383 Online
110064 Solutions
New Discussion

ssh X11 Tunneling

 
SOLVED
Go to solution
Rui_3
Occasional Advisor

ssh X11 Tunneling

Hi all,

I'm having a problem compiling ssh to enable X11 tunneling on a Hp-ux 11.00 machine.

The problem is that during the configuration process the configuration program doesn't seem to find libXt, even if I include it in the libsdir path.
Apparently I also need intrinsic.h, does anyone know where I can find, and how I can solve this problem.

Thanks for the help.
Rui Santos
3 REPLIES 3
Rick Beldin
HPE Pro
Solution

Re: ssh X11 Tunneling

It sounds like you need the X11Motif devkit. The devkit provides the developer with the .h files needed for developing X-based applications and creates the .sl links to the appropriate shared libraries. This comes as part of any of a number of compiler bundles. The run-time binaries are always delivered with the CORE OS, while the header files and .sl symlinks only come with the devkit.

The location for the header file should be /usr/include/X11R6/X11 and the .sl should live in /usr/lib. libXt.3 will reside in /usr/lib/X11R6.

The product name in SD is:

X11MotifDevKit B.11.00.01 HP-UX Developer's Toolkit - X11, Motif, a nd Imake

The following bundle contains this product:

swlist -l product B3392BA
# Initializing...
# Contacting target "anglfish"...
#
# Target: anglfish:/
#

# B3392BA B.11.00.01 HP-UX Developer's Toolkit for 11.
0
B3392BA.X11MotifDevKit B.11.00.01 HP-UX Developer's Toolkit - X11,
Motif, and Imake
B3392BA.AudioDevKit B.11.00.01 HP-UX Audio Developer Kit
B3392BA.ImagingDevKit B.11.00.01 HP-UX Developer's Toolkit - Imagi
ng
B3392BA.CDEDevKit B.11.00.01 CDE Developer Kit
Necessary questions: Why? What? How? When?
Blake Garretson
Advisor

Re: ssh X11 Tunneling

Intrinsic.h (note the capital I) is in /usr/include/X11/ and it is usually just a link to /usr/include/X11R6/X11/

The catch is that it isn't installed unless you installed a development package like the Ansi-C package. I have six J-5600's, only one of which has the ansi-c compiler installed. That one box is the only machine that has any of the graphic toolkit headers in the include/ directories.

You'll probably have to install them if you're using gcc. I'm sure they are on one of the CDs.
Jason Dinsdale
Frequent Advisor

Re: ssh X11 Tunneling

This *may* be a silly question, but do you definitely need this dev kit installed at compile-time to enable X11 forwarding?

I have just compiled SSH 2.4.0 server on an L-class running HPUX v11.0 (with no errors reported) with the following configure options:

./configure --prefix=/opt/ssh --enable-debug --enable-X11-forwarding

(Of course I then ran 'make' followed by 'make install').

This is all great; however, once I crank up sshd and try to forward X11 clients like 'xclock' they fail with:

Error: Can't open display:
Error: Couldn't find per display information

I have X11 forwarding working no problem on a linux server, but not on this HP server.

Could these dev libraries be the problem or do you think it might be something else?

Thanks,

Jason
If a man talks in a forest and there is no woman to hear, is he still wrong?