Thanks for the reply.  I've got the same problem on all machines we have vnc
on.  This ranges from AIX 5.2 ML03 upto and including AIX 5.3 ML04.  I think
compiling is a waste of time but I've ran out of ideas to try...


Cheers,
John



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 31 July 2006 16:14
To: Baker, John
Cc: vnc-list@realvnc.com
Subject: Re: Help with VNC on AIX






John,

For the first problem, did maybe the ~/.vnc/xstartup files change?  That is
where the CDE would start vs plain X.

For the second, here is the steps I did to compile on AIX 5.2.  Maybe AIX
5.3 would be the same???

1) http://www.realvnc.com/cgi-bin/download.cgi get sourcode for unix

2) I installed gcc 3.3.2    I just couldn't get it to work with xlc.

3) I installed GNU make 3.80

4) I used xfree86 4.2.1

5) I replaced the config/cf/ibm files with the same ones from Xorg.   see
below

6) Goto the unix directory and do "configure" and then "make"

7) It would go so far and quit on the vncconfig, vncviewer etc.  But cd into
   each dir it complains about and cut and paste the line from the screen
where
   it tried to build the executable and add the missing libraries.  You add
   "../../Xregion/libXregion.a, ../../rdr/librdr.a, ../../zlib/libz.a and
   ../../rfb/librfb.a at the end of the lines.  (Hope that is enough
   "../"s....:)

8) apply the xc.patch as directed.

9) apply the hpux_gcc.patch in the same fashion as the xc.patch (it will
update
   the hp stuff as well, but you don't care).

10) goto the programs/Xserver/vnc and create links for each of the ".cc"
source
     files to end in ".C" , like this:

ln -s vncHooks.cc vncHooks.C

Same in programs/Xserver/vnc/Xvnc

11) edit vnc.def to suit:  mine is

============================================================================
====
#define BuildServersOnly YES
#define BuildFonts NO
#define BuildClients NO
#define BuildDocs NO
#define BuildPexExt NO
#define BuildNls NO
#define BuildXIE NO
#define BuildGlxExt NO
#define XnestServer NO
#define XprtServer NO

#define BuildXKB NO
#define HasCplusplus YES
#define CplusplusOptions
#define ProjectRoot /usr
#define DefaultFontPath
/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/iso_8859.1/100dpi/,/usr/lib/X11/
fonts/iso_8859.1/75dpi/

#define CcCmd <path to gcc>
#define OptimizedCDebugFlags
#define DefaultCCOptions
#define SharedLibraryCCOptions -shared
#define PositionIndependentCFlags -fPIC -DCDE
#define ExtraLoadFlags
#define LdPostLib
#define BuildXInputExt        YES

#define BuildGlxExt           YES
#define BuildGLXLibrary YES
#define BuildPhigs            YES
#define BuildCup        YES
#define     CppCmd      <path to cpp>
#define CplusplusCmd <path to g++>

#ifdef SunArchitecture
#define ProjectRoot /usr/openwin
#define HasGcc2 YES
#define BuildXKB NO
#endif

#define HasFreetype2 NO
#define BuildVNCExt YES
#define VNCExtDefines -DVNCEXT
#define X_BYTE_ORDER X_BIG_ENDIAN

#define SiteExtensionDefines VNCExtDefines
#define SiteExtensionDirs vnc

#define VncUnixDir $(TOP)/..
#define VncCommonDir VncUnixDir/../common
#define VncExtLibs VncCommonDir/rfb/librfb.a \
                   VncCommonDir/Xregion/libXregion.a \
                   VncCommonDir/network/libnetwork.a \
                   VncCommonDir/rdr/librdr.a

#define SiteExtensionLibs vnc/LibraryTargetName(vnc) VncExtLibs

#define     ServerTarget(server,subdirs,objects,libs,syslibs)           @@\
CCLINK = $(CXXENVSETUP) $(CXX) @@\
ServerTargetWithFlags(server,subdirs,objects,libs,syslibs,$(_NOOP_))
======================================================================

12) setenv CC "gcc path"
     setenv CXX "g++ path"
     setenv CPP "gcc's cpp path"

13) go back to the xc directory do the "make World"

14)  not all stuff gets made, but I did end up with a working Xvnc.

Hope this helps...




 

             "Baker, John" <[EMAIL PROTECTED]>

             Sent by: [EMAIL PROTECTED]

 
To 
 
"'vnc-list@realvnc.com'" <vnc-list@realvnc.com>                        
             07/31/2006 06:05 AM
cc 
 

 
Subject 
                                                               Help with VNC
on AIX                                                   
 

 

 

 

 

 





Hi,

I'm having 2 problems with vnc running on AIX.  The first problem is using
the pre-packed rpm image from IBM's linux toolkit website.  After running
fine on numerous machines for months displaying the CDE, all of a sudden
it's stopped displaying CDE and displays just the basic X-Widows display.
This problem has occured on multiple machines running various patch & OS
levels.  The only machine NOT to be affected is the only machine to have its
own graphics cards - all of the other machines are LPARs (Logical
Partitions) and hence do not have a graphics card.  Has anyone seen anything
like this before?

My second problem stems from the first.  I'm trying to compile the source
code for the latest version to see if it fixes my problems but I'm running
into compile errors.  I'm compiling on AIX 5.3 ML04, using GCC/GCC C++
4.0.0.1 AND gnumake 3.80.1.

I've commented out the following line "#include <X11/extensions/XShm.h>" as
it through up another error, and this was suggested through another users
post.  My error is as below, can anyone please help!!:

TXImage.h:82: error: ISO C++ forbids declaration of 'XShmSegmentInfo' with
no type
TXImage.h:82: error: expected ';' before '*' token
TXImage.h: In member function 'bool TXImage::usingShm()':
TXImage.h:62: error: expected primary-expression before ';' token
TXImage.cxx: In constructor 'TXImage::TXImage(Display*, int, int, Visual*,
int)':
TXImage.cxx:42: error: type 'struct shminfo' is not a direct base of
'TXImage'
TXImage.cxx: In member function 'void TXImage::put(Window, _XGC*, const
rfb::Rect&)':
TXImage.cxx:144: error: 'XShmPutImage' was not declared in this scope
TXImage.cxx: In member function 'void TXImage::createXImage()':
TXImage.cxx:193: error: 'XShmQueryExtension' was not declared in this scope
TXImage.cxx:194: error: expected unqualified-id before '=' token
TXImage.cxx:197: error: expected primary-expression before ',' token
TXImage.cxx:197: error: 'XShmCreateImage' was not declared in this scope
TXImage.cxx:200: error: expected unqualified-id before '->' token
TXImage.cxx:204: error: expected primary-expression before '->' token
TXImage.cxx:205: error: expected unqualified-id before '->' token
TXImage.cxx:207: error: expected primary-expression before '->' token
TXImage.cxx:209: error: expected unqualified-id before '->' token
TXImage.cxx:212: error: expected primary-expression before ')' token
TXImage.cxx:212: error: 'XShmAttach' was not declared in this scope
TXImage.cxx:222: error: expected primary-expression before '->' token
TXImage.cxx:228: error: expected primary-expression before '->' token
TXImage.cxx:240: error: expected primary-expression before ';' token
TXImage.cxx:241: error: expected unqualified-id before '=' token
TXImage.cxx: In member function 'void TXImage::destroyXImage()':
TXImage.cxx:256: error: expected primary-expression before ')' token
TXImage.cxx:258: error: expected primary-expression before '->' token
TXImage.cxx:259: error: expected primary-expression before '->' token
TXImage.cxx:260: error: expected primary-expression before ';' token
TXImage.cxx:261: error: expected unqualified-id before '=' token


Thanks
John



****************************************************************************
The information contained in this email is intended only for the use of the
intended recipient at the email address to which it has
been addressed. If the reader of this message is not an intended recipient,
you are hereby notified that you have received this
document in error and that any review, dissemination or copying of the
message or associated attachments is strictly prohibited.

If you have received this email in error, please contact the sender by
return email or call 01793 877777 and ask for the sender and
then delete it immediately from your system.Please note that neither RWE
npower nor the sender accepts any responsibility for viruses
and it is your responsibility to scan attachments (if any).
****************************************************************************
*
_______________________________________________
VNC-List mailing list
VNC-List@realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list



****************************************************************************
The information contained in this email is intended only for the use of the 
intended recipient at the email address to which it has been addressed. If the 
reader of this message is not an intended recipient, you are hereby notified 
that you have received this document in error and that any review, 
dissemination or copying of the message or associated attachments is strictly 
prohibited.

If you have received this email in error, please contact the sender by return 
email or call 01793 877777 and ask for the sender and then delete it 
immediately from your system.Please note that neither RWE npower nor the sender 
accepts any responsibility for viruses and it is your responsibility to scan 
attachments (if any).
*****************************************************************************
_______________________________________________
VNC-List mailing list
VNC-List@realvnc.com
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to