Sign in Join

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

Mailing lists / lazarus / 2009-08

Compile error on ubuntu jaunty

18 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

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

Diwakoe

Dear all,

I have an application created using lazarus which run on windows and now I want to build into linux. Installing lazarus using .deb package (I'm using ubuntu jaunty) lazarus running well and after installling zeosdb component I try to create small application using zeosdbo component which only connect into mysql to test the component installation.

But compile process failed with this error :
"/usr/lib/lazarus/ideintf/texttools.pas(167,1) Error: Can't create object file: /usr/lib/lazarus/ideintf/texttools.o"

Is there any howto to fix this error?

Thanks,
Diwa

Semua rasa ada disini http://www.teoteblung.co.cc

Reply by email

dmitry boyarintsev
to Diwakoe
Is there any howto to fix this error?

writing to "/usr/lib/" requires root rights.

you need to change /usr/lib/lazarus write access
- or -
run as "sudo lazarus"

thanks,
dmitry

Reply by email

Diwakoe
to dmitry boyarintsev
dmitry boyarintsev wrote 9 lines
> Is there any howto to fix this error? writing to "/usr/lib/" requires root rights. you need to change /usr/lib/lazarus write access - or - run as "sudo lazarus" thanks, dmitry

Hi dmitry,

So, everytime run lazarus to create project must use root account or just when installing component?

Thanks,
Diwa

Semua rasa ada disini http://www.teoteblung.co.cc

Reply by email

dmitry boyarintsev
to Diwakoe
So, everytime run lazarus to create project must use root account or just when installing component?

only when you need to recompile LCL or Lazarus itself. I.e. : installing a new component.

When you're developing your own project you don't need to user root account, because you don't need to rebuild LCL or Lazarus.

thanks,
dmitry

Reply by email

Mattias Gaertner
to Diwakoe: On Tue, Aug 11, 2009 at 2:17 PM, dmitry So, everytime run lazarus to create project must…
Show quoted text 16 lines
On Tue, Aug 11, 2009 at 2:17 PM, dmitry boyarintsev wrote: >> Is there any howto to fix this error? > writing to "/usr/lib/" requires root rights. > > you need to change /usr/lib/lazarus write access > - or - > run as "sudo lazarus" > > thanks, > dmitry Hi dmitry, So, everytime run lazarus to create project must use root account or just when installing component?

Neither.

ideintf/texttools.pas is part of the IDEIntf package, which is only built when you compile the IDE. This is not needed when compiling a project and neither when installing a package.
I wonder, what you did exactly to get this error.

When you install a package the IDE has to rebuild only the lazarus executable. When you installed lazarus via deb package the lazarus folder is only writable by root. The IDE checks if the folder is writable and puts the new executable into ~/.lazarus/bin/.

So normally a normal user can install packages.

Mattias

Reply by email

Mattias Gaertner
to dmitry boyarintsev: only when you need to recompile LCL or Lazarus itself. I.e. : installing a new component.…
> So, everytime run lazarus to create project must use root account or > just when installing component? only when you need to recompile LCL or Lazarus itself. I.e. : installing a new component.

That would be a bug.
Have you reported it already?

When you're developing your own project you don't need to user root account, because you don't need to rebuild LCL or Lazarus.

Mattias

Reply by email

Diwakoe
Show quoted text 8 lines
On Tue, Aug 11, 2009 at 3:22 PM, Mattias Gaertner > > That would be a bug. > Have you reported it already? > > Mattias > Guys,

After I follow dmitry suggestion is to make write access to /usr/lib/lazarus and now I can compile my small project successfull.

Next is install rxfpc component into lazarus using root account, and I got error again (attached):

/usr/lib/lazarus/components/fpweb/cgiapp.pp(229,22) Error: Identifier
not found "FileExistsUTF8"

I'm so confuse installing component into lazarus 9.26.2 with fpc 2.2.2-8 updated using repository on ubuntu, any help is appreciated.

Thanks,
Diwa

Semua rasa ada disini http://www.teoteblung.co.cc

Reply by email

Diwakoe
to Diwakoe
Diwakoe wrote 11 lines
> Guys, After I follow dmitry suggestion is to make write access to /usr/lib/lazarus and now I can compile my small project successfull. Next is install rxfpc component into lazarus using root account, and I got error again (attached): /usr/lib/lazarus/components/fpweb/cgiapp.pp(229,22) Error: Identifier not found "FileExistsUTF8"

Guys,

Please help with any hints on this, I'm still stuck on this error.

Anyone who using ubuntu with lazarus please give me some clues.

Thanks,
Diwa

Semua rasa ada disini http://www.teoteblung.co.cc

Reply by email

Michael Van Canneyt
to Diwakoe
Diwakoe wrote 18 lines
On Tue, Aug 11, 2009 at 4:56 PM, Diwakoe wrote: >> Guys, > > After I follow dmitry suggestion is to make write access to > /usr/lib/lazarus and now I can compile my small project successfull. > > Next is install rxfpc component into lazarus using root account, and I > got error again (attached): > > /usr/lib/lazarus/components/fpweb/cgiapp.pp(229,22) Error: Identifier > not found "FileExistsUTF8" > Guys, Please help with any hints on this, I'm still stuck on this error. Anyone who using ubuntu with lazarus please give me some clues.

The function is in the fileutil.pas unit of lazarus. Please add fileutil to the uses clause of the cgiapp.pp file.

Michael.

Reply by email

Vincent Snijders
to Michael Van Canneyt
Michael Van Canneyt wrote 12 lines
>> /usr/lib/lazarus/components/fpweb/cgiapp.pp(229,22) Error: Identifier >> not found "FileExistsUTF8" >> > > Guys, > > Please help with any hints on this, I'm still stuck on this error. > > Anyone who using ubuntu with lazarus please give me some clues. The function is in the fileutil.pas unit of lazarus. Please add fileutil to the uses clause of the cgiapp.pp file.

I tried to compile that unit with fpc 2.2.4 using Lazarus -> Run -> Build file: C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(416,28) Error: Wrong number of parameters specified for call to "ProcessMultiPart" C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(418,26) Error: Wrong number of parameters specified for call to "ProcessURLEncoded" C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(445,36) Error: Wrong number of parameters specified for call to "ProcessQueryString" C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(599) Fatal: There were 3 errors compiling module, stopping

So, to me it seems this unit is more broken than a missing uses FileUtil.

Vincent

Reply by email

Diwakoe
to Vincent Snijders
Vincent Snijders wrote 16 lines
I tried to compile that unit with fpc 2.2.4 using Lazarus -> Run -> Build file: C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(416,28) Error: Wrong number of parameters specified for call to "ProcessMultiPart" C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(418,26) Error: Wrong number of parameters specified for call to "ProcessURLEncoded" C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(445,36) Error: Wrong number of parameters specified for call to "ProcessQueryString" C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(599) Fatal: There were 3 errors compiling module, stopping So, to me it seems this unit is more broken than a missing uses FileUtil. Vincent

This is a bug?

Diwa

Semua rasa ada disini http://www.teoteblung.co.cc

Reply by email

Mattias Gärtner
to Diwakoe

Zitat von Diwakoe :

Show quoted text 20 lines
On Fri, Aug 14, 2009 at 5:05 PM, Vincent Snijders wrote: > > I tried to compile that unit with fpc 2.2.4 using Lazarus -> Run -> Build > file: > C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(416,28) Error: > Wrong number of parameters specified for call to "ProcessMultiPart" > C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(418,26) Error: > Wrong number of parameters specified for call to "ProcessURLEncoded" > C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(445,36) Error: > Wrong number of parameters specified for call to "ProcessQueryString" > C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(599) Fatal: There > were 3 errors compiling module, stopping > > So, to me it seems this unit is more broken than a missing uses FileUtil. > > Vincent > This is a bug?

Just a note:
This unit has moved some months ago (in current development version of fpc and lazarus) from lazarus to fpc.
Can you use the daily snapshot or the svn version of fpc/lazarus?

Mattias

Reply by email

Diwakoe
to Mattias Gärtner

2009/8/14 Mattias G?rtner :

Show quoted text 8 lines
Just a note: This unit has moved some months ago (in current development version of fpc and lazarus) from lazarus to fpc. Can you use the daily snapshot or the svn version of fpc/lazarus? Mattias

I will try to use daily snapshot and inform you the result, but I'm still prefer use 0.9.26.2 version to build my application.

Thanks,
Diwa

Semua rasa ada disini http://www.teoteblung.co.cc

Reply by email

Mattias Gärtner
to Diwakoe

Zitat von Diwakoe :

Show quoted text 12 lines
2009/8/14 Mattias G?rtner : > > Just a note: > This unit has moved some months ago (in current development version of fpc > and lazarus) from lazarus to fpc. > Can you use the daily snapshot or the svn version of fpc/lazarus? > > Mattias > I will try to use daily snapshot and inform you the result, but I'm still prefer use 0.9.26.2 version to build my application.

Of course.
But afaik the fpweb package didn't work with 2.2.2. So you must use some of the newer units from the developer version of fpc/lazarus anyway.

Mattias

Reply by email

Vincent Snijders
to Mattias Gärtner: Zitat von Diwakoe : Just a note: This unit has moved some months ago (in current…
Mattias G?rtner wrote 29 lines
Zitat von Diwakoe : > On Fri, Aug 14, 2009 at 5:05 PM, Vincent > Snijders wrote: >> >> I tried to compile that unit with fpc 2.2.4 using Lazarus -> Run -> >> Build >> file: >> C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(416,28) Error: >> Wrong number of parameters specified for call to "ProcessMultiPart" >> C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(418,26) Error: >> Wrong number of parameters specified for call to "ProcessURLEncoded" >> C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(445,36) Error: >> Wrong number of parameters specified for call to "ProcessQueryString" >> C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(599) Fatal: >> There >> were 3 errors compiling module, stopping >> >> So, to me it seems this unit is more broken than a missing uses >> FileUtil. >> >> Vincent >> > > This is a bug? Just a note: This unit has moved some months ago (in current development version of fpc and lazarus) from lazarus to fpc.

That file is still in http://svn.freepascal.org/svn/lazarus/trunk/components/fpweb/

Should it be removed? Since fplazweb doesn't work fpc 2.2.4, there is no need for it to be in our repo, is there? Or can it be used with 2.2.4?

Vincent

Reply by email

Mattias Gärtner
to Vincent Snijders

Zitat von Vincent Snijders :

Show quoted text 34 lines
Mattias G?rtner schreef: > Zitat von Diwakoe : > >> On Fri, Aug 14, 2009 at 5:05 PM, Vincent >> Snijders wrote: >>> >>> I tried to compile that unit with fpc 2.2.4 using Lazarus -> Run -> Build >>> file: >>> C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(416,28) Error: >>> Wrong number of parameters specified for call to "ProcessMultiPart" >>> C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(418,26) Error: >>> Wrong number of parameters specified for call to "ProcessURLEncoded" >>> C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(445,36) Error: >>> Wrong number of parameters specified for call to "ProcessQueryString" >>> C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(599) Fatal: There >>> were 3 errors compiling module, stopping >>> >>> So, to me it seems this unit is more broken than a missing uses FileUtil. >>> >>> Vincent >>> >> >> This is a bug? > > Just a note: > This unit has moved some months ago (in current development version > of fpc and lazarus) from lazarus to fpc. That file is still in http://svn.freepascal.org/svn/lazarus/trunk/components/fpweb/ Should it be removed? Since fplazweb doesn't work fpc 2.2.4, there is no need for it to be in our repo, is there? Or can it be used with 2.2.4?

Yes. I guess, it should be removed.

Michael, your advice?

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gärtner
Mattias G?rtner wrote 43 lines
Zitat von Vincent Snijders : > Mattias G?rtner schreef: >> Zitat von Diwakoe : >> >>> On Fri, Aug 14, 2009 at 5:05 PM, Vincent >>> Snijders wrote: >>>> >>>> I tried to compile that unit with fpc 2.2.4 using Lazarus -> Run -> Build >>>> file: >>>> C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(416,28) Error: >>>> Wrong number of parameters specified for call to "ProcessMultiPart" >>>> C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(418,26) Error: >>>> Wrong number of parameters specified for call to "ProcessURLEncoded" >>>> C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(445,36) Error: >>>> Wrong number of parameters specified for call to "ProcessQueryString" >>>> C:\lazarus\source\git\lazarus\components\fpweb\cgiapp.pp(599) Fatal: There >>>> were 3 errors compiling module, stopping >>>> >>>> So, to me it seems this unit is more broken than a missing uses FileUtil. >>>> >>>> Vincent >>>> >>> >>> This is a bug? >> >> Just a note: >> This unit has moved some months ago (in current development version >> of fpc and lazarus) from lazarus to fpc. > > That file is still in > http://svn.freepascal.org/svn/lazarus/trunk/components/fpweb/ > > Should it be removed? Since fplazweb doesn't work fpc 2.2.4, there > is no need for it to be in our repo, is there? Or can it be used > with 2.2.4? Yes. I guess, it should be removed. Michael, your advice?

cgiapp can be removed.

Michael.

Reply by email