Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

XOpenDisplay call to DecWIndows fails

 
Peter Hunter
Occasional Visitor

XOpenDisplay call to DecWIndows fails

I've built Ghostscript for OpenVMS V6.2-1H3, running it produces error "Cannot open X display `(null)'.". I've traced it as far as a call to XOpenDisplay which fails. As I know next to nothing about DecWindows, any advice on tracking this further would be useful. I believe that DecWIndows is running as there is a "DECW$SERVER_0" process running
7 REPLIES
Mobeen_1
Esteemed Contributor

Re: XOpenDisplay call to DecWIndows fails

Peter,
I have had exact problem some time back, please see the url below
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=609077

I was as mentioned in the above thread, able to overcome this by using

gs "-sOutputFile=CPU.png" "-sDEVICE=png256" "-dDEVICEWIDTHPOINTS=525" "-dDEVICEHEIGHTPOINTS=475" "-dNOPAUSE","-q" mov.ps cpu.ps

type move.ps
-40 -200 translate

regards
Mobeen
Peter Hunter
Occasional Visitor

Re: XOpenDisplay call to DecWIndows fails

Mobeen, thanks for response, the
"$set display/create" has got me past that hurdle, it seems I now have a privilege problem

Xlib: connection to "_WSA6:" refused by server
Xlib: Client is not authorized to connect to Server
%DEBUG-F-UNAOPNDIS, Unable to open display _WSA6:

I guess I need to add some parameters to the $set display/create

Peter
Mobeen_1
Esteemed Contributor

Re: XOpenDisplay call to DecWIndows fails

Peter,
Could you try this

$SET DISPLAY/CREATE/NODE=ip_address/TRANS=TCPIP

If this doesn't work, please post the ghostscript command that you are using here. I would defintely be able to help you.

regards
Mobeen
Peter Hunter
Occasional Visitor

Re: XOpenDisplay call to DecWIndows fails

Ghostscript command line is
gs -sDevice=epswrite -dNOPAUSE -dBATCH -dSAFER -dDisplayHandle=0 -sOutputFile=age_gs.ps sr:[prd.gs.xpdf-3_00]age.pdf

WIth ip address and protocol set, the message is same as original (Cannot open X Display)

Without ip address and protocol set, message is

Xlib: connection to "_WSA12:" refused by server
Xlib: Client is not authorized to connect to Server
Mobeen_1
Esteemed Contributor

Re: XOpenDisplay call to DecWIndows fails

Peter,
Try to remove -dDISPLAY qualifier and run it. If you need X-display, then please look at the settings on your DECterm/Emulator or what every you are using.

In the link i furnished earlier on, there are a few suggestions. Please try them

regards
Mobeen
Edwin Gersbach_2
Valued Contributor

Re: XOpenDisplay call to DecWIndows fails

Re:
Xlib: connection to "_WSA6:" refused by server
Xlib: Client is not authorized to connect to Server

On the X-Display you are using, you have to allow remote connections. If this is a VMS workstation, open the style manager (the icon with the color palette, the mouse and TTT), click the 'security' icon and then 'Users' button. For a test you may add a entry with asterisks in all 3 fields which opens the display for each and everyone.

Edwin
Brian Reiter
Valued Contributor

Re: XOpenDisplay call to DecWIndows fails

Could be a similar problem to

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=496432

Look at the answer from Martin Kirby. This resolved issues I had.

regards

Brian