Path issue on compiling Lazarus lazarus / 13-General ---------------------------------------------------------------------- JuergenE · 2016-03-01 08:21 Good morning, I downloaded and installed Lazarus 1.6 a few days before. My system is Win7/64bit. Unfortunately I am not able to compile the IDE after adding the INET package. The compile process runs a while and stucks on compiling the unit fphttpclient in the line 285: uses sslsockets The popup of the error message tells me the ppu file of sslsockets is in the wrong folder: C:\lazarus\fpc\units\i386-win32\fcl-net\sslsockets.ppu. I tried to add the unit path in the fcl.cfg file without any success. Is there any known way to solve that issue. Btw: In the past I never had issues while compiling the IDE. Thanks in advance. ---------------------------------------------------------------------- Thaddy · 2016-03-01 08:59 As far as I know that is an fpc package and you don't need to add it. It is non-visual. ---------------------------------------------------------------------- balazsszekely · 2016-03-01 09:55 I tested with:   - Lazarus 1.6   - FPC 3.0.0   - INet trunk(http://svn.freepascal.org/svn/fpcprojects/lnet) Works well, no error message! ---------------------------------------------------------------------- JuergenE · 2016-03-01 14:15 Hello GetMem & Thaddy, thanks for the response. Meanwhile I cleared my system (uninstall Larazurs, clear folders and registry manually) and reinstalled Lazarus again. Now recompilation of the IDE works. But there is now an issue on adding INet. The only version I have is the pretty old version 0.6.5 (same as in the trunk you suggested). The compiler gives: lnetbase.pas(11,5) Fatal: Kann lNet nicht finden verwendet von lnetbase, incompatible ppu=C:\lazarus\components\lazaruspackage\lib\i386-win32\lnet.ppu, Package lnetbase So I don´t understand why your sysstem Thaddy? If there is no way to get INet running I have to go back to an older version of lazarus / FPC ---------------------------------------------------------------------- balazsszekely · 2016-03-01 15:15 @JuergenE First you have to compile InetBase, then compile and install InetVisual! PS: Incompatible ppu means that you have files from different fpc versions or wrong architecture. ---------------------------------------------------------------------- marcov · 2016-03-01 15:32 Note that FPC contains more lnet stuff nowadays for the fphttpclient stuff. It might be that the errors are caused by duplicate units. ---------------------------------------------------------------------- BeniBela · 2016-03-01 16:39 Quote from: marcov on March 01, 2016, 04:32:29 pmNote that FPC contains more lnet stuff nowadays for the fphttpclient stuff. It might be that the errors are caused by duplicate units. That sounds like a great way to promote fphttpclient Just break all the others... ---------------------------------------------------------------------- vfclists · 2016-03-01 17:39 Third party libraries should prefix their file names. Experienced programmer that you are you should know that 3rd party libraries should not use names which are likely to conflict with simple basic names as they are like to by the standard built-inpackages. See how much trouble Rx Library and controls caused by hijacking names such as the recent TDBDateEdit. when it should have been named TRXDBdateEdit. Quote from: BeniBela on March 01, 2016, 05:39:16 pmQuote from: marcov on March 01, 2016, 04:32:29 pmNote that FPC contains more lnet stuff nowadays for the fphttpclient stuff. It might be that the errors are caused by duplicate units. That sounds like a great way to promote fphttpclient Just break all the others... ---------------------------------------------------------------------- JuergenE · 2016-03-02 09:36 Good morning, I got the full source package from http://svn.freepascal.org/svn/fpcprojects/lnet/ and now I am able to compile lNet and lNetVisual as GetMem suggested. Compilation is fine but there is still this warning: Warning: other sources path of package "lnetbase 0.6.5" contains directory "..\lib_lnet", which is already in the unit search path. I renamed the old ..\lib by ..\lib_lnet and changed the .pp files to ensure there is no conflict with already installed components but there is no effect on that. With lnetvisual installed IDE compilation fails on compilation of the fpc components. I don´t know why the IDE compilation needs to compile fpc agin and how to fix. Nachrichten, Warnungen: 1 Warning: other sources path of package "lnetbase 0.6.5" contains directory "..\lib_lnet", which is already in the unit search path. IDE erstellen: Exit code 2, Fehler: 1, Warnungen: 1 Warning: Recompiling sslsockets, checksum changed for OpenSSL fphttpclient.pp(285,6) Fatal: Kann sslsockets nicht finden verwendet von fphttpclient. Make sure all ppu files of a package are in its output directory. ppu im falschen Verzeichnis=C:\lazarus\fpc\3.0.0\units\i386-win32\fcl- net\sslsockets.ppu.. If there is no simple solution for the issue I have to go back to an older version  Best regards, Jürgen ---------------------------------------------------------------------- balazsszekely · 2016-03-02 10:03 @Jürgen Just to be sure, I did test it again with Laz 1.7(trunk)/FPC 3.0.0: https://youtu.be/7QUkOCB1At0 Something must be wrong at your side or perhaps with 1.6 . Can you please test it with trunk version? ---------------------------------------------------------------------- vfclists · 2016-03-02 15:46 Have you tried compiling with -vut? Select Show used files (-vu) and Show tried files (-vt) in Compiler Options -> Verbosity in the project options dialog you are compiling as a project. Quote from: JuergenE on March 02, 2016, 10:36:39 amGood morning, I got the full source package from http://svn.freepascal.org/svn/fpcprojects/lnet/ and now I am able to compile lNet and lNetVisual as GetMem suggested. Compilation is fine but there is still this warning: Warning: other sources path of package "lnetbase 0.6.5" contains directory "..\lib_lnet", which is already in the unit search path. I renamed the old ..\lib by ..\lib_lnet and changed the .pp files to ensure there is no conflict with already installed components but there is no effect on that. With lnetvisual installed IDE compilation fails on compilation of the fpc components. I don´t know why the IDE compilation needs to compile fpc agin and how to fix. Nachrichten, Warnungen: 1 Warning: other sources path of package "lnetbase 0.6.5" contains directory "..\lib_lnet", which is already in the unit search path. IDE erstellen: Exit code 2, Fehler: 1, Warnungen: 1 Warning: Recompiling sslsockets, checksum changed for OpenSSL fphttpclient.pp(285,6) Fatal: Kann sslsockets nicht finden verwendet von fphttpclient. Make sure all ppu files of a package are in its output directory. ppu im falschen Verzeichnis=C:\lazarus\fpc\3.0.0\units\i386-win32\fcl- net\sslsockets.ppu.. If there is no simple solution for the issue I have to go back to an older version  Best regards, Jürgen ---------------------------------------------------------------------- jc99 · 2016-03-05 08:18 I think i found the problem: in the \lazaruspackage\lib\ - folder is an old copy of openssl.o and openssl.ppu which conflicts with the fcl. and in the \lib - folder there is an old openssl.pas - file which is found prior to the fcl. Solution:Delete all files in \lazaruspackage\lib\ and delete \lib\openssl.pas (not longer needed in 0.6.6) Do a clean compile. that worked for me ... @GetMem: i think you did a clean checkout of the trunk-lnet so you had no problems ... @Moderator: Please rename the topic and/or move it to the correct forum, because it's about the 3rd party package LNet causing the problems. ---------------------------------------------------------------------- jc99 · 2016-03-05 09:03 In my opinion this is a bug in the compilation system: the (old) openssl.pas was actually not in package itself. It was just in the searchpath. I just got a similar thing (It's not causing a problem, but maybe someday) i have among others a revision.inc and a jedi.inc in my include- directory. one of my package uses the jedi.inc for compiler/platform specific stuff. now on recompile of the IDE I get: Warning: Duplicate file "revision.inc" in "#IDE", path="c:\lazarus\ide\revision.inc"  Warning: Duplicate file "revision.inc" in "BaseUnits 1.0.1.127", path="C:\projects\pascal\include\revision.inc" But BaseUnits don't even touch the revision.inc (it's just a path issue) ---------------------------------------------------------------------- balazsszekely · 2016-03-05 09:22 Quote@jc99 @GetMem: i think you did a clean checkout of the trunk-lnet so you had no problems .Yes, but according to the OP he also did a clean checkout. I was wondering why it works for me and not for him. Anyway I'm glad you find out the reason. ---------------------------------------------------------------------- jc99 · 2016-03-05 13:00 No, he said: Quote from: JuergenE on March 02, 2016, 10:36:39 amI got the full source package from http://svn.freepascal.org/svn/fpcprojects/lnet/ and now I am able to compile lNet and lNetVisual as GetMem suggested. If he did, as I did, do the checkout to the existing directory then openssl.pas file stays, You ll just get a new additional one. ---------------------------------------------------------------------- mihatel · 2019-05-08 15:10 Quote from: jc99 on March 05, 2016, 09:18:28 amI think i found the problem: in the \lazaruspackage\lib\ - folder is an old copy of openssl.o and openssl.ppu which conflicts with the fcl. and in the \lib - folder there is an old openssl.pas - file which is found prior to the fcl. Solution:Delete all files in \lazaruspackage\lib\ and delete \lib\openssl.pas (not longer needed in 0.6.6) Do a clean compile. that worked for me ... @GetMem: i think you did a clean checkout of the trunk-lnet so you had no problems ... @Moderator: Please rename the topic and/or move it to the correct forum, because it's about the 3rd party package LNet causing the problems. thank you