Hi Thanks a lot for the input.
I have nothing to test on so I can hardly make a working patch but if you could create a patch for me, that would help a lot! Regards, // Ola On Tue, Dec 13, 2005 at 12:38:03AM +0100, Sebastien Koechlin wrote: > Package: vncserver > Version: 3.3.7-7 > Followup-For: Bug #276948 > > I spend some time with a friend to find the problem. > > In the default configuration, -Wall is not used for compilation. > When I add it, I have warnings about implicit declaration of time, > strftime and localtime > > Implicit declaration means the function return int (it is not as > localtime return a pointer struct tm *). > > BUT! On amd64, we have sizeof(int) = 4 and sizeof(void *) = 8. > > So we loose the upper 32 bits of the result, filled with uninitialized data > instead. > > I added '#include <time.h>' in Xvnc/programs/Xserver/hw/vnc/init.c, > killed the boss monster and finished the first stage of having a working Xvnc > : > > (gdb) run :2 > Starting program: /home/seb/build/vnc-3.3.7/Xvnc/programs/Xserver/Xvnc > :2 > 13/12/05 00:32:39 Xvnc version 3.3.7 - built Dec 13 2005 00:32:04 > 13/12/05 00:32:39 Copyright (C) 2002-2003 RealVNC Ltd. > 13/12/05 00:32:39 Copyright (C) 1994-2000 AT&T Laboratories Cambridge. > 13/12/05 00:32:39 All Rights Reserved. > 13/12/05 00:32:39 See http://www.realvnc.com for information on VNC > 13/12/05 00:32:39 Desktop name 'x11' (ramoth:2) > 13/12/05 00:32:39 Protocol version supported 3.3 > 13/12/05 00:32:39 Listening for VNC connections on TCP port 5902 > > Program received signal SIGSEGV, Segmentation fault. > 0x0000000000427afc in DeleteWindowFromAnySaveSet (pWin=0x60) at > dixutils.c:394 > 394 client = clients[i]; > (gdb) bt > #0 0x0000000000427afc in DeleteWindowFromAnySaveSet (pWin=0x60) at > dixutils.c:394 > #1 0x000000000041b98b in InitKbdFeedbackClassDeviceStruct > (dev=0x719680, bellProc=0x4b5eae <rfbSendBell>, > controlProc=0x427b2d <NoopDDA>) at devices.c:683 > #2 0x000000000041bf6e in InitKeyboardDeviceStruct (device=0x719680, > pKeySyms=0x7fbfffe630, pModifiers=0x7fbfffe530 "", > bellProc=0x4b5eae <rfbSendBell>, controlProc=0x427b2d <NoopDDA>) > at devices.c:867 > #3 0x00000000004a1cfc in rfbKeybdProc (pDevice=0x719680, > onoff=0) at init.c:606 > #4 0x000000000041a83c in InitAndStartDevices () at > devices.c:171 > #5 0x0000000000403f61 in main (argc=2, argv=0x7fbfffe7c8) at main.c:376 > (gdb) > > > There are probably tons of similar problems because > sizeof(int)!=sizeof(void*) : > > access.c:701: attention : implicit declaration of function > `XdmcpRegisterConnection' > access.c:730: attention : implicit declaration of function > `XdmcpRegisterBroadcastAddress' > connection.c:317: attention : implicit declaration of function `atoi' > utils.c:589: attention : implicit declaration of function `XdmcpUseMsg' > utils.c:730: attention : implicit declaration of function > `ParseGlyphCachingMode' > utils.c:911: attention : implicit declaration of function `XdmcpOptions' > utils.c:1417: attention : implicit declaration of function `waitpid' > dispatch.c:3509: attention : implicit declaration of function > `ProcessWorkQueueZombies' > auth.c:207: attention : implicit declaration of function > `XdmcpRegisterAuthorization' > xdmauth.c:76: attention : implicit declaration of function `XdmcpCompareKeys' > xdmauth.c:91: attention : implicit declaration of function `XdmcpAllocARRAY8' > xdmauth.c:159: attention : implicit declaration of function > `XdmcpRegisterAuthentication' > xdmauth.c:312: attention : implicit declaration of function `time' > xdmcp.c:289: attention : implicit declaration of function `atoi' > xdmcp.c:379: attention : implicit declaration of function `XdmcpAllocARRAY8' > xdmcp.c:390: attention : implicit declaration of function > `XdmcpReallocARRAYofARRAY8' > xdmcp.c:465: attention : implicit declaration of function > `XdmcpReallocARRAY16' > xdmcp.c:570: attention : implicit declaration of function > `XdmAuthenticationInit' > xdmcp.c:1376: attention : implicit declaration of function `exit' > ../../../lib/xtrans/Xtranssock.c:858: attention : implicit declaration of > function `atoi' > ../../../lib/xtrans/Xtrans.c:305: attention : implicit declaration of > function `_XSERVTransGetHostname' > dixfonts.c:1924: attention : implicit declaration of function > `PrinterFontRegisterFpeFunctions' > dixfonts.c:1925: attention : implicit declaration of function > `FontFileCheckRegisterFpeFunctions' > dixfonts.c:1926: attention : implicit declaration of function > `check_fs_register_fpe_functions' > dixfonts.c:1928: attention : implicit declaration of function > `FontFileRegisterFpeFunctions' > dixfonts.c:1929: attention : implicit declaration of function > `fs_register_fpe_functions' > shm.c:282: attention : implicit declaration of function `geteuid' > shm.c:283: attention : implicit declaration of function `getegid' > mbuf.c:1315: attention : implicit declaration of function `ClientSleepUntil' > xtest.c:262: attention : implicit declaration of function `ClientSleepUntil' > xtest1dd.c:411: attention : implicit declaration of function > `XTestGetPointerPos' > xtest1dd.c:1316: attention : implicit declaration of function > `XTestJumpPointer' > xtest1dd.c:1326: attention : implicit declaration of function > `XTestGenerateEvent' > xprint.c:1075: attention : implicit declaration of function > `XpUnsetFontResFunc' > xprint.c:2180: attention : implicit declaration of function `malloc' > xprint.c:2332: attention : implicit declaration of function `free' > miscrinit.c:208: attention : implicit declaration of function > `ShmRegisterFbFuncs' > cfbfillrct.c:128: attention : implicit declaration of function > `miPolyFillRect' > cfbfillrct.c:128: attention : implicit declaration of function > `miPolyFillRect' > cfbimage.c:190: attention : implicit declaration of function `miGetImage' > cfbimage.c:190: attention : implicit declaration of function `miGetImage' > cfbfillrct.c:128: attention : implicit declaration of function > `miPolyFillRect' > kbdptr.c:211: attention : implicit declaration of function `exit' > cfbimage.c:190: attention : implicit declaration of function `miGetImage' > rre.c:101: attention : implicit declaration of function `exit' > corre.c:132: attention : implicit declaration of function `exit' > > > -- System Information: > Debian Release: 3.1 > Architecture: amd64 (x86_64) > Kernel: Linux 2.6.8-11-em64t-p4-smp > Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) > > Versions of packages vncserver depends on: > ii dpkg 1.10.28 Package maintenance system for > Deb > ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries > an > ii libgcc1 1:3.4.3-13 GCC support library > ii libice6 4.3.0.dfsg.1-14sarge1 Inter-Client Exchange library > ii libsm6 4.3.0.dfsg.1-14sarge1 X Window System Session > Management > ii libstdc++5 1:3.3.5-13 The GNU Standard C++ Library v3 > ii libx11-6 4.3.0.dfsg.1-14sarge1 X Window System protocol client > li > ii libxext6 4.3.0.dfsg.1-14sarge1 X Window System miscellaneous > exte > ii perl 5.8.4-8 Larry Wall's Practical > Extraction > ii vnc-common 3.3.7-7 Virtual network computing server > s > ii xbase-clients 4.3.0.dfsg.1-14sarge1 miscellaneous X clients > ii xlibs 4.3.0.dfsg.1-14sarge1 X Keyboard Extension (XKB) > configu > ii xserver-common 4.3.0.dfsg.1-14sarge1 files and utilities common to > all > ii zlib1g 1:1.2.2-4.sarge.2 compression library - runtime > > -- no debconf information > > -- --------------------- Ola Lundqvist --------------------------- / [EMAIL PROTECTED] Annebergsslingan 37 \ | [EMAIL PROTECTED] 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 / --------------------------------------------------------------- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]