[fpc-devel] 'debugserverintf' fails to compile under FPC 2.4.0-rc1 and FPC 2.5.1

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Dec 7 15:42:43 CET 2009


Hi,

Attached is a partial patch for 'utils/debugsvr/debugserverintf.pp'
unit. This unit is cannot be compiled at the moment, but the attached
patch at least removes many of the compiler errors.

There are still 5 remaining compiler errors that I am not sure about
how to fix. Can anybody help with these?

I tried with FPC 2.4.0-rc1 and FPC 2.5.1 and neither version of
debugserverintf.pp seems to compile.


-------------------------------
/opt/fpc_2.3.1/src/utils/debugsvr/debugserverintf.pp(30,13) Hint: Type
"Thandle" redefinition
/opt/fpc_2.3.1/src/utils/debugsvr/debugserverintf.pp(122,3) Warning:
Symbol "Str2UnixSockAddr" is deprecated
/opt/fpc_2.3.1/src/utils/debugsvr/debugserverintf.pp(122,47) Hint:
Local variable "AddrLen" does not seem to be initialized
/opt/fpc_2.3.1/src/utils/debugsvr/debugserverintf.pp(122,39) Hint:
Local variable "FUnixAddr" does not seem to be initialized
/opt/fpc_2.3.1/src/utils/debugsvr/debugserverintf.pp(123,34) Error:
Incompatible type for arg no. 2: Got "TUnixSockAddr", expected
"psockaddr"
/opt/fpc_2.3.1/src/utils/debugsvr/debugserverintf.pp(125,6) Error:
Boolean expression expected, but got "LongInt"
/opt/fpc_2.3.1/src/utils/debugsvr/debugserverintf.pp(175,34) Error:
Incompatible type for arg no. 2: Got "sockaddr_in", expected
"psockaddr"
/opt/fpc_2.3.1/src/utils/debugsvr/debugserverintf.pp(176,48) Warning:
Local variable "FFileName" does not seem to be initialized
/opt/fpc_2.3.1/src/utils/debugsvr/debugserverintf.pp(177,6) Error:
Boolean expression expected, but got "LongInt"
/opt/fpc_2.3.1/src/utils/debugsvr/debugserverintf.pp(244,42) Error:
Incompatible type for arg no. 3: Got "LongInt", expected "pSockLen"
/opt/fpc_2.3.1/src/utils/debugsvr/debugserverintf.pp(344,10) Hint:
Local variable "FDebugMessage" does not seem to be initialized
/opt/fpc_2.3.1/src/utils/debugsvr/debugserverintf.pp(358,32) Hint:
Local variable "msgSize" does not seem to be initialized
/opt/fpc_2.3.1/src/utils/debugsvr/debugserverintf.pp(376,32) Hint:
Local variable "Event" does not seem to be initialized
/opt/fpc_2.3.1/src/utils/debugsvr/debugserverintf.pp(381) Fatal: There
were 5 errors compiling module, stopping

-------------------------------


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debugserverintf.pp.patch
Type: text/x-diff
Size: 2035 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20091207/683bc93b/attachment.patch>


More information about the fpc-devel mailing list