Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#274045: tightvnc: FTBFS with gcc-3.4: structure has no member named `fds_bits'

4 views
Skip to first unread message

Andreas Jochens

unread,
Sep 29, 2004, 11:10:14 AM9/29/04
to
Package: tightvnc
Severity: normal
Tags: patch

When building 'tightvnc' with gcc-3.4 I get the following error:

WaitFor.c:410: error: structure has no member named `fds_bits'
WaitFor.c:410: error: structure has no member named `fds_bits'
WaitFor.c:410: error: structure has no member named `fds_bits'
WaitFor.c:410: error: structure has no member named `fds_bits'
WaitFor.c:410: error: structure has no member named `fds_bits'
WaitFor.c:410: error: structure has no member named `fds_bits'
WaitFor.c:417: error: structure has no member named `fds_bits'
WaitFor.c:421: error: structure has no member named `fds_bits'
WaitFor.c:466: error: structure has no member named `fds_bits'
make[5]: *** [WaitFor.o] Error 1
make[5]: Leaving directory `/tightvnc-1.2.9/Xvnc/programs/Xserver/os'

With the attached patch 'tightvnc' can be compiled using gcc-3.4.

The second part of the patch removes wrong declarations of 'malloc'
from two source files. The same has already been applied to the 'vnc'
package (BTW thanks for applying and uploading that one).

Regards
Andreas Jochens

diff -urN ../tmp-orig/tightvnc-1.2.9/Xvnc/config/cf/linux.cf ./Xvnc/config/cf/linux.cf
--- ../tmp-orig/tightvnc-1.2.9/Xvnc/config/cf/linux.cf 2004-09-29 14:39:05.041190560 +0200
+++ ./Xvnc/config/cf/linux.cf 2004-09-29 14:37:18.045456384 +0200
@@ -106,7 +106,7 @@
#define HasLibCrypt YES
#endif
#else
-#define LinuxSourceDefines -D_POSIX_SOURCE \
+#define LinuxSourceDefines -D_POSIX_SOURCE -D_XOPEN_SOURCE \
-D_BSD_SOURCE -D_SVID_SOURCE -DX_LOCALE
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#ifndef HasLibCrypt
diff -urN ../tmp-orig/tightvnc-1.2.9/Xvnc/lib/Xau/AuRead.c ./Xvnc/lib/Xau/AuRead.c
--- ../tmp-orig/tightvnc-1.2.9/Xvnc/lib/Xau/AuRead.c 2000-06-11 14:00:52.000000000 +0200
+++ ./Xvnc/lib/Xau/AuRead.c 2004-09-29 14:22:26.892932160 +0200
@@ -49,7 +49,7 @@
FILE *file;
{
unsigned short len;
- char *data, *malloc ();
+ char *data;

if (read_short (&len, file) == 0)
return 0;
@@ -76,7 +76,6 @@
{
Xauth local;
Xauth *ret;
- char *malloc ();

if (read_short (&local.family, auth_file) == 0)
return 0;
diff -urN ../tmp-orig/tightvnc-1.2.9/Xvnc/lib/Xau/AuWrite.c ./Xvnc/lib/Xau/AuWrite.c
--- ../tmp-orig/tightvnc-1.2.9/Xvnc/lib/Xau/AuWrite.c 2000-06-11 14:00:52.000000000 +0200
+++ ./Xvnc/lib/Xau/AuWrite.c 2004-09-29 14:22:26.892932160 +0200
@@ -61,8 +61,6 @@
FILE *auth_file;
Xauth *auth;
{
- char *malloc ();
-
if (write_short (auth->family, auth_file) == 0)
return 0;
if (write_counted_string (auth->address_length, auth->address, auth_file) == 0)


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Ola Lundqvist

unread,
Oct 2, 2004, 2:40:10 PM10/2/04
to
Hello

On Wed, Sep 29, 2004 at 02:51:29PM +0200, Andreas Jochens wrote:
> Package: tightvnc
> Severity: normal
> Tags: patch
>
> When building 'tightvnc' with gcc-3.4 I get the following error:
>
> WaitFor.c:410: error: structure has no member named `fds_bits'
> WaitFor.c:410: error: structure has no member named `fds_bits'
> WaitFor.c:410: error: structure has no member named `fds_bits'
> WaitFor.c:410: error: structure has no member named `fds_bits'
> WaitFor.c:410: error: structure has no member named `fds_bits'
> WaitFor.c:410: error: structure has no member named `fds_bits'
> WaitFor.c:417: error: structure has no member named `fds_bits'
> WaitFor.c:421: error: structure has no member named `fds_bits'
> WaitFor.c:466: error: structure has no member named `fds_bits'
> make[5]: *** [WaitFor.o] Error 1
> make[5]: Leaving directory `/tightvnc-1.2.9/Xvnc/programs/Xserver/os'
>
> With the attached patch 'tightvnc' can be compiled using gcc-3.4.
>
> The second part of the patch removes wrong declarations of 'malloc'
> from two source files. The same has already been applied to the 'vnc'
> package (BTW thanks for applying and uploading that one).

Thanks a lot. Patch is now applied and package is building. Hope I can
upload it really soon.

Regards,

// Ola

--
--------------------- Ola Lundqvist ---------------------------
/ op...@debian.org Annebergsslingan 37 \
| op...@lysator.liu.se 654 65 KARLSTAD |
| +46 (0)54-10 14 30 +46 (0)70-332 1551 |
| http://www.opal.dhs.org UIN/icq: 4912500 |
\ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
---------------------------------------------------------------

0 new messages