Getting this error with the latest 6.2 on Lazarus 1.0.14:
(prior I was using version 5.x on linux)
/home/snorkel/laz_components/sbridge/Source/CRSocketImpl.inc(317,16) Error: Duplicate identifier "Socket"
Ok, so I renamed the socket function to _socket, then I get this:
/home/snorkel/laz_components/sbridge/Source/CRSocketImpl.inc(416,24) Hint: Local variable "Hints" does not seem to be initialized
/home/snorkel/laz_components/sbridge/Source/CRSocketImpl.inc(20,16) Hint: Local type "PPAddrInfo" is not used
/home/snorkel/laz_components/sbridge/Source/ScSSHSocket.pas(72,25) Error: Identifier not found "PSockAddr"
/home/snorkel/laz_components/sbridge/Source/ScSSHSocket.pas(72,25) Error: Error in type definition
/home/snorkel/laz_components/sbridge/Source/ScSSHSocket.pas(74,43) Error: Identifier not found "PSockAddr"
/home/snorkel/laz_components/sbridge/Source/ScSSHSocket.pas(80,25) Error: Identifier not found "PSockAddr"
/home/snorkel/laz_components/sbridge/Source/ScSSHSocket.pas(80,25) Error: Error in type definition
/home/snorkel/laz_components/sbridge/Source/ScSSHSocket.pas(86,43) Error: Identifier not found "PSockAddr"
/home/snorkel/laz_components/sbridge/Source/ScSSHSocket.pas(103,1) Fatal: There were 6 errors compiling module, stopping
Latest securebridge won't compile on Linux
Re: Latest securebridge won't compile on Linux
FYI,
I tried to compile 6.1 and that did not work either.
I tried to compile 6.1 and that did not work either.
Re: Latest securebridge won't compile on Linux
In order to solve the problem, apply the following changes.
1. Find the lines below of the CRSocketImpl.inc unit and delete them:
2. Add the Sockets unit to the uses clause of the ScSSHSocket.pas source file.
3. Add the following code to the implementation section of the ScSSHSocket.pas unit:
1. Find the lines below of the CRSocketImpl.inc unit and delete them:
Code: Select all
function socket(af, struct, protocol: Integer): TSocket;
begin
Result := fpsocket(af, struct, protocol);
end;
3. Add the following code to the implementation section of the ScSSHSocket.pas unit:
Code: Select all
{$IFDEF UNIX}
function inet_ntoa(Entry: in_addr): AnsiString;
begin
Result := NetAddrToStr(Entry);
end;
{$ENDIF}
Re: Latest securebridge won't compile on Linux
Thanks,
Compiles and installs,but when I drop a ssh client component on a form it raises
a generic access violation.
Clicking ok to ignore it just repeats it over and over, and cancel closes the IDE.
This is on Lazarus 1.2RC2, but the last 5.x vesion installs and works fine.
Note: the AV is also raised when I drop a ssl client on the form. All the other components drop on the form fine with no AV, just the two client ones.
Compiles and installs,but when I drop a ssh client component on a form it raises
a generic access violation.
Clicking ok to ignore it just repeats it over and over, and cancel closes the IDE.
This is on Lazarus 1.2RC2, but the last 5.x vesion installs and works fine.
Note: the AV is also raised when I drop a ssl client on the form. All the other components drop on the form fine with no AV, just the two client ones.
Re: Latest securebridge won't compile on Linux
Just a FYI,
I also installed it in the stable version of Lazarus 1.0.14 and it does the same thing. This is with the 2.6.2 compiler.
I also installed it in the stable version of Lazarus 1.0.14 and it does the same thing. This is with the 2.6.2 compiler.
Re: Latest securebridge won't compile on Linux
I can not reproduce the problem. Please specify the exact version of the operation system on your machine.
Re: Latest securebridge won't compile on Linux
Please, try to download the latest Lazarus build and check if this problem still exists.