Recent

Author Topic: Path issue on compiling Lazarus  (Read 13175 times)

JuergenE

  • New member
  • *
  • Posts: 8
Path issue on compiling Lazarus
« on: March 01, 2016, 09:21:01 am »
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

  • Hero Member
  • *****
  • Posts: 14363
  • Sensorship about opinions does not belong here.
Re: Path issue on compiling Lazarus
« Reply #1 on: March 01, 2016, 09:59:41 am »
As far as I know that is an fpc package and you don't need to add it. It is non-visual.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

balazsszekely

  • Guest
Re: Path issue on compiling Lazarus
« Reply #2 on: March 01, 2016, 10:55:28 am »
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

  • New member
  • *
  • Posts: 8
Re: Path issue on compiling Lazarus
« Reply #3 on: March 01, 2016, 03:15:50 pm »
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

  • Guest
Re: Path issue on compiling Lazarus
« Reply #4 on: March 01, 2016, 04:15:40 pm »
@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.
« Last Edit: March 01, 2016, 04:24:14 pm by GetMem »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11446
  • FPC developer.
Re: Path issue on compiling Lazarus
« Reply #5 on: March 01, 2016, 04:32:29 pm »
Note that FPC contains more lnet stuff nowadays for the fphttpclient stuff.

It might be that the errors are caused by duplicate units.

BeniBela

  • Hero Member
  • *****
  • Posts: 906
    • homepage
Re: Path issue on compiling Lazarus
« Reply #6 on: March 01, 2016, 05:39:16 pm »
Note 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

  • Hero Member
  • *****
  • Posts: 1013
    • HowTos Considered Harmful?
Re: Path issue on compiling Lazarus
« Reply #7 on: March 01, 2016, 06:39:26 pm »
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.

Note 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...
Lazarus 3.0/FPC 3.2.2

JuergenE

  • New member
  • *
  • Posts: 8
Re: Path issue on compiling Lazarus
« Reply #8 on: March 02, 2016, 10:36:39 am »
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

  • Guest
Re: Path issue on compiling Lazarus
« Reply #9 on: March 02, 2016, 11:03:35 am »
@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

  • Hero Member
  • *****
  • Posts: 1013
    • HowTos Considered Harmful?
Re: Path issue on compiling Lazarus
« Reply #10 on: March 02, 2016, 04:46:43 pm »
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.

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
Lazarus 3.0/FPC 3.2.2

jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: LNet - Path issue on compiling Lazarus
« Reply #11 on: March 05, 2016, 09:18:28 am »
I think i found the problem:
in the <LnetPackage>\lazaruspackage\lib\<target> - folder is an old copy of openssl.o and openssl.ppu which conflicts with the fcl.
and in the <LnetPackage>\lib - folder there is an old openssl.pas - file which is found prior to the fcl.

Solution:Delete all files in <LnetPackage>\lazaruspackage\lib\<target>
and delete <LnetPackage>\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.
« Last Edit: March 05, 2016, 09:24:33 am by jc99 »
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: Path issue on compiling Lazarus
« Reply #12 on: March 05, 2016, 10:03:14 am »
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)
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

balazsszekely

  • Guest
Re: Path issue on compiling Lazarus
« Reply #13 on: March 05, 2016, 10:22:48 am »
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

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: Path issue on compiling Lazarus
« Reply #14 on: March 05, 2016, 02:00:15 pm »
No, he said:
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.

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.
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

 

TinyPortal © 2005-2018