Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-03

sockets.pp(20, 5) Error: include file not found "osdefs.inc"

13 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

FreeMan
to FreeMan

That's a configuration problem in your lazarus. Please ask for help on the fora or mailing lists.
Jonas Maebe (manager) wrote this that link.
is this problem from fpc or lazarus?

FreeMan wrote 5 lines
http://bugs.freepascal.org/view.php?id=27693 /opt/freepascal/3.1.1/packages/rtl-extra/src/unix/sockets.pp In lazarus TLTCPComponent compileted and installed without error. when try code complied I get this error and project not compile.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150320/15eb5467/attachment.html>

Reply by email

Mattias Gaertner
to FreeMan
That's a configuration problem in your lazarus. Please ask for help on the fora or mailing lists. Jonas Maebe (manager) wrote this that link. is this problem from fpc or lazarus?

What Lazarus version?

Check your FPC source directory and that you use the 3.1.1 compiler.

Check View / IDE Internals / About IDE.

Show quoted text 6 lines
On 19.03.2015 23:24, FreeMan wrote: > http://bugs.freepascal.org/view.php?id=27693 > > /opt/freepascal/3.1.1/packages/rtl-extra/src/unix/sockets.pp > In lazarus TLTCPComponent compileted and installed without error. when > try code complied I get this error and project not compile.

Mattias

Reply by email

FreeMan
to Mattias Gaertner

fpc r30263 lazarus r48429 yosemite qt x64

in
/opt/freepascal/3.1.1/packages/rtl-extra/src/unix/sockets.pp

unit Sockets;
Interface
{$ifdef Unix}
Uses baseunix,UnixType;
{$endif}
{$i osdefs.inc}       { Compile time defines }
....
this file is not in /opt/freepascal/3.1.1/packages/rtl-extra/src/unix/
Mattias Gaertner wrote 14 lines
On Fri, 20 Mar 2015 13:24:05 +0200 FreeMan wrote: > >That's a configuration problem in your lazarus. Please ask for help on > >the fora or mailing lists. > >Jonas Maebe (manager) wrote this that link. > >is this problem from fpc or lazarus? What Lazarus version? Check your FPC source directory and that you use the 3.1.1 compiler. Check View / IDE Internals / About IDE.

Reply by email

FreeMan
to FreeMan

Is this problem from lazarus or fpc ?

FreeMan wrote 37 lines
fpc r30263 lazarus r48429 yosemite qt x64 in /opt/freepascal/3.1.1/packages/rtl-extra/src/unix/sockets.pp unit Sockets; Interface {$ifdef Unix} Uses baseunix,UnixType; {$endif} {$i osdefs.inc} { Compile time defines } .... this file is not in /opt/freepascal/3.1.1/packages/rtl-extra/src/unix/ On 20.03.2015 13:54, Mattias Gaertner wrote: > On Fri, 20 Mar 2015 13:24:05 +0200 > FreeMan wrote: > >> >That's a configuration problem in your lazarus. Please ask for help on >> >the fora or mailing lists. >> >Jonas Maebe (manager) wrote this that link. >> >is this problem from fpc or lazarus? > What Lazarus version? > > Check your FPC source directory and that you use the 3.1.1 compiler. > > Check View / IDE Internals / About IDE. > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

FreeMan
to Michael Van Canneyt

Thank you Michael,
How to tell to Marco ? because my reported issue assigned to "Jonas Maebe". Jonas wrote this is lazarus problem and issue status changed to resolved.
issue id is 0027693

Michael Van Canneyt wrote 9 lines
On Sat, 21 Mar 2015, FreeMan wrote: > Is this problem from lazarus or fpc ? Free Pascal, for Marco Van de Voort. Michael.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150321/6b57e8bf/attachment.html>

Reply by email

Michael Van Canneyt
to FreeMan
FreeMan wrote
Thank you Michael, How to tell to Marco ? because my reported issue assigned to "Jonas Maebe". Jonas wrote this is lazarus problem and issue status changed to resolved. issue id is 0027693

I reopened it and assigned it to Marco.

Michael.

Reply by email

Michael Van Canneyt
to FreeMan
FreeMan wrote 6 lines
I saw in issue, thank you very much. On 21.03.2015 12:30, Michael Van Canneyt wrote: > I reopened it and assigned it to Marco. > > Michael.

Unfortunately, I made a mistake when I first checked the issue. The problem is not in FPC, but seems to be a configuration problem on your PC.

Michael.

Reply by email

FreeMan
to Michael Van Canneyt
Michael Van Canneyt wrote 5 lines
Unfortunately, I made a mistake when I first checked the issue. The problem is not in FPC, but seems to be a configuration problem on your PC. Michael.

For test, Install from ccr, lnet v0.6.6 components. lnetvisual.lpk --> paths are empty, just outputs set lnetvisual.lpk 's required packages is lnetbase.lpk --> -Fu=../lib -Fi=../lib/sys other sources = ../lib;../lib/sys
lnetbase.lpk 's required packages is empty.

open new project.
Put TLTCPComponent and tbutton on form. on Button1Click, type "LTCPComponent1." and after dot, press ctrl + space and get this error sockets.pp(20,5) Error: include file not found "osdefs.inc" not close IDE and not make or not rebuild, jus copy /opt/freepascal/3.1.1/packages/rtl-extra/src/linux/osdefs.inc to /opt/freepascal/3.1.1/packages/rtl-extra/src/unix/ folder then press ctrl + space code complied is work !! no error What can be problem ? project compiling and working normal, just code complied has error.

Reply by email

Michael Van Canneyt
to FreeMan
FreeMan wrote 22 lines
On 21.03.2015 13:22, Michael Van Canneyt wrote: > Unfortunately, I made a mistake when I first checked the issue. > The problem is not in FPC, but seems to be a configuration problem on your > PC. > > Michael. For test, Install from ccr, lnet v0.6.6 components. lnetvisual.lpk --> paths are empty, just outputs set lnetvisual.lpk 's required packages is lnetbase.lpk --> -Fu=../lib -Fi=../lib/sys other sources = ../lib;../lib/sys lnetbase.lpk 's required packages is empty. open new project. Put TLTCPComponent and tbutton on form. on Button1Click, type "LTCPComponent1." and after dot, press ctrl + space and get this error sockets.pp(20,5) Error: include file not found "osdefs.inc" not close IDE and not make or not rebuild, jus copy /opt/freepascal/3.1.1/packages/rtl-extra/src/linux/osdefs.inc to /opt/freepascal/3.1.1/packages/rtl-extra/src/unix/ folder then press ctrl + space code complied is work !! no error What can be problem ? project compiling and working normal, just code complied has error.

Please:
You may never copy files like that, you will end up with problems later on.

The problem you mention is indeed a lazarus code tools problem. To my knowledge, it uses a heuristic to find include files. The heuristic used in the rtl should also be applied to the rtl-extra package.

But: I tried your report with the latest IDE, but the IDE does not complain, so I assume the heuristic is doing it's work. Only Mattias can give more info.

Michael.

Reply by email

FreeMan
to Michael Van Canneyt

Sorry, I didn't write. I copied that files, just for test. I exactly know, its not solution.
thank you for help.

Michael Van Canneyt wrote 15 lines
Please: You may never copy files like that, you will end up with problems later on. The problem you mention is indeed a lazarus code tools problem. To my knowledge, it uses a heuristic to find include files. The heuristic used in the rtl should also be applied to the rtl-extra package. But: I tried your report with the latest IDE, but the IDE does not complain, so I assume the heuristic is doing it's work. Only Mattias can give more info. Michael.

Reply by email