Recent

Author Topic: WebSocket & FPC  (Read 33140 times)

avra

  • Hero Member
  • *****
  • Posts: 2586
    • Additional info
Re: WebSocket & FPC
« Reply #30 on: December 15, 2015, 09:01:27 am »
Lazarus trunk and FPC trunk (RTTI) can cause trouble when used. This is due to their nature.
I was aware of such possibilities with trunks, but I didn't expect it with rtti version. I didn't know that rtti version can suffer the same problem.
Quote
Often, I also encounter errors (also your error during the last couple of weeks
Ok, I understand that error now. But did you notice "The ordinal 4540 could not be located in the dynamic link library libeay32.dll" error? I get it when I started fpcup and fpclazup. Is it intended behavior? I have provided a fix url where updated lib can be downloaded, but maybe you should investigate that a little. I have solved that problem but someone else will probably give up. Win7 is not that old OS and it's widely used so I suspect that potentially many people will be affected.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

avra

  • Hero Member
  • *****
  • Posts: 2586
    • Additional info
Re: WebSocket & FPC
« Reply #31 on: December 15, 2015, 09:06:53 am »
So, in both cases, the mORMot will work.
And, if you do not use interfaces, no extra effort is needed.
If he needs json-rpc, he will need special rtti version of fpc.  :-X
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1875
Re: WebSocket & FPC
« Reply #32 on: December 15, 2015, 09:39:28 am »
@avra
RTTI is just some recent trunk version, with added RTTI (21-11-2015).

The problem you detected with FPC/Lazarus trunk was caused by a (temporary) bug in the lcl document updater (build_lcl_docs.lpr).
I just told fpcup to ignore this bug and continue.
And in the meantime, this bug has vanished.

And I did notice your bug report.
Subsequently updated OpenSSL to 1.0.2e.
But I cannot reproduce your issue unfortunately.
There is nothing special about OpenSSL and fpcup.
It just uses synopse without any change !
So, I do not understand fully.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: WebSocket & FPC
« Reply #33 on: December 15, 2015, 01:03:04 pm »
Aha!
So you are the fpcup maintainer!
Man I have many problems with it and I post here many times!
Congratulate first for new fpclazup.
Second I tried  a new version and just run what you said and it says :
Quote
fpmkunit.pp(1260,17) Warning: An inherited method is hidden by "constructor Create(TComponent);"
fpmkunit.pp(1842,7) Warning: Symbol "CommandLine" is deprecated
fpmkunit.pp(2563,5) Warning: Symbol "CommandLine" is deprecated
fpmkunit.pp(5327,27) Warning: Local variable "i" does not seem to be initialized
fpmkunit.pp(6975,13) Warning: Symbol "FixPath" is deprecated: "Use the overload with AIsDir instead"
make[3]: Leaving directory `C:/development/trunkall/fpc/packages/fpmkunit'
C:/development/trunkall/fpc/compiler/ppc386.exe fpmake.pp  -FuC:/development/trunkall/fpc/packages/fpmkunit/units_bs/i386-win32 -FuC:/development/trunkall/fpc/rtl/units/i386-win32  -g -gl -O1 -Xs -CX -XX
fpmake_proc.inc(224,2) Fatal: Cannot open include file "gdbm\fpmake.pp"
Fatal: Compilation aborted
make[2]: *** [fpmake.exe] Error 1
make[2]: Leaving directory `C:/development/trunkall/fpc/packages'
make[1]: *** [packages_smart] Error 2
make[1]: Leaving directory `C:/development/trunkall/fpc'
make: *** [build-stamp.i386-win32] Error 2
make: Leaving directory `C:/development/trunkall/fpc'

fpclazup: info: FPC: Running fpc make all install failed with exit code 2
Details:
fpclazup: ERROR: Error running BuildModuleCustom for module FPC
fpclazup: info: Error running fpcup. Technical details: error executing sequence fpc; line: 5, param: FPC
fpclazup: info: Error running fpcup. Technical details: error executing sequence DefaultWin32; line: 3, param: fpc
Fpclazup failed.
Please check log for details. Possible troubleshooting steps:
- run again with --verbose and check for make, lazbuild errors etc.
- if compiling Lazarus, make sure your lhelp is closed.
- try removing all intermediate files by running fpcup with the --clean option
  and/or manually deleting all *.ppu/*.a/*.o followed by svn up
- if that does not work: use the --uninstall option to remove all files
  including your FPC and Lazarus directories
- remove the files in the bootstrap directory. fpcup will redownload if required.                 
 

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1875
Re: WebSocket & FPC
« Reply #34 on: December 15, 2015, 01:41:56 pm »
If I look at your log, I can see something like trunkall.
And that could mean that you used some kind of script to run fpc(laz)up.

I just ran
Code: [Select]
fpclazup.exe --installdir="c:\fpcrttitrunk" --fpcURL="RTTI" --lazURL="trunk" --verbose
without any problem !

Please state the exact command you used !?

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: WebSocket & FPC
« Reply #35 on: December 15, 2015, 03:06:08 pm »
exactly what you wrote and just copy pasted and that trunkall is my folder name.

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: WebSocket & FPC
« Reply #36 on: December 15, 2015, 03:50:47 pm »
I just try this :
Quote
fpclazup.exe --installdir="c:\fpcrttitrunk" --fpcURL="RTTI" --lazURL="trunk" --verbose --noconfirm > vlog.txt
And get full log:
Quote
.....
.....
A    C:\fpcrttitrunk\fpc\packages\gtk2\src\gtk+\gtk\gtkfilesystem.inc
svn: E175013: Access to '/svn/fpc/!svn/rvr/30547/branches/interfacertti/packages/gtk2/src/glib/gstring.inc' forbidden
fpclazup: info: FPC was at: failure
fpclazup: info: No updates for FPC found.
fpclazup: info: TFPCInstaller: building module FPC...
fpclazup: info: Running make all install for FPC:
Executing : C:\fpcrttitrunk\fpcbootstrap\make.exe "FPC=C:\fpcrttitrunk\fpcbootstrap\ppc386.exe" "--directory=C:\fpcrttitrunk\fpc" "INSTALL_PREFIX=C:\fpcrttitrunk\fpc" "UPXPROG=echo" "COPYTREE=echo" "OPT=-g -gl -O1 -Xs -CX -XX" "all" "install" (working dir: C:\fpcrttitrunk\fpc)
make: Entering directory `C:/fpcrttitrunk/fpc'
C:/fpcrttitrunk/fpcbootstrap/make compiler_cycle RELEASE=1
make[1]: Entering directory `C:/fpcrttitrunk/fpc'
C:/fpcrttitrunk/fpcbootstrap/make -C compiler cycle
make[2]: Entering directory `C:/fpcrttitrunk/fpc/compiler'
C:/fpcrttitrunk/fpcbootstrap/make tempclean ppc3.exe
make[3]: Entering directory `C:/fpcrttitrunk/fpc/compiler'
C:/fpcrttitrunk/fpcbootstrap/rm.exe -f ppcross386.exe ppc.exe ppc1.exe ppc2.exe ppc3.exe ./msg2inc.exe pp1.wpo pp2.wpo
C:/fpcrttitrunk/fpcbootstrap/make 'OLDFPC=' next CYCLELEVEL=1
make[4]: Entering directory `C:/fpcrttitrunk/fpc/compiler'
C:/fpcrttitrunk/fpcbootstrap/make rtlclean rtl
make[5]: Entering directory `C:/fpcrttitrunk/fpc/compiler'
C:/fpcrttitrunk/fpcbootstrap/make -C  clean
make: Entering an unknown directory
make: Leaving an unknown directory
make: *** clean: No such file or directory.  Stop.
make[5]: *** [rtlclean] Error 2
make[5]: Leaving directory `C:/fpcrttitrunk/fpc/compiler'
make[4]: *** [next] Error 2
make[4]: Leaving directory `C:/fpcrttitrunk/fpc/compiler'
make[3]: *** [ppc1.exe] Error 2
make[3]: Leaving directory `C:/fpcrttitrunk/fpc/compiler'
make[2]: *** [cycle] Error 2
make[2]: Leaving directory `C:/fpcrttitrunk/fpc/compiler'
make[1]: *** [compiler_cycle] Error 2
make[1]: Leaving directory `C:/fpcrttitrunk/fpc'
make: *** [build-stamp.i386-win32] Error 2
make: Leaving directory `C:/fpcrttitrunk/fpc'

fpclazup: info: FPC: Running fpc make all install failed with exit code 2
Details:
fpclazup: ERROR: Error running BuildModuleCustom for module FPC
fpclazup: info: Error running fpcup. Technical details: error executing sequence fpc; line: 5, param: FPC
fpclazup: info: Error running fpcup. Technical details: error executing sequence DefaultWin32; line: 3, param: fpc
Fpclazup failed.
Please check log for details. Possible troubleshooting steps:
- run again with --verbose and check for make, lazbuild errors etc.
- if compiling Lazarus, make sure your lhelp is closed.
- try removing all intermediate files by running fpcup with the --clean option
  and/or manually deleting all *.ppu/*.a/*.o followed by svn up
- if that does not work: use the --uninstall option to remove all files
  including your FPC and Lazarus directories
- remove the files in the bootstrap directory. fpcup will redownload if required.
It has error on this :
Quote
svn: E175013: Access to '/svn/fpc/!svn/rvr/30547/branches/interfacertti/packages/gtk2/src/glib/gstring.inc' forbidden

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1875
Re: WebSocket & FPC
« Reply #37 on: December 15, 2015, 03:54:34 pm »
Thanks for reporting back.
Definitely a SVN error.
Just delete the fpc directory and try again.
Your command sequency is 100% ok !!

aradeonas

  • Hero Member
  • *****
  • Posts: 824
Re: WebSocket & FPC
« Reply #38 on: December 15, 2015, 05:31:01 pm »
I tested again.
Quote
svn: E730053: Error running context: An established connection was aborted by the software in your host machine. 
Is it a SVN problem again?Is there anyway to check?

 

TinyPortal © 2005-2018