View Issue Details

IDProjectCategoryView StatusLast Update
0002898CCdcielGeneralpublic26-03-30 12:07
Reporterhan Assigned To 
PrioritynoneSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Summary0002898: Some minor compile problems
DescriptionNoted the following after a fresh code download:

1) Laz_synapse is not in CCDCielcomponents v0.0

2) In cu_tpcserver

line 202, if ClientSock<>NoSocket then

I get the following compiler error:
   cu_tcpserver.pas(202,24) Error: Range check error while evaluating constants (-1 must be between 0 and 18446744073709551615)
TagsNo tags attached.

Activities

Patrick Chevalley

26-03-07 14:53

administrator   ~0009655

Hello Han,

For me ccdcielcomponents.lpk at line 37 contain:
      <Item5>
        <PackageName Value="laz_synapse"/>
        <DefaultFilename Value="synapse/laz_synapse.lpk"/>
      </Item5>

Is it the case for you?

The error in cu_tcpserver is maybe because of the use of an untyped constant that get a different default type on your system.
Can you try to replace the line 116:
NoSocket = -1;
by:
NoSocket :longint = -1;

han

26-03-07 20:14

reporter   ~0009657

1) Yes laz_synapse.lpk is in ccdcielcomponents.lpk. I can not reproduce the error now, but I had this problem already a few times in the past and got this problem again today. That's why I didn't look into ccdcielcomponents.lpk but just reported the compiler error. In case it happens, I did just solve it by loading laz_synapse.lpk seperatly. Weird, can not explain it. I will see if it happens again in the future.

2) The new line116:

 NoSocket :longint = -1;

solves the compiler problem. But the variable ClientSock is a Qword. So now in line 202 a qword is compared with a longint. I assume ClientSock<>NoSocket is always true?

Patrick Chevalley

26-03-20 21:53

administrator   ~0009675

I test that in a new Windows virtual machine.

No problem with laz_synapse, it is visible when opening ccdcielcomponents.lpk and it compile fine.

The error with NoSocket is because of a different implementation between Linux and Windows.
This is fixed by:
https://github.com/pchev/ccdciel/commit/dd2c3b37a98b49add33a2b2fc6763696a503aa3b

han

26-03-29 12:49

reporter   ~0009681

The problem of missing components becomes more clear. Somehow by loading the new ccdcielcomponents.lpk, the package information is not updated. So I have two lazarus version installed. 4.2 and 4.99. But the package laz_synapse is not updated by loading ccdcielcomponents.lpk in lazarus 4.2. But using a more blank lazarus 4.99 it will use the update. See screenshots. So how can you force a package update?
Untitled.png (123,001 bytes)   
Untitled.png (123,001 bytes)   
Untitled2.png (87,359 bytes)   
Untitled2.png (87,359 bytes)   

han

26-03-29 13:28

reporter   ~0009682

For lazarus version 4.2 it was looking to an older ccdcielcomponents.lpk at my D: drive. After removing that is was automatic looking to the latest version at my E: drive. I had no control about this except removing the older version from the D: drive. Could a different version for package ccdcielcomponents 0.0 help? I can not find any menu to remove package ccdcielcomponents.

Patrick Chevalley

26-03-30 12:07

administrator   ~0009688

From the screenshot the package V40.1 you have with the version 4.2 is from a skysimulator directory. It look like an old version missing the ssl3 support.

You cannot remove ccdcielcomponents because it is never installed, this is just a pseudo-package with a list of requirement. This is a facility to not have to open and install every lpk in all the subdirectories.

But you can remove laz_synapse and install another one. You can have only one per lazarus installation, just be sure to select the right one.

Issue History

Date Modified Username Field Change
26-03-07 11:32 han New Issue
26-03-07 14:53 Patrick Chevalley Note Added: 0009655
26-03-07 20:14 han Note Added: 0009657
26-03-20 21:53 Patrick Chevalley Note Added: 0009675
26-03-29 12:49 han Note Added: 0009681
26-03-29 12:49 han File Added: Untitled.png
26-03-29 12:49 han File Added: Untitled2.png
26-03-29 13:28 han Note Added: 0009682
26-03-30 12:07 Patrick Chevalley Note Added: 0009688