Re: Xvnc working?

2004-11-07 Thread Harald Dunkel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Andreas Jochens wrote:
| On 04-Nov-07 10:27, Harald Dunkel wrote:
|
|>If I try to rebuild Xvnc4 via 'apt-get source --compile vnc4',
|>then I still get the problem with the max cpp macro. So how
|>was the "official" vnc4server deb built? Is this a gcc-3.3.x
|>binary?
|
|
| I compiled vnc4 with the attached patch and uploaded the package
| to the gcc-3.4 archive. However, the upload of the patched sources
| failed for some reason. This is why 'apt-get source' still gets
| the unpatched package.
|
Maybe this is the reason:
dpkg-source: error: syntax error in source control file 
./vnc4_4.0-5.0.0.1.amd64.dsc at line 15: expected blank line before PGP 
signature
Regards
Harri
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
iD8DBQFBjhzxUTlbRTxpHjcRAjA3AJ0c5lpdnqzjkCuEkS6WkEoykY7hPwCfcG7k
lca8IwFM8CP7vicGD1PbASc=
=gUoN
-END PGP SIGNATURE-



Re: Xvnc working?

2004-11-07 Thread Andreas Jochens
On 04-Nov-07 10:27, Harald Dunkel wrote:
> They are in the gcc-3.4 pool now (thanx very much), but
> Xvnc4 dies, too:
> 
> % Xvnc4 :1
> 
> Xvnc version 4.0 - built Nov  7 2004 07:53:20
> Underlying X server release 4020, The XFree86 Project, Inc
> 
> 
> Sun Nov  7 10:07:09 2004
> ~ vncext:  VNC extension running!
> ~ vncext:  Listening for VNC connections on port 5901
> ~ vncext:  created VNC server for screen 0
> Segmentation fault (core dumped)
> :-(

I get the same error when I try to start the Xvnc4 server. 
The xvnc4viewer client program seems to work fine.

> If I try to rebuild Xvnc4 via 'apt-get source --compile vnc4',
> then I still get the problem with the max cpp macro. So how

The patched vnc4 sources should be available in the gcc-3.4 archive now.

Regards
Andreas Jochens





Re: Xvnc working?

2004-11-07 Thread Andreas Jochens
On 04-Nov-07 10:27, Harald Dunkel wrote:
> If I try to rebuild Xvnc4 via 'apt-get source --compile vnc4',
> then I still get the problem with the max cpp macro. So how
> was the "official" vnc4server deb built? Is this a gcc-3.3.x
> binary?

I compiled vnc4 with the attached patch and uploaded the package
to the gcc-3.4 archive. However, the upload of the patched sources 
failed for some reason. This is why 'apt-get source' still gets
the unpatched package.

Regards
Andreas Jochens

diff -urN ../tmp-orig/vnc4-4.0/debian/buildX.sh ./debian/buildX.sh
--- ../tmp-orig/vnc4-4.0/debian/buildX.sh   2004-11-07 07:49:21.089760528 
+
+++ ./debian/buildX.sh  2004-11-07 07:31:30.221557240 +
@@ -17,7 +17,8 @@
 echo "*** Unpacking X source"
 tar xfz ../xsrc/X420src-1.tgz
 echo "*** Patching X source"
 patch -Np0 < ../xc.patch
+patch -Np0 < ../xc.amd64.patch
 patch -p1 < ../xsrc/xccompilefix.patch
 patch -p1 < ../xsrc/vncsofpicfix.patch
 else
diff -urN ../tmp-orig/vnc4-4.0/rfb/Region.h ./rfb/Region.h
--- ../tmp-orig/vnc4-4.0/rfb/Region.h   2004-06-11 15:13:52.0 +
+++ ./rfb/Region.h  2004-11-06 20:52:51.0 +
@@ -21,8 +21,9 @@
 #ifndef __RFB_REGION_INCLUDED__
 #define __RFB_REGION_INCLUDED__
 
 #include 
+#undef max
 #include 
 
 struct _XRegion;
 
diff -urN ../tmp-orig/vnc4-4.0/xc.amd64.patch ./xc.amd64.patch
--- ../tmp-orig/vnc4-4.0/xc.amd64.patch 1970-01-01 00:00:00.0 +
+++ ./xc.amd64.patch2004-11-07 07:40:15.042772288 +
@@ -0,0 +1,129 @@
+diff -urN tmp/config/cf/Imake.cf xc/config/cf/Imake.cf
+--- tmp/config/cf/Imake.cf 2001-11-16 16:47:50.0 +
 xc/config/cf/Imake.cf  2004-11-06 22:15:52.408675152 +
+@@ -750,6 +750,16 @@
+ #  endif
+ #  undef __sparc__
+ # endif
++# ifdef x86_64 
++#  define x86_64Architecture
++#  undef x86_64 
++# endif
++# ifdef __x86_64__
++#  ifndef x86_64Architecture
++#   define x86_64Architecture
++#  endif
++#  undef __x86_64__
++# endif
+ # ifdef ia64 
+ #  define ia64Architecture
+ #  undef ia64 
+diff -urN tmp/config/cf/linux.cf xc/config/cf/linux.cf
+--- tmp/config/cf/linux.cf 2002-01-15 21:22:31.0 +
 xc/config/cf/linux.cf  2004-11-06 22:17:28.212110816 +
+@@ -275,7 +275,7 @@
+ /* The DRM module requires kernel services that appeared in late 2.1.x
+kernels and are known to be present in 2.2.x kernels. */
+ #ifndef BuildXF86DRI
+-#  if defined(i386Architecture) || defined(ia64Architecture)
++#  if defined(i386Architecture) ||  defined(x86_64Architecture) || 
defined(ia64Architecture)
+ #if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 2)
+ #  define BuildXF86DRIYES
+ #else
+@@ -312,7 +312,7 @@
+kernel revisions.  So, we'll only build the module for kernels that are
+known to be supported by the module. */
+ #ifndef BuildXF86DRM
+-#  if defined(i386Architecture) || defined(ia64Architecture) || 
defined(SparcArchitecture) || defined(AlphaArchitecture)
++#  if defined(i386Architecture) || defined(x86_64Architecture) || 
defined(ia64Architecture) || defined(SparcArchitecture) || 
defined(AlphaArchitecture)
+ #if OSMajorVersion == 2
+/* Only tested for Linux 2.2.0 through 2.2.12 */
+ #  if OSMinorVersion == 2 && OSTeenyVersion <= 12
+@@ -336,7 +336,7 @@
+ #endif
+ 
+ #ifndef HasAgpGart
+-#  if defined(i386Architecture) || defined(ia64Architecture)
++#  if defined(i386Architecture) || defined(x86_64Architecture) || 
defined(ia64Architecture)
+  /* The AGPGART header file is included in os-support/linux, which
+ allows all drivers that depend on AGP to build properly. */
+ #define HasAgpGartYES
+@@ -539,6 +539,13 @@
+ #   define LdCmd  ld
+ #   define AsmDefines -DUSE_GAS -U__ELF__
+ #  endif /* HPArchitecture */
++#  ifdef x86_64Architecture
++#   define CcCmd  gcc
++#   define CplusplusCmd   g++
++#   define AsCmd  as
++#   define LdCmd  ld
++#   define AsmDefines -DUSE_GAS -U__ELF__
++#  endif /* x86_64Architecture */
+ #  ifdef ia64Architecture
+ #   define CcCmd  gcc
+ #   define CplusplusCmd   g++
+@@ -570,6 +577,13 @@
+ #   define AsmDefines -D__ELF__
+ #   define CplusplusCmd   c++ -b alpha-linux
+ #  endif /* AlphaArchitecture */
++#  ifdef x86_64Architecture
++#   define CcCmd  gcc
++#   define CplusplusCmd   g++
++#   define AsCmd  as
++#   define LdCmd  ld
++#   define AsmDefines -D__ELF__
++#  endif /* x86_64Architecture */
+ #  ifdef ia64Architecture
+ #   define CcCmd  gcc
+ #   define CplusplusCmd   g++
+@@ -693,6 +707,15 @@
+ # define ServerExtraDefines   -DGCCUSESGAS XFree86ServerDefines
+ #endif /* Arm32Achitecture */
+ 
++#ifdef x86_64Architecture
++# ifndef OptimizedCDebugFlags
++#  define OptimizedCDebugFlags-O2
++# endif
++# define LinuxMachineDef

Re: Xvnc working?

2004-11-07 Thread Harald Dunkel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kurt Roeckx wrote:
| On Sat, Nov 06, 2004 at 07:27:27PM +0100, Harald Dunkel wrote:
|
|>Does anybody know where to find some vncserver 4.0 debs?
|
|
| vnc4server and xvnc4viewer?
|
They are in the gcc-3.4 pool now (thanx very much), but
Xvnc4 dies, too:
% Xvnc4 :1
Xvnc version 4.0 - built Nov  7 2004 07:53:20
Underlying X server release 4020, The XFree86 Project, Inc
Sun Nov  7 10:07:09 2004
~ vncext:  VNC extension running!
~ vncext:  Listening for VNC connections on port 5901
~ vncext:  created VNC server for screen 0
Segmentation fault (core dumped)
:-(
If I try to rebuild Xvnc4 via 'apt-get source --compile vnc4',
then I still get the problem with the max cpp macro. So how
was the "official" vnc4server deb built? Is this a gcc-3.3.x
binary?
Harri
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
iD4DBQFBjep8UTlbRTxpHjcRAh8sAJ9w7DU9G6zqC+FXGJhs/jh7ATRbOQCWLu/n
Rc2bSaOu/6OV9ysIYC3tOQ==
=DA4i
-END PGP SIGNATURE-



Re: Xvnc working?

2004-11-06 Thread Manuel Capinha
I'm having the same problem with Xvnc, crashing on startup, some error
on strftime if I'm not mistaken.. (been a long time)

If fedora has rpm's that work on debian, can't we just grab their
patches and make it work for us ?



On Sat, 06 Nov 2004 21:38:26 +0100, Harald Dunkel
<[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Harald Dunkel wrote:
> | Kurt Roeckx wrote:
> | | On Sat, Nov 06, 2004 at 07:27:27PM +0100, Harald Dunkel wrote:
> | |
> | |>Does anybody know where to find some vncserver 4.0 debs?
> | |
> | |
> | | vnc4server and xvnc4viewer?
> | |
> | Does not build on gcc-3.4. Some problem with STL.
> |
> 
> It is not STL, but bad vnc code. If somebody is interested,
> here is a workaround:
> 
> - --- vnc4-4.0.orig/rfb/Region.h  2004-06-11 17:13:52.0 +0200
> +++ vnc4-4.0/rfb/Region.h   2004-11-06 21:29:14.425953864 +0100
> @@ -22,6 +22,7 @@
> ~ #define __RFB_REGION_INCLUDED__
> 
> ~ #include 
> +#undef max
> ~ #include 
> 
> ~ struct _XRegion;
> 
> It still does not build due to missing support for amd64
> in the Imake configuration. See the vnc-3.3.7 package for
> a patch.
> 
> 
> Regards
> 
> Harri
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.5 (GNU/Linux)
> Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
> 
> iD8DBQFBjTZCUTlbRTxpHjcRAiW7AJ9uUL0RVfjRBJ66GNc1+mwqutpguACdEG+E
> qgaxzpPrm8gQOD1Gb1+RWZM=
> =B0Qz
> 
> 
> -END PGP SIGNATURE-
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
>




Re: Xvnc working?

2004-11-06 Thread Harald Dunkel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Harald Dunkel wrote:
| Kurt Roeckx wrote:
| | On Sat, Nov 06, 2004 at 07:27:27PM +0100, Harald Dunkel wrote:
| |
| |>Does anybody know where to find some vncserver 4.0 debs?
| |
| |
| | vnc4server and xvnc4viewer?
| |
| Does not build on gcc-3.4. Some problem with STL.
|
It is not STL, but bad vnc code. If somebody is interested,
here is a workaround:
- --- vnc4-4.0.orig/rfb/Region.h  2004-06-11 17:13:52.0 +0200
+++ vnc4-4.0/rfb/Region.h   2004-11-06 21:29:14.425953864 +0100
@@ -22,6 +22,7 @@
~ #define __RFB_REGION_INCLUDED__
~ #include 
+#undef max
~ #include 
~ struct _XRegion;

It still does not build due to missing support for amd64
in the Imake configuration. See the vnc-3.3.7 package for
a patch.
Regards
Harri
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
iD8DBQFBjTZCUTlbRTxpHjcRAiW7AJ9uUL0RVfjRBJ66GNc1+mwqutpguACdEG+E
qgaxzpPrm8gQOD1Gb1+RWZM=
=B0Qz
-END PGP SIGNATURE-



Re: Xvnc working?

2004-11-06 Thread Harald Dunkel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kurt Roeckx wrote:
| On Sat, Nov 06, 2004 at 07:27:27PM +0100, Harald Dunkel wrote:
|
|>Does anybody know where to find some vncserver 4.0 debs?
|
|
| vnc4server and xvnc4viewer?
|
Does not build on gcc-3.4. Some problem with STL.
Regards
Harri
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
iD8DBQFBjSgVUTlbRTxpHjcRAs/KAJwKd6/luOuqlT92uLT/1d8745GDdACfbVBr
F/XkwFfO/H4yXhkDac3UR1g=
=bhn1
-END PGP SIGNATURE-



Re: Xvnc working?

2004-11-06 Thread Kurt Roeckx
On Sat, Nov 06, 2004 at 07:27:27PM +0100, Harald Dunkel wrote:
> 
> Does anybody know where to find some vncserver 4.0 debs?

vnc4server and xvnc4viewer?


Kurt




Re: Xvnc working?

2004-11-06 Thread Harald Dunkel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Don Hayward wrote:
| On Sat, 6 Nov 2004, Harald Dunkel wrote:
|
|> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Hi folks, > Did
|> anybody succeed in running Xvnc on a Debian amd64 box?  Or do I have
|> to use the 32bit version?
|
|
| I'm running the packages (xvncserver,xvncviewer) from the gcc-3.4
| archive without problems.
|
I am on gcc-3.4, too. But on my PC 'Xvnc :1' dies with SEGV.
Both tightvnc and vncserver.
It happens during initalization. strace says (vncerver 3.3.7):
:
:
bind(1, {sa_family=AF_FILE, path="/tmp/.X11-unix/X1"}, 19) = 0
listen(1, 128)  = 0
umask(022)  = 0
ioctl(0, SIOCGIFCONF, {80, {{"lo", {AF_INET, inet_addr("127.0.0.1")}}, {"eth0", {AF_INET, 
inet_addr("192.168.1.10")) = 0
ioctl(0, SIOCGIFFLAGS, 0x7fbfffeed0)= 0
ioctl(0, SIOCGIFBRDADDR, 0x7fbfffeed0)  = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x431d20, [HUP], 0x400}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x431d30, [INT], 0x400}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x431d30, [TERM], 0x400}, {SIG_DFL}, 8) = 0
open("/etc/X1.hosts", O_RDONLY) = -1 ENOENT (No such file or directory)
rt_sigaction(SIGUSR1, {SIG_IGN}, {SIG_DFL}, 8) = 0
getppid()   = 5990
open("/etc/localtime", O_RDONLY)= 3
fstat(3, {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2a9556c000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10"..., 131072) = 
837
close(3)= 0
munmap(0x2a9556c000, 131072)= 0
- --- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
Seems that the last step is to read some timezone information,
then it dies.
Does anybody know where to find some vncserver 4.0 debs?
Regards
Harri
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
iD8DBQFBjRePUTlbRTxpHjcRAmdmAKCI7VcT34LVOHWPCkPwf1PfMW9o+ACffCsk
H+18RWMjpxHEJp839qNFlmo=
=mPoh
-END PGP SIGNATURE-



Re: Xvnc working?

2004-11-06 Thread Don Hayward
On Sat, 6 Nov 2004, Harald Dunkel wrote:
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Hi folks, > Did
anybody succeed in running Xvnc on a Debian amd64 box?  Or do I have
to use the 32bit version?
I'm running the packages (xvncserver,xvncviewer) from the gcc-3.4
archive without problems.
Regards,
Don

Don Hayward @ pomobuli.net



Re: Xvnc working?

2004-11-06 Thread Tupshin Harper
Harald Dunkel wrote:
Hi folks,
Did anybody succeed in running Xvnc on a Debian amd64 box?
Or do I have to use the 32bit version?
Regards
Harri
After having zero luck getting it working ( a few weeks ago), and geting 
no reports from anybody that said they did have it working, I 
succesfully used alien to create a deb from fedora's (x86_64) 
vnc-server, and it works fine.
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/2/x86_64/vnc-server-4.0-5.x86_64.rpm

-Tupshin



Xvnc working?

2004-11-06 Thread Harald Dunkel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi folks,
Did anybody succeed in running Xvnc on a Debian amd64 box?
Or do I have to use the 32bit version?
Regards
Harri
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
iD8DBQFBjQUbUTlbRTxpHjcRAu16AJ4u74KOo2rfyJYyS28JnWpwifO9lwCfQPCr
9xjRVsbqBVn4X2sMTEVwMpY=
=o3Nu
-END PGP SIGNATURE-