Sign in Join

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

Mailing lists / lazarus / 2002-06

Newbie Q : Can't find classes.pas...

44 messages · 12 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner
to Mattias Gaertner: On Sat, 29 Jun 2002 08:56:12 +0200 That's already in the FAQ. Perhaps we should add a…
Show quoted text 25 lines
Here is the result of ppc386 -vt bogus davidc]$ fpc -vt bogus Free Pascal Compiler version 1.0.6 [2002/04/30] for i386 Copyright (c) 1993-2002 by Florian Klaempfl Compiler: /usr/local/lib/fpc/1.0.6/ppc386 Target OS: Linux for i386 Using executable path: /usr/local/lib/fpc/1.0.6/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ Using unit path: /usr/local/lib/fpc/1.0.6/ [...] Compiling bogus Fatal: Can't open file bogus There is no gtk here. What do I change to get it to find it ? This is an excerpt from /etc/fpc.cfg, looking at the -Fu lines. # searchpath for units and other system dependent things -Fu/usr/local/lib/fpc/1.0.6/units/$target -Fu/usr/local/lib/fpc/1.0.6/units/$target/* -Fu/usr/local/lib/fpc/1.0.6/units/$target/rtl [...] The $target/* looks like it should get to the gtk directory, don't know why it doesn't...

Either the directories are not there, there is another config or this a compiler bug. Plz try to manually add the path:
ppc386 -vt '-Fu/usr/local/lib/fpc/1.0.6/units/$target/*' bogus

If there is now the gtk dir, then your config is buggy or you have a double config. If not, then you should double check, that the path is correct.

Weird thing. If we find the solution we should add this to the FAQ.

Mattias

Reply by email

David Creelman
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…

Hi,

Sorry to keep bothering the list.

This is still an issue for me. After removing fpc as an rpm and downloading the fpc-1.0.6.ELF.tar file and installing it (said yes to all options), tried make clean all again and got the same error. The compiler seems to be complaining correctly that it can't find the unit gtk. From all of the directories it searches, the gtk directory is not in the list
make[2]: Entering directory
`/home/davidc/develop/lazarus/components/synedit'
/bin/rm -f ../units/allunits.ppu
/usr/local/bin/ppc386 -gl -Fu../../lcl/units/gtk -Fu../../lcl/units -Fu. -Fu/usr/local/lib/fpc/1.0.6/units/linux/rtl
-Fu/usr/local/lib/fpc/1.0.6/units/linux/paszlib
-Fu/usr/local/lib/fpc/1.0.6/units/linux/inet
-Fu/usr/local/lib/fpc/1.0.6/units/linux/fcl
-Fu/usr/local/lib/fpc/1.0.6/units/linux/regexpr
-Fu/usr/local/lib/fpc/1.0.6/units/linux/mysql
-Fu/usr/local/lib/fpc/1.0.6/units/linux/ibase -FU../units -Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 -Fl/usr/X11R6/lib -Fl/usr/lib/qt2/lib -Fl/usr/local/lib/wine -Fl/usr/local/lib -di386 allunits.pp
Free Pascal Compiler version 1.0.6 [2002/04/30] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386
Compiling allunits.pp
Compiling syntextdrawer.pp
gtkint.pp(74,11) Fatal: Can't find unit GTK
make[2]: *** [allunits.ppu] Error 1
make[2]: Leaving directory
`/home/davidc/develop/lazarus/components/synedit'
make[1]: *** [synedit_all] Error 2
make[1]: Leaving directory `/home/davidc/develop/lazarus/components' make: *** [components] Error 2

I'm not on an NFS share, I have a correctly configured /etc/fpc.cfg and gtk.ppu is in /usr/local/lib/fpc/1.0.6/units/linux/gtk, but is not found unless I copy it into the lazarus gtk directory.

DC

Mattias Gaertner wrote 25 lines
On Sat, 29 Jun 2002 08:56:12 +0200 Michal Bukovjan wrote: > Also note that the "missing" gtk.ppu was solved for me when I deleted a > stale /etc/ppc386.cfg (now only /etc/fpc.cfg should it used). Look if > you have the /etc/ppc386.cfg and if so, remove it and see what happens. That's already in the FAQ. Perhaps we should add a quick installation guide with the following: - where to get the fpc package (binaries+sources) - installing fpc - getting lazarus sources (tar and cvs) - compiling + FAQs - Some configuration hints for the IDE (paths, key mapping) any volunteers? Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Michal Bukovjan
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…

Also note that the "missing" gtk.ppu was solved for me when I deleted a stale /etc/ppc386.cfg (now only /etc/fpc.cfg should it used). Look if you have the /etc/ppc386.cfg and if so, remove it and see what happens.

Michal

David Creelman wrote 88 lines
Hi Mattias, Here it is. The only change I made was in Makefile.fpc to try to get it to find gtk unitdir=lcl/units /usr/lib/fpc/1.0.6/units/linux/gtk lcl/u.... This didn't work, copying the ppu did. I'm using the 1.0.6 fpc rpm and downloaded and installed the source rpm as well. Cheers DC On Sat, 2002-06-29 at 01:14, Mattias Gaertner wrote: >On 29 Jun 2002 00:46:48 +1000 >David Creelman wrote: > > > >>>Also you mentioned, that you just copied gtk.pp. I guess you ment gtk.ppu. >>> >>> >>Yes. >> >> >>>What about the other files in the /usr/lib/fpc/1.0.6/units/linux/gtk/ directory? >>> >>> >>Yes I couldn't get it to compile until I copied over the .ppu to the >>./lcl/units/gtk/ directory. The Makefile didn't seem to find them. I >>looked at the directions in the FAQ and everything was okay, so I >>thought I'd try copying the .ppus and it worked..... >> >> >Hmm. You are now the third person with the gtk.ppu problem. It seems, that the compiler sometimes don't like it's own units. It always disappears mysteriously. Can you add the -va option to your fpc.cfg and do a 'make clean all' and send me the log plz? Perhaps I find out what the problem is. >This 'make clean all' should erase your .ppus in lcl/units/gtk. > > > > >>>>I don't have too much spare time, but I'd like to tinker. What needs >>>>doing ? >>>> >>>> >>>A lot of things. >>>Do you like to help with the IDE (form editing, codetools, source editor, debugger, documentation), the LCL (components, images, docs) or the interfaces (components, images, docs)? >>> >>> >>Are events working ? I tried to setup a FormShow event and it didn't >>seem to work.... >> >>Form editing sounds interesting. There are lots of todos in >>customformeditor.pas, the code looks pretty complicated. I'll give it a >>go though. >> >> >It would be nice, if you would send me comments/notes/annotations for the code. So that the next one will have it easier to participate. > > > > >>Is this where I'd start looking ? >> >> >Yes. Almost all form editing code can be found in the designer/ directory and in customformeditor.pp and main.pp. I'm currently busy with the gtk2 bindings, but I hope to return to the form editing next week. > > > > >>....Also is there a unit test suite set up ??? >> >> >No. But we definitely need one. Does anyone know a nice one? > > >Mattias > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus > >

Reply by email

Marc Weustink
to Mattias Gaertner: On Sat, 29 Jun 2002 08:56:12 +0200 That's already in the FAQ. Perhaps we should add a…
David Creelman wrote
Hi, Sorry to keep bothering the list.

No problem

[snip]

Show quoted text 16 lines
Free Pascal Compiler version 1.0.6 [2002/04/30] for i386 Copyright (c) 1993-2002 by Florian Klaempfl Target OS: Linux for i386 Compiling allunits.pp Compiling syntextdrawer.pp gtkint.pp(74,11) Fatal: Can't find unit GTK make[2]: *** [allunits.ppu] Error 1 make[2]: Leaving directory `/home/davidc/develop/lazarus/components/synedit' make[1]: *** [synedit_all] Error 2 make[1]: Leaving directory `/home/davidc/develop/lazarus/components' make: *** [components] Error 2 I'm not on an NFS share, I have a correctly configured /etc/fpc.cfg and gtk.ppu is in /usr/local/lib/fpc/1.0.6/units/linux/gtk, but is not found unless I copy it into the lazarus gtk directory.

As we wrote earlier, the gtk unit should not be needed in any dir outside the interfaces dirs.

Anyhow, can you issue make OPT=-vat in the synedit dir and send me the output.

Marc

Show quoted text 34 lines
DC On Sat, 2002-06-29 at 17:55, Mattias Gaertner wrote: > On Sat, 29 Jun 2002 08:56:12 +0200 > Michal Bukovjan wrote: > > > Also note that the "missing" gtk.ppu was solved for me when I deleted a > > stale /etc/ppc386.cfg (now only /etc/fpc.cfg should it used). Look if > > you have the /etc/ppc386.cfg and if so, remove it and see what happens. > > That's already in the FAQ. > > Perhaps we should add a quick installation guide with the following: > - where to get the fpc package (binaries+sources) > - installing fpc > - getting lazarus sources (tar and cvs) > - compiling + FAQs > - Some configuration hints for the IDE (paths, key mapping) > > any volunteers? > > > Mattias > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

David Creelman
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…

Hi Mattias,

Thanks for the pointers.

I checked the FAQ and it looked like my path was okay. Tried again and it still didn't work, so I checked the directories that were searched when the compiler ran and the fpc gtk directory (/usr/lib/fpc/etc...) wasn't in there. It was trying to use the lazarus lcl/gtk directory which was empty.... I ended up copying the gtk.pp file into the lazarus/lcl/gtk directory, then it compiled.

Now the IDE runs. I managed to change the compiler options under run-> and got the demo project to run.

I don't have too much spare time, but I'd like to tinker. What needs doing ?

Cheers
DC

Mattias Gaertner wrote 26 lines
On 28 Jun 2002 00:40:13 +1000 David Creelman wrote: > Hi, > > I click run and lazarus can't find classes.pas. > > There is a classes.ppu in the fpc path, but I don't know what this is. I > suspect I need to do add this to the project somehow. classes.ppu is automatically in the searchpath of the compiler. Did you try the FAQ? > Also, from last email I guess it won't actually run in the IDE ? only > compile ? Default is to compile on Ctrl+F9 and compile+run on F9. Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Mattias Gaertner
to Mattias Gaertner: On Sat, 29 Jun 2002 08:56:12 +0200 That's already in the FAQ. Perhaps we should add a…
Show quoted text 31 lines
> Plz do a > > strace ppc386 -vt bogus > > After the first page, you will see, what cfg files are tried and which one is loaded. > Does it use /etc/fpc.cfg? [snip] readlink("/proc/7770/exe", "/usr/local/lib/fpc/1.0.6/ppc386", 255) = 31 signal(SIGSEGV, 0x80f8050) = 0x8102810 signal(SIGINT, 0x80f8050) = 0 (SIG_DFL) signal(SIGFPE, 0x80f8050) = 0x8102810 stat("ppc386.cfg", 0xbfffed48) = -1 ENOENT (No such file or directory) stat("/home/davidc/.ppc386.cfg", 0xbfffed48) = -1 ENOENT (No such file or directory) stat("/etc/ppc386.cfg", 0xbfffed48) = -1 ENOENT (No such file or directory) stat("fpc.cfg", 0xbfffed48) = -1 ENOENT (No such file or directory) stat("/home/davidc/.fpc.cfg", {st_mode=S_IFREG|0664, st_size=3810, ...}) = 0 open("/home/davidc/.fpc.cfg", O_RDONLY) = 3 [snip] I moved .fpc.cfg to blah and went into my lazarus dir and it recompiled. That must be it. I didn't do a search for .fpc.cfg ! Thanks for your help with that one Mattias. The compiler seems to want to find ppc386.cfg rather than fpc.cfg in my setup. Still it all compiles now.

Hmm, this should be added to the FAQ. But I doubt that an strace output is a nice answer. Is it possible to ask the compiler, which config file it has parsed?

Mattias

Reply by email

Marc Weustink
to Mattias Gaertner: On 29 Jun 2002 00:46:48 +1000 Hmm. You are now the third person with the gtk.ppu problem.…
David Creelman wrote 9 lines
Hi Mattias, Here it is. The only change I made was in Makefile.fpc to try to get it to find gtk unitdir=lcl/units /usr/lib/fpc/1.0.6/units/linux/gtk lcl/u.... This didn't work,

Luckely it didn't :-) (you need to run fpcmake after changing Mekefile.fpc)

gtk shouldn't be needed here

copying the ppu did. I'm using the 1.0.6 fpc rpm and downloaded and installed the source rpm as well.

Hmm..... from your output:

Show quoted text 18 lines
make[2]: Entering directory `/home/davidc/develop/lazarus/components/synedit' /bin/rm -f ../units/allunits.ppu /usr/bin/ppc386 -gl -Fu../../lcl/units/gtk -Fu../../lcl/units -Fu. -Fu/usr/lib/fpc/1.0.6/units/linux/rtl -Fu/usr/lib/fpc/1.0.6/units/linux/paszlib -Fu/usr/lib/fpc/1.0.6/units/linux/inet -Fu/usr/lib/fpc/1.0.6/units/linux/fcl -Fu/usr/lib/fpc/1.0.6/units/linux/regexpr -Fu/usr/lib/fpc/1.0.6/units/linux/mysql -Fu/usr/lib/fpc/1.0.6/units/linux/ibase -FU../units -Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 -Fl/usr/X11R6/lib -Fl/usr/lib/qt2/lib -Fl/usr/local/lib/wine -Fl/usr/local/lib -di386 allunits.pp Free Pascal Compiler version 1.0.6 [2002/05/23] for i386 Copyright (c) 1993-2002 by Florian Klaempfl Target OS: Linux for i386 Compiling allunits.pp Compiling syntextdrawer.pp gtkint.pp(74,11) Fatal: Can't find unit GTK

Why is gtkint complaining here... gtkint is part of the interface for GTK. This directory is part of components and should be independent of the platform. Thats why there is nu reference to a gtk dir. It seems to me that somehow there is a platform dependency in SynEdit which shouldn't be there.

Marc

Reply by email

David Creelman
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…

Hi Mattias,

Here it is.

The only change I made was in Makefile.fpc to try to get it to find gtk

unitdir=lcl/units /usr/lib/fpc/1.0.6/units/linux/gtk lcl/u....

This didn't work, copying the ppu did. I'm using the 1.0.6 fpc rpm and downloaded and installed the source rpm as well.

Cheers
DC

Mattias Gaertner wrote 46 lines
On 29 Jun 2002 00:46:48 +1000 David Creelman wrote: > > Also you mentioned, that you just copied gtk.pp. I guess you ment gtk.ppu. > Yes. > > What about the other files in the /usr/lib/fpc/1.0.6/units/linux/gtk/ directory? > Yes I couldn't get it to compile until I copied over the .ppu to the > ./lcl/units/gtk/ directory. The Makefile didn't seem to find them. I > looked at the directions in the FAQ and everything was okay, so I > thought I'd try copying the .ppus and it worked..... Hmm. You are now the third person with the gtk.ppu problem. It seems, that the compiler sometimes don't like it's own units. It always disappears mysteriously. Can you add the -va option to your fpc.cfg and do a 'make clean all' and send me the log plz? Perhaps I find out what the problem is. This 'make clean all' should erase your .ppus in lcl/units/gtk. > > > I don't have too much spare time, but I'd like to tinker. What needs > > > doing ? > > > > A lot of things. > > Do you like to help with the IDE (form editing, codetools, source editor, debugger, documentation), the LCL (components, images, docs) or the interfaces (components, images, docs)? > Are events working ? I tried to setup a FormShow event and it didn't > seem to work.... > > Form editing sounds interesting. There are lots of todos in > customformeditor.pas, the code looks pretty complicated. I'll give it a > go though. It would be nice, if you would send me comments/notes/annotations for the code. So that the next one will have it easier to participate. > Is this where I'd start looking ? Yes. Almost all form editing code can be found in the designer/ directory and in customformeditor.pp and main.pp. I'm currently busy with the gtk2 bindings, but I hope to return to the form editing next week. > ....Also is there a unit test suite set up ??? No. But we definitely need one. Does anyone know a nice one? Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

/bin/rm -f lazarus lazarus.o libplazarus.a
/bin/rm -f
/bin/rm -f fpcmade.lnx Package.fpc ppas.sh script.res link.res /bin/rm -f lazarus lazarus.o libplazarus.a
/bin/rm -f *.o *.ppu *.rst *.s *.a *.so *.ppl
/bin/rm -rf *.sl
/bin/rm -f fpcmade.lnx Package.fpc ppas.sh script.res link.res make -C lcl cleanall
make[1]: Entering directory `/home/davidc/develop/lazarus/lcl' /bin/rm -f units/allunits.ppu units/arrow.ppu units/buttons.ppu units/calendar.ppu units/clipbrd.ppu units/clistbox.ppu units/comctrls.ppu units/commctrl.ppu units/controls.ppu units/dialogs.ppu units/dynhasharray.ppu units/extctrls.ppu units/filectrl.ppu units/forms.ppu units/graphics.ppu units/graphtype.ppu units/imglist.ppu units/interfacebase.ppu units/lazqueue.ppu units/lcllinux.ppu units/lcltype.ppu units/lmessages.ppu units/lresources.ppu units/menus.ppu units/messages.ppu units/registry.ppu units/spin.ppu units/stdctrls.ppu units/toolwin.ppu units/utrace.ppu units/vclglobals.ppu /bin/rm -f units/arrow.o units/buttons.o units/calendar.o units/clipbrd.o units/clistbox.o units/comctrls.o units/controls.o units/dialogs.o units/dynhasharray.o units/extctrls.o units/filectrl.o units/forms.o units/graphics.o units/imglist.o units/interfacebase.o units/lazqueue.o units/lcllinux.o units/lcltype.o units/lmessages.o units/lresources.o units/menus.o units/registry.o units/spin.o units/stdctrls.o units/toolwin.o units/utrace.o units/vclglobals.o /bin/rm -f units/dialogs.rst
/bin/rm -f units/arrow.o units/buttons.o units/calendar.o units/clipbrd.o units/clistbox.o units/comctrls.o units/controls.o units/dialogs.o units/dynhasharray.o units/extctrls.o units/filectrl.o units/forms.o units/graphics.o units/imglist.o units/interfacebase.o units/interfaces.o units/lazqueue.o units/lcllinux.o units/lcltype.o units/lmessages.o units/lresources.o units/menus.o units/registry.o units/spin.o units/stdctrls.o units/toolwin.o units/utrace.o units/vclglobals.o units/allunits.ppu units/arrow.ppu units/buttons.ppu units/calendar.ppu units/clipbrd.ppu units/clistbox.ppu units/comctrls.ppu units/commctrl.ppu units/controls.ppu units/dialogs.ppu units/dynhasharray.ppu units/extctrls.ppu units/filectrl.ppu units/forms.ppu units/graphics.ppu units/graphtype.ppu units/imglist.ppu units/interfacebase.ppu units/lazqueue.ppu units/lcllinux.ppu units/lcltype.ppu units/lmessages.ppu units/lresources.ppu units/menus.ppu units/messages.ppu units/registry.ppu units/spin.ppu units/stdctrls.ppu units/toolwin.ppu units/utrace.ppu units/vclglobals.ppu units/dialogs.rstarrow.o buttons.o calendar.o clipbrd.o clistbox.o comctrls.o controls.o dialogs.o dynhasharray.o extctrls.o filectrl.o forms.o graphics.o imglist.o interfacebase.o lazqueue.o lcllinux.o lcltype.o lmessages.o lresources.o menus.o spin.o stdctrls.o toolwin.o utrace.o vclglobals.o arrow.ppu buttons.ppu calendar.ppu clipbrd.ppu clistbox.ppu comctrls.ppu commctrl.ppu controls.ppu dialogs.ppu dynhasharray.ppu extctrls.ppu filectrl.ppu forms.ppu graphics.ppu graphtype.ppu imglist.ppu interfacebase.ppu lazqueue.ppu lcllinux.ppu lcltype.ppu lmessages.ppu lresources.ppu menus.ppu messages.ppu spin.ppu stdctrls.ppu toolwin.ppu utrace.ppu vclglobals.ppu dialogs.rst /bin/rm -f fpcmade.lnx Package.fpc ppas.sh script.res link.res /bin/rm -f *.o *.ppu *.rst *.s *.a *.so *.ppl
/bin/rm -rf *.sl
/bin/rm -f fpcmade.lnx Package.fpc ppas.sh script.res link.res make -C interfaces cleanall
make[2]: Entering directory `/home/davidc/develop/lazarus/lcl/interfaces' make -C gtk cleanall
make[3]: Entering directory `/home/davidc/develop/lazarus/lcl/interfaces/gtk' /bin/rm -f ../../units/gtk/interfaces.ppu ../../units/gtk/gtkdef.ppu ../../units/gtk/gtkint.ppu ../../units/gtk/gtkwinapiwindow.ppu /bin/rm -f ../../units/gtk/interfaces.o ../../units/gtk/gtkdef.o ../../units/gtk/gtkint.o ../../units/gtk/gtkwinapiwindow.o /bin/rm -f ../../units/gtk/gdk.o ../../units/gtk/glib.o ../../units/gtk/gtkdef.o ../../units/gtk/gtkglarea.o ../../units/gtk/gtkint.o ../../units/gtk/gtk.o ../../units/gtk/gtkwinapiwindow.o ../../units/gtk/interfaces.o ../../units/gtk/keymap.o ../../units/gtk/gdk.ppu ../../units/gtk/glib.ppu ../../units/gtk/gmodule.ppu ../../units/gtk/gtkdef.ppu ../../units/gtk/gtkglarea.ppu ../../units/gtk/gtkint.ppu ../../units/gtk/gtk.ppu ../../units/gtk/gtkwinapiwindow.ppu ../../units/gtk/interfaces.ppu ../../units/gtk/keymap.ppu /bin/rm -f fpcmade.lnx Package.fpc ppas.sh script.res link.res /bin/rm -f *.o *.ppu *.rst *.s *.a *.so *.ppl
/bin/rm -rf *.sl
/bin/rm -f fpcmade.lnx Package.fpc ppas.sh script.res link.res make[3]: Leaving directory `/home/davidc/develop/lazarus/lcl/interfaces/gtk' make[2]: Leaving directory `/home/davidc/develop/lazarus/lcl/interfaces' make[1]: Leaving directory `/home/davidc/develop/lazarus/lcl' make -C components cleanall
make[1]: Entering directory `/home/davidc/develop/lazarus/components' /bin/rm -f ./units/avl_tree.o ./units/basiccodetools.o ./units/codeatom.o ./units/codecache.o ./units/codecompletiontool.o ./units/codetoolmanager.o ./units/codetoolmemmanager.o ./units/codetoolsstrconsts.o ./units/codetree.o ./units/customcodetool.o ./units/definetemplates.o ./units/eventcodetool.o ./units/expreval.o ./units/fileprocs.o ./units/finddeclarationcache.o ./units/finddeclarationtool.o ./units/keywordfunclists.o ./units/linkscanner.o ./units/memcheck.o ./units/methodjumptool.o ./units/multikeywordlisttool.o ./units/pascalparsertool.o ./units/resourcecodetool.o ./units/sourcechanger.o ./units/sourcelog.o ./units/stdcodetools.o ./units/syncompletion.o ./units/syneditautocomplete.o ./units/synedithighlighter.o ./units/syneditkeycmds.o ./units/syneditmiscclasses.o ./units/syneditmiscprocs.o ./units/synedit.o ./units/syneditsearch.o ./units/synedittextbuffer.o ./units/synhighlightercpp.o ./units/synhighlighterhtml.o ./units/synhighlighterlfm.o ./units/synhighlighterpas.o ./units/synhighlighterperl.o ./units/synhighlighterxml.o ./units/syntextdrawer.o ./units/allcodetoolunits.ppu ./units/allunits.ppu ./units/avl_tree.ppu ./units/basiccodetools.ppu ./units/codeatom.ppu ./units/codecache.ppu ./units/codecompletiontool.ppu ./units/codetoolmanager.ppu ./units/codetoolmemmanager.ppu ./units/codetoolsstrconsts.ppu ./units/codetree.ppu ./units/customcodetool.ppu ./units/definetemplates.ppu ./units/eventcodetool.ppu ./units/expreval.ppu ./units/fileprocs.ppu ./units/finddeclarationcache.ppu ./units/finddeclarationtool.ppu ./units/keywordfunclists.ppu ./units/linkscanner.ppu ./units/memcheck.ppu ./units/methodjumptool.ppu ./units/multikeywordlisttool.ppu ./units/pascalparsertool.ppu ./units/resourcecodetool.ppu ./units/sourcechanger.ppu ./units/sourcelog.ppu ./units/stdcodetools.ppu ./units/syncompletion.ppu ./units/syneditautocomplete.ppu ./units/synedithighlighter.ppu ./units/syneditkeycmds.ppu ./units/syneditmiscclasses.ppu ./units/syneditmiscprocs.ppu ./units/synedit.ppu ./units/syneditsearch.ppu ./units/syneditstrconst.ppu ./units/synedittextbuffer.ppu ./units/synedittypes.ppu ./units/synhighlightercpp.ppu ./units/synhighlighterhtml.ppu ./units/synhighlighterlfm.ppu ./units/synhighlighterpas.ppu ./units/synhighlighterperl.ppu ./units/synhighlighterxml.ppu ./units/syntextdrawer.ppu ./units/codetoolsstrconsts.rst /bin/rm -f fpcmade.lnx Package.fpc ppas.sh script.res link.res make -C synedit clean
make[2]: Entering directory `/home/davidc/develop/lazarus/components/synedit' /bin/rm -f ../units/allunits.ppu ../units/syntextdrawer.ppu ../units/syneditkeycmds.ppu ../units/synedittypes.ppu ../units/syneditstrconst.ppu ../units/syneditsearch.ppu ../units/syneditmiscprocs.ppu ../units/syneditmiscclasses.ppu ../units/synedittextbuffer.ppu ../units/synedit.ppu ../units/synedithighlighter.ppu /bin/rm -f
/bin/rm -f fpcmade.lnx Package.fpc ppas.sh script.res link.res make[2]: Leaving directory `/home/davidc/develop/lazarus/components/synedit' make -C codetools clean
make[2]: Entering directory `/home/davidc/develop/lazarus/components/codetools' /bin/rm -f ../units/allcodetoolunits.ppu ../units/codetoolsstrconsts.ppu ../units/avl_tree.ppu ../units/basiccodetools.ppu ../units/codecache.ppu ../units/sourcelog.ppu ../units/customcodetool.ppu ../units/multikeywordlisttool.ppu ../units/pascalparsertool.ppu ../units/finddeclarationtool.ppu ../units/stdcodetools.ppu ../units/resourcecodetool.ppu ../units/methodjumptool.ppu ../units/eventcodetool.ppu ../units/codecompletiontool.ppu ../units/codeatom.ppu ../units/codetree.ppu ../units/definetemplates.ppu ../units/expreval.ppu ../units/keywordfunclists.ppu ../units/linkscanner.ppu ../units/sourcechanger.ppu ../units/fileprocs.ppu /bin/rm -f
/bin/rm -f fpcmade.lnx Package.fpc ppas.sh script.res link.res make[2]: Leaving directory `/home/davidc/develop/lazarus/components/codetools' make[1]: Leaving directory `/home/davidc/develop/lazarus/components' /bin/rm -f aboutfrm.o abstractformeditor.o aligncompsdlg.o basedebugmanager.o breakpointsdlg.o buildlazdialog.o callstackdlg.o cmdlinedebugger.o codetemplatedialog.o codetoolsdefines.o codetoolsdefpreview.o codetoolsoptions.o columndlg.o compiler.o compileroptions.o compreg.o controlselection.o customformeditor.o dbgoutputform.o dbgutils.o debuggerdlg.o debugger.o debugmanager.o designer.o editdefinetree.o editoroptions.o environmentopts.o exttooldialog.o exttooleditdlg.o findinfilesdlg.o findreplacedialog.o formeditor.o gdbmidebugger.o idecomp.o ideoptiondefs.o ideprocs.o inputfiledialog.o inputhistory.o jitforms.o keymapping.o lazarusidestrconsts.o lazarus.o lazconf.o localsdlg.o macropromptdlg.o mainbar.o main.o miscoptions.o msgview.o newprojectdlg.o objectinspector.o outputfilter.o patheditordlg.o project1.o projectdefs.o project.o projectopts.o propedits.o runparamsopts.o scalecompsdlg.o sizecompsdlg.o splash.o sysvaruseroverridedlg.o transfermacros.o unit1.o uniteditor.o unitinfodlg.o viewunit_dlg.o watchesdlg.o watchpropertydlg.o wordcompletion.o /bin/rm -f aboutfrm.ppu abstractformeditor.ppu aligncompsdlg.ppu basedebugmanager.ppu breakpointsdlg.ppu buildlazdialog.ppu callstackdlg.ppu cmdlinedebugger.ppu codetemplatedialog.ppu codetoolsdefines.ppu codetoolsdefpreview.ppu codetoolsoptions.ppu columndlg.ppu compileroptions.ppu compiler.ppu compreg.ppu controlselection.ppu customformeditor.ppu dbgoutputform.ppu dbgutils.ppu debuggerdlg.ppu debugger.ppu debugmanager.ppu designer.ppu editdefinetree.ppu editoroptions.ppu environmentopts.ppu exttooldialog.ppu exttooleditdlg.ppu findinfilesdlg.ppu findreplacedialog.ppu formeditor.ppu gdbmidebugger.ppu idecomp.ppu ideoptiondefs.ppu ideprocs.ppu inputfiledialog.ppu inputhistory.ppu jitforms.ppu keymapping.ppu lazarusidestrconsts.ppu lazconf.ppu localsdlg.ppu macropromptdlg.ppu mainbar.ppu main.ppu miscoptions.ppu msgview.ppu newprojectdlg.ppu objectinspector.ppu outputfilter.ppu patheditordlg.ppu projectdefs.ppu projectopts.ppu project.ppu propedits.ppu runparamsopts.ppu scalecompsdlg.ppu sizecompsdlg.ppu splash.ppu sysvaruseroverridedlg.ppu transfermacros.ppu unit1.ppu uniteditor.ppu unitinfodlg.ppu viewunit_dlg.ppu watchesdlg.ppu watchpropertydlg.ppu wordcompletion.ppu /bin/rm -f
/bin/rm -f
/bin/rm -f
/bin/rm -f
make -C lcl all
make[1]: Entering directory `/home/davidc/develop/lazarus/lcl' /bin/rm -f units/allunits.ppu
/usr/bin/ppc386 -gl -Fuinterfaces/abstract -Fu. -Fu/usr/lib/fpc/1.0.6/units/linux/rtl -Fu/usr/lib/fpc/1.0.6/units/linux/paszlib -Fu/usr/lib/fpc/1.0.6/units/linux/inet -Fu/usr/lib/fpc/1.0.6/units/linux/fcl -Fu/usr/lib/fpc/1.0.6/units/linux/mysql -Fu/usr/lib/fpc/1.0.6/units/linux/ibase -Fiinclude -FUunits -Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 -Fl/usr/X11R6/lib -Fl/usr/lib/qt2/lib -Fl/usr/local/lib/wine -Fl/usr/local/lib -di386 allunits.pp Free Pascal Compiler version 1.0.6 [2002/05/23] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386
Compiling allunits.pp
Compiling interfacebase.pp
Compiling lcllinux.pp
Compiling lcltype.pp
Compiling vclglobals.pp
Assembling vclglobals
Assembling lcltype
Compiling graphtype.pp
Compiling ./interfaces/abstract/interfaces.pp
Compiling interfacebase.pp
Compiling controls.pp
Compiling graphics.pp
Compiling lmessages.pp
Assembling lmessages
Compiling lresources.pp
Assembling lresources
Compiling controls.pp
Compiling imglist.pp
Assembling imglist
Compiling utrace.pp
Assembling utrace
Compiling menus.pp
Compiling ./interfaces/abstract/interfaces.pp
Compiling interfacebase.pp
Compiling controls.pp
Compiling forms.pp
Compiling buttons.pp
Compiling stdctrls.pp
Assembling stdctrls
Compiling messages.pp
Assembling buttons
Compiling ./interfaces/abstract/interfaces.pp
Compiling interfacebase.pp
Assembling interfacebase
Assembling interfaces
Compiling dialogs.pp
Compiling filectrl.pp
Assembling filectrl
Writing Resource String Table file: units/dialogs.rst Assembling dialogs
Compiling extctrls.pp
Assembling extctrls
Assembling forms
Assembling controls
Assembling menus
Compiling clipbrd.pp
Assembling clipbrd
Assembling graphics
Assembling lcllinux
Compiling registry.pp
Assembling registry
Compiling calendar.pp
Assembling calendar
Compiling spin.pp
Assembling spin
Compiling comctrls.pp
Compiling toolwin.pp
Assembling toolwin
Compiling commctrl.pp
Assembling comctrls
Compiling arrow.pp
Assembling arrow
Compiling dynhasharray.pp
Assembling dynhasharray
Compiling clistbox.pp
Assembling clistbox
Compiling lazqueue.pp
Assembling lazqueue
50519 Lines compiled, 4.6 sec
make -C interfaces all
make[2]: Entering directory `/home/davidc/develop/lazarus/lcl/interfaces' make -C gtk all
make[3]: Entering directory `/home/davidc/develop/lazarus/lcl/interfaces/gtk' /bin/rm -f ../../units/gtk/interfaces.ppu ../../units/interfaces.ppu /usr/bin/ppc386 -gl -Fu../../units -Fu. -Fu/usr/lib/fpc/1.0.6/units/linux/rtl -Fu/usr/lib/fpc/1.0.6/units/linux/paszlib -Fu/usr/lib/fpc/1.0.6/units/linux/inet -Fu/usr/lib/fpc/1.0.6/units/linux/fcl -Fu/usr/lib/fpc/1.0.6/units/linux/gtk -Fu/usr/lib/fpc/1.0.6/units/linux/mysql -Fu/usr/lib/fpc/1.0.6/units/linux/ibase -Fu/usr/lib/fpc/1.0.6/units/linux/x11 -Fu/usr/lib/fpc/1.0.6/units/linux/opengl -FU../../units/gtk -Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 -Fl/usr/X11R6/lib -Fl/usr/lib/qt2/lib -Fl/usr/local/lib/wine -Fl/usr/local/lib -di386 interfaces.pp Free Pascal Compiler version 1.0.6 [2002/05/23] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386
Compiling interfaces.pp
Compiling interfaces.pp
Compiling interfaces.pp
Compiling interfaces.pp
Compiling gtkint.pp
Compiling gtkdef.pp
Assembling gtkdef
Compiling gtkwinapiwindow.pp
Assembling gtkwinapiwindow
Compiling keymap.pp
Assembling keymap
Assembling gtkint
Assembling interfaces
19220 Lines compiled, 1.8 sec
make[3]: Leaving directory `/home/davidc/develop/lazarus/lcl/interfaces/gtk' make[2]: Leaving directory `/home/davidc/develop/lazarus/lcl/interfaces' make[1]: Leaving directory `/home/davidc/develop/lazarus/lcl' make -C components all
make[1]: Entering directory `/home/davidc/develop/lazarus/components' make -C synedit all
make[2]: Entering directory `/home/davidc/develop/lazarus/components/synedit' /bin/rm -f ../units/allunits.ppu
/usr/bin/ppc386 -gl -Fu../../lcl/units/gtk -Fu../../lcl/units -Fu. -Fu/usr/lib/fpc/1.0.6/units/linux/rtl -Fu/usr/lib/fpc/1.0.6/units/linux/paszlib -Fu/usr/lib/fpc/1.0.6/units/linux/inet -Fu/usr/lib/fpc/1.0.6/units/linux/fcl -Fu/usr/lib/fpc/1.0.6/units/linux/regexpr -Fu/usr/lib/fpc/1.0.6/units/linux/mysql -Fu/usr/lib/fpc/1.0.6/units/linux/ibase -FU../units -Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 -Fl/usr/X11R6/lib -Fl/usr/lib/qt2/lib -Fl/usr/local/lib/wine -Fl/usr/local/lib -di386 allunits.pp Free Pascal Compiler version 1.0.6 [2002/05/23] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386
Compiling allunits.pp
Compiling syntextdrawer.pp
gtkint.pp(74,11) Fatal: Can't find unit GTK
make[2]: Leaving directory `/home/davidc/develop/lazarus/components/synedit' make[1]: Leaving directory `/home/davidc/develop/lazarus/components'

Reply by email

Marc Weustink
to Mattias Gaertner: On 29 Jun 2002 21:55:38 +1000 These are only the unit paths provided by the Makefile.…

At 09:44 30/06/2002 +1000, David Creelman wrote:
[snip]

Show quoted text 16 lines
There is no gtk here. What do I change to get it to find it ? This is an excerpt from /etc/fpc.cfg, looking at the -Fu lines. # searchpath for units and other system dependent things -Fu/usr/local/lib/fpc/1.0.6/units/$target -Fu/usr/local/lib/fpc/1.0.6/units/$target/* -Fu/usr/local/lib/fpc/1.0.6/units/$target/rtl #-Fu~/fpc/packages/*;~/fpc/rtl/linux # searchpath for libraries -Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 #-Fl/pp/lib #-Fl/lib;/usr/lib The $target/* looks like it should get to the gtk directory, don't know why it doesn't...

Eehh...maybe a silly question, but where is your fpc installed ? in /usr/lib or in /usr/local/lib ?

Marc

Marc

Reply by email

Michael Van Canneyt
to Mattias Gaertner: On 01 Jul 2002 18:58:42 +1000 Hmm, this should be added to the FAQ. But I doubt that an…
Mattias Gaertner wrote 37 lines
On 01 Jul 2002 18:58:42 +1000 David Creelman wrote: > > Plz do a > > > > strace ppc386 -vt bogus > > > > After the first page, you will see, what cfg files are tried and which one is loaded. > > Does it use /etc/fpc.cfg? > > [snip] > readlink("/proc/7770/exe", "/usr/local/lib/fpc/1.0.6/ppc386", 255) = 31 > signal(SIGSEGV, 0x80f8050) = 0x8102810 > signal(SIGINT, 0x80f8050) = 0 (SIG_DFL) > signal(SIGFPE, 0x80f8050) = 0x8102810 > stat("ppc386.cfg", 0xbfffed48) = -1 ENOENT (No such file or > directory) > stat("/home/davidc/.ppc386.cfg", 0xbfffed48) = -1 ENOENT (No such file > or directory) > stat("/etc/ppc386.cfg", 0xbfffed48) = -1 ENOENT (No such file or > directory) > stat("fpc.cfg", 0xbfffed48) = -1 ENOENT (No such file or > directory) > stat("/home/davidc/.fpc.cfg", {st_mode=S_IFREG|0664, st_size=3810, ...}) > = 0 > open("/home/davidc/.fpc.cfg", O_RDONLY) = 3 > [snip] > > I moved .fpc.cfg to blah and went into my lazarus dir and it recompiled. > That must be it. I didn't do a search for .fpc.cfg ! > Thanks for your help with that one Mattias. > > The compiler seems to want to find ppc386.cfg rather than fpc.cfg in my > setup. Still it all compiles now. Hmm, this should be added to the FAQ. But I doubt that an strace output is a nice answer. Is it possible to ask the compiler, which config file it has parsed?

The -vt option does this.

Michael.

Reply by email

Mattias Gaertner
to Mattias Gaertner: On 29 Jun 2002 00:46:48 +1000 Hmm. You are now the third person with the gtk.ppu problem.…
Show quoted text 17 lines
At 01:35 29/06/2002 +1000, David Creelman wrote: >Hi Mattias, > >Here it is. > >The only change I made was in Makefile.fpc to try to get it to find gtk > > unitdir=lcl/units /usr/lib/fpc/1.0.6/units/linux/gtk lcl/u.... > >This didn't work, Luckely it didn't :-) (you need to run fpcmake after changing Mekefile.fpc) gtk shouldn't be needed here >copying the ppu did. I'm using the 1.0.6 fpc rpm and >downloaded and installed the source rpm as well.

Just for clarity: The sources are not needed to compile lazarus and pointing searchpaths into them is a bad idea. The sources are needed by the (running) lazarus IDE as SRCpath. This is needed to get additional information.

Show quoted text 26 lines
Hmm..... from your output: >make[2]: Entering directory `/home/davidc/develop/lazarus/components/synedit' >/bin/rm -f ../units/allunits.ppu >/usr/bin/ppc386 -gl -Fu../../lcl/units/gtk -Fu../../lcl/units -Fu. >-Fu/usr/lib/fpc/1.0.6/units/linux/rtl >-Fu/usr/lib/fpc/1.0.6/units/linux/paszlib >-Fu/usr/lib/fpc/1.0.6/units/linux/inet >-Fu/usr/lib/fpc/1.0.6/units/linux/fcl >-Fu/usr/lib/fpc/1.0.6/units/linux/regexpr >-Fu/usr/lib/fpc/1.0.6/units/linux/mysql >-Fu/usr/lib/fpc/1.0.6/units/linux/ibase -FU../units >-Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 -Fl/usr/X11R6/lib >-Fl/usr/lib/qt2/lib -Fl/usr/local/lib/wine -Fl/usr/local/lib -di386 allunits.pp >Free Pascal Compiler version 1.0.6 [2002/05/23] for i386 >Copyright (c) 1993-2002 by Florian Klaempfl >Target OS: Linux for i386 >Compiling allunits.pp >Compiling syntextdrawer.pp >gtkint.pp(74,11) Fatal: Can't find unit GTK Why is gtkint complaining here... gtkint is part of the interface for GTK. This directory is part of components and should be independent of the platform. Thats why there is nu reference to a gtk dir. It seems to me that somehow there is a platform dependency in SynEdit which shouldn't be there.

The compiler messages are irritating.
Of course there is no platform dependency in the synedit sources. But I know this output. I got it on a nfs filesystem. When you compile with -va you find out more: First the lcl and then the gtk-interface is compiled. Everything seems to be allright. But when compiling synedit the compiler loads the ppu file and wants to recompile the interfaces.pp of the gtk-interface and hence it searches for the depending gtk sources. But the synedit Makefile does not contain any clue to the gtk .ppus and therefore the compiler fails with the strange error message. Even more strange was the fact, that this error only happened if you compile lazarus in one step via a script (or Makefile). Compiling it manually always worked. I copied the files to a local disk and everything compiles fine. But the error vanished some time ago. I can't say, if it was the update to a newer 1.0.7 or an update to the network. I know there is another person who had definitely a correct setup and got the same error but on a local disk. It also disappeared after some (un)successful searching. So, there is a compiler bug, but it appears only in very rare cases. Spooky fpc.

Final note: The error appears much more often, but in 90% it is just a misconfiguration. These are handled in the FAQ.

Mattias

Reply by email

Mattias Gaertner
to Mattias Gaertner: On Sat, 29 Jun 2002 08:56:12 +0200 That's already in the FAQ. Perhaps we should add a…
Show quoted text 32 lines
Hi Mattias, Here is the path manually added davidc]$ ppc386 -vt '-Fu/usr/local/lib/fpc/1.0.6/units/$target/*' bogus Free Pascal Compiler version 1.0.6 [2002/04/30] for i386 [...] Using executable path: /usr/local/lib/fpc/1.0.6/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ [...] Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/gtk/ [...] Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/zlib/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/ Using unit path: /usr/local/lib/fpc/1.0.6/ [...] Compiling bogus Fatal: Can't open file bogus And here is the output without the path manually added (just for comparison) davidc]$ ppc386 -vt bogus [...] Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ Using unit path: /usr/local/lib/fpc/1.0.6/ [...] Compiling bogus Fatal: Can't open file bogus Are there any known issues with Mandrake Linux ?

AFAIK: no

Show quoted text 14 lines
I did a quick search as root to see if there were any spare cfg files around that might be causing the problem. There seems to be only one fpc.cfg and it's in the right place. /]# find . -name *cfg -print [...] ./etc/lynx.cfg ./etc/links.cfg ./etc/enscript.cfg ./etc/news/actsync.cfg ./etc/fpc.cfg [...] > If there is now the gtk dir, then your config is buggy or you have a double config.

Hmm. Either there is a bug in the compiler or the compiler is not using your config file. Plz do a

strace ppc386 -vt bogus

After the first page, you will see, what cfg files are tried and which one is loaded. Does it use /etc/fpc.cfg?

If yes, then the only possibility is to recreate the /etc/fpc.cfg: Plz backup your /etc/fpc.cfg and create a new config:

mv /etc/fpc.cfg /etc/fpc.cfg.strange
/usr/local/lib/fpc/1.0.6/samplecfg /usr/local/lib/fpc/1.0.6 ppc386 -vt bogus

If there is a change, then there is/was a bug in the installation. If not, then there seems to be a bug in the compiler (the part that parses the config).

Mattias

Reply by email

Mattias Gaertner
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…
Show quoted text 7 lines
> Also you mentioned, that you just copied gtk.pp. I guess you ment gtk.ppu. Yes. > What about the other files in the /usr/lib/fpc/1.0.6/units/linux/gtk/ directory? Yes I couldn't get it to compile until I copied over the .ppu to the ./lcl/units/gtk/ directory. The Makefile didn't seem to find them. I looked at the directions in the FAQ and everything was okay, so I thought I'd try copying the .ppus and it worked.....

Hmm. You are now the third person with the gtk.ppu problem. It seems, that the compiler sometimes don't like it's own units. It always disappears mysteriously. Can you add the -va option to your fpc.cfg and do a 'make clean all' and send me the log plz? Perhaps I find out what the problem is. This 'make clean all' should erase your .ppus in lcl/units/gtk.

Show quoted text 11 lines
> > I don't have too much spare time, but I'd like to tinker. What needs > > doing ? > > A lot of things. > Do you like to help with the IDE (form editing, codetools, source editor, debugger, documentation), the LCL (components, images, docs) or the interfaces (components, images, docs)? Are events working ? I tried to setup a FormShow event and it didn't seem to work.... Form editing sounds interesting. There are lots of todos in customformeditor.pas, the code looks pretty complicated. I'll give it a go though.

It would be nice, if you would send me comments/notes/annotations for the code. So that the next one will have it easier to participate.

Is this where I'd start looking ?

Yes. Almost all form editing code can be found in the designer/ directory and in customformeditor.pp and main.pp. I'm currently busy with the gtk2 bindings, but I hope to return to the form editing next week.

....Also is there a unit test suite set up ???

No. But we definitely need one. Does anyone know a nice one?

Mattias

Reply by email

Mattias Gaertner
to Mattias Gaertner: On Sat, 29 Jun 2002 08:56:12 +0200 That's already in the FAQ. Perhaps we should add a…
Show quoted text 46 lines
Sorry, pressed the wrong button.... last part of the output of make OPT=-vat [...] Unitsearch: gtkint.ppu [...] Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk/gtk.ppu Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk/gtk.pp Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk/gtk.pas Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk.ppu Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk.pp Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk.pas Unitsearch: gtk.ppu Unitsearch: gtk.pp Unitsearch: gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/rtl/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/rtl/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/rtl/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/inet/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/inet/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/inet/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/fcl/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/fcl/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/fcl/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/mysql/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/mysql/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/mysql/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/ibase/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/ibase/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/ibase/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/gtk.pas gtkint.pp(74,11) Fatal: Can't find unit GTK

These are only the unit paths provided by the Makefile. Where are the standard unitpaths to the fpc packages? Normally the following line in your /etc/fpc.cfg should add them: -Fu/usr/lib/fpc/1.0.6/units/$target/*

Can you plz make sure that your standard unitpath is setup correct. Plz invoke: ppc386 -vt bogus
Does it contain the /usr/local/lib/fpc/1.0.6/units/linux/gtk path?

Mattias

Reply by email

David Creelman
to Mattias Gaertner: On Sat, 29 Jun 2002 08:56:12 +0200 That's already in the FAQ. Perhaps we should add a…

Sorry,

pressed the wrong button....

last part of the output of make OPT=-vat

PPU Source: interfaces.pp not found
Load from INTERFACES (interface) unit SYSLINUX
Load from INTERFACES (interface) unit OBJPAS
Load from INTERFACES (interface) unit INTERFACEBASE Unitsearch: interfacebase.ppu
Unitsearch: /home/davidc/develop/lazarus/lcl/units/interfacebase.ppu PPU Loading /home/davidc/develop/lazarus/lcl/units/interfacebase.ppu PPU Name: /home/davidc/develop/lazarus/lcl/units/interfacebase.ppu PPU Time: 2002/06/29 20:42:09
PPU Flags: 4243
PPU Crc: -852422273
PPU Crc: -2016927775 (intfc)
PPU Check file /home/davidc/develop/lazarus/lcl/units/interfacebase.o time 2002/06/29 20:42:09Second load for unit INTERFACEBASE PPU Source: interfacebase.pp not found
PPU Source: winapih.inc not found
PPU Source: interfacebase.inc not found
Load from INTERFACEBASE (interface) unit SYSLINUX
Load from INTERFACEBASE (interface) unit OBJPAS
Load from INTERFACEBASE (interface) unit LCLLINUX
Load from INTERFACEBASE (interface) unit LCLTYPE
Load from INTERFACEBASE (interface) unit VCLGLOBALS Load from INTERFACEBASE (interface) unit CLASSES
Load from INTERFACEBASE (interface) unit CONTROLS
Load from INTERFACEBASE (interface) unit LMESSAGES Load from INTERFACEBASE (interface) unit GRAPHTYPE Load from INTERFACES (implementation) unit GTKINT
Unitsearch: gtkint.ppu
Unitsearch: ../units/gtkint.ppu
Unitsearch: gtkint.pp
Unitsearch: gtkint.pas
Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk/gtkint.ppu PPU Loading /home/davidc/develop/lazarus/lcl/units/gtk/gtkint.ppu PPU Name: /home/davidc/develop/lazarus/lcl/units/gtk/gtkint.ppu PPU Time: 2002/06/29 20:42:14
PPU Flags: 4243
PPU Crc: 408289654
PPU Crc: -1851938063 (intfc)
PPU Check file /home/davidc/develop/lazarus/lcl/units/gtk/gtkint.o time 2002/06/29 20:42:14
PPU Source: gtkint.pp not found
PPU Source: gtkwinapih.inc not found
PPU Source: gtklistslh.inc not found
PPU Source: gtklistsl.inc not found
PPU Source: dragicons.inc not found
PPU Source: gtkproc.inc not found
PPU Source: gtkcallback.inc not found
PPU Source: gtkdragcallback.inc not found
PPU Source: gtklistviewcallback.inc not found
PPU Source: gtkobject.inc not found
PPU Source: gtkwinapi.inc not found
PPU Source: gtkimages.lrs not found
Load from GTKINT (interface) unit SYSLINUX
Load from GTKINT (interface) unit OBJPAS
Load from GTKINT (interface) unit INTERFACEBASE
Load from GTKINT (interface) unit GTK
Unitsearch: gtk.ppu
Unitsearch: ../units/gtk.ppu
Unitsearch: gtk.pp
Unitsearch: gtk.pas
Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk/gtk.ppu Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk/gtk.pp Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk/gtk.pas Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk.ppu Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk.pp Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk.pas Unitsearch: gtk.ppu
Unitsearch: gtk.pp
Unitsearch: gtk.pas
Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/rtl/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/rtl/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/rtl/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/inet/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/inet/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/inet/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/fcl/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/fcl/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/fcl/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/mysql/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/mysql/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/mysql/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/ibase/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/ibase/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/ibase/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/gtk.ppu Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/gtk.pp Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/gtk.pas Unitsearch: /usr/local/lib/fpc/1.0.6/gtk.ppu
Unitsearch: /usr/local/lib/fpc/1.0.6/gtk.pp
Unitsearch: /usr/local/lib/fpc/1.0.6/gtk.pas
gtkint.pp(74,11) Fatal: Can't find unit GTK
gtkint.pp(74,11) ENDIF SYN_LAZARUS found
make: *** [allunits.ppu] Error 1

DC

Marc Weustink wrote 76 lines
At 20:44 29/06/2002 +1000, David Creelman wrote: >Hi, > >Sorry to keep bothering the list. No problem [snip] >Free Pascal Compiler version 1.0.6 [2002/04/30] for i386 >Copyright (c) 1993-2002 by Florian Klaempfl >Target OS: Linux for i386 >Compiling allunits.pp >Compiling syntextdrawer.pp >gtkint.pp(74,11) Fatal: Can't find unit GTK >make[2]: *** [allunits.ppu] Error 1 >make[2]: Leaving directory >`/home/davidc/develop/lazarus/components/synedit' >make[1]: *** [synedit_all] Error 2 >make[1]: Leaving directory `/home/davidc/develop/lazarus/components' >make: *** [components] Error 2 > >I'm not on an NFS share, I have a correctly configured /etc/fpc.cfg and >gtk.ppu is in /usr/local/lib/fpc/1.0.6/units/linux/gtk, but is not found >unless I copy it into the lazarus gtk directory. As we wrote earlier, the gtk unit should not be needed in any dir outside the interfaces dirs. Anyhow, can you issue make OPT=-vat in the synedit dir and send me the output. Marc >DC > >On Sat, 2002-06-29 at 17:55, Mattias Gaertner wrote: > > On Sat, 29 Jun 2002 08:56:12 +0200 > > Michal Bukovjan wrote: > > > > > Also note that the "missing" gtk.ppu was solved for me when I deleted a > > > stale /etc/ppc386.cfg (now only /etc/fpc.cfg should it used). Look if > > > you have the /etc/ppc386.cfg and if so, remove it and see what happens. > > > > That's already in the FAQ. > > > > Perhaps we should add a quick installation guide with the following: > > - where to get the fpc package (binaries+sources) > > - installing fpc > > - getting lazarus sources (tar and cvs) > > - compiling + FAQs > > - Some configuration hints for the IDE (paths, key mapping) > > > > any volunteers? > > > > > > Mattias > > > > _________________________________________________________________ > > To unsubscribe: mail with > > "unsubscribe" as the Subject > > archives at http://www.miraclec.com/list_archives/lazarus > > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

David Creelman
to Mattias Gaertner: On Sat, 29 Jun 2002 08:56:12 +0200 That's already in the FAQ. Perhaps we should add a…

Hi Mattias,

Here is the path manually added
davidc]$ ppc386 -vt
'-Fu/usr/local/lib/fpc/1.0.6/units/$target/*' bogus Free Pascal Compiler version 1.0.6 [2002/04/30] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Compiler: /usr/local/lib/fpc/1.0.6/ppc386
Target OS: Linux for i386
Using executable path: /usr/local/lib/fpc/1.0.6/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/fcl/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/bfd/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/cmem/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/forms/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/fpasync/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/gdbint/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/gdbm/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/ggi/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/gtk/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/ibase/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/inet/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/libasync/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/libgd/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/libpng/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/mysql/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/ncurses/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/opengl/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/oracle/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/postgres/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/svgalib/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/syslog/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/uncgi/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/unzip/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/utmp/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/x11/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/zlib/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/ Using unit path: /usr/local/lib/fpc/1.0.6/
Using library path: /lib/
Using library path: /usr/lib/
Using library path: /usr/X11R6/lib/
Using library path: /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/fcl/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/bfd/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/cmem/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/forms/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/fpasync/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/gdbint/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/gdbm/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/ggi/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/gtk/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/ibase/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/inet/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/libasync/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/libgd/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/libpng/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/mysql/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/ncurses/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/opengl/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/oracle/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/postgres/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/svgalib/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/syslog/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/uncgi/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/unzip/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/utmp/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/x11/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/zlib/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/ Using library path: /usr/local/lib/fpc/1.0.6/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/fcl/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/bfd/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/cmem/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/forms/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/fpasync/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/gdbint/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/gdbm/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/ggi/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/gtk/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/ibase/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/inet/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/libasync/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/libgd/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/libpng/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/mysql/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/ncurses/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/opengl/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/oracle/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/postgres/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/svgalib/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/syslog/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/uncgi/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/unzip/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/utmp/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/x11/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/zlib/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/ Using object path: /usr/local/lib/fpc/1.0.6/
Compiling bogus
Fatal: Can't open file bogus

And here is the output without the path manually added (just for comparison)

davidc]$ ppc386 -vt bogus
Free Pascal Compiler version 1.0.6 [2002/04/30] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Compiler: /usr/local/lib/fpc/1.0.6/ppc386
Target OS: Linux for i386
Using executable path: /usr/local/lib/fpc/1.0.6/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ Using unit path: /usr/local/lib/fpc/1.0.6/
Using library path: /lib/
Using library path: /usr/lib/
Using library path: /usr/X11R6/lib/
Using library path: /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ Using library path: /usr/local/lib/fpc/1.0.6/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ Using object path: /usr/local/lib/fpc/1.0.6/
Compiling bogus
Fatal: Can't open file bogus

Are there any known issues with Mandrake Linux ? I'm running 8.2. My machine is an Athlon 1800.

I did a quick search as root to see if there were any spare cfg files around that might be causing the problem. There seems to be only one fpc.cfg and it's in the right place.

/]# find . -name *cfg -print
./home/davidc/download/speech_tools/grammar/scfg
./home/davidc/download/wxGTK-2.2.7/demos/dbbrowse/de/xget.cfg ./home/davidc/download/wxGTK-2.2.7/demos/dbbrowse/fr/xget.cfg ./home/davidc/develop/eiffel/gobo/example/test/concat1/getest.cfg ./home/davidc/develop/eiffel/gobo/example/test/concat2/getest.cfg ./home/davidc/develop/eiffel/gobo/library/test/config/getest.cfg ./home/davidc/develop/eiffel/gobo/test/src/geant/getest.cfg ./home/davidc/develop/eiffel/gobo/test/src/gelex/getest.cfg ./home/davidc/develop/eiffel/gobo/test/src/gepp/getest.cfg ./home/davidc/develop/eiffel/gobo/test/src/getest/getest.cfg ./home/davidc/develop/eiffel/gobo/test/src/geyacc/getest.cfg ./home/davidc/develop/eiffel/gobo/test/example/lexical/getest.cfg ./home/davidc/develop/eiffel/gobo/test/example/parse/getest.cfg ./home/davidc/develop/eiffel/gobo/test/example/test/getest.cfg ./home/davidc/develop/eiffel/gobo/test/example/time/getest.cfg ./home/davidc/develop/eiffel/gobo/test/kernel/getest.cfg ./home/davidc/develop/eiffel/gobo/test/lexical/getest.cfg ./home/davidc/develop/eiffel/gobo/test/precomp/getest.cfg ./home/davidc/develop/eiffel/gobo/test/structure/getest.cfg ./home/davidc/develop/eiffel/gobo/test/time/getest.cfg ./home/davidc/develop/microwin/src/nano-X.cfg
./home/davidc/.clanbomber/clanbomber.cfg
./home/davidc/kylixdownload/plot/TPlot/DBDemo/DBNormal.cfg ./home/davidc/kylixdownload/plot/TPlot/Demo/Normal.cfg ./home/davidc/kylixdownload/plot/TPlot/Plot200_R50.cfg ./home/davidc/kylixdownload/plot/TPlot/DBPlot200_D50.cfg ./home/davidc/kylixdownload/plot/TPlot/DBPlot200_R50.cfg ./home/davidc/kylixdownload/plot/TPlot/Plot200_D40.cfg ./home/davidc/kylixdownload/plot/TPlot/Plot200_R40.cfg ./home/davidc/kylixdownload/plot/TPlot/DBPlot200_R40.cfg ./home/davidc/kylixdownload/plot/TPlot/DBPlot200_D40.cfg ./home/davidc/kylixdownload/plot/TPlot/TChart Demo/TChart.cfg ./home/davidc/kylixdownload/plot/TPlot/Plot200_D50.cfg ./home/davidc/kylixdownload/plot/Misc/Misc200_R50.cfg ./home/davidc/kylixdownload/plot/Misc/Plot120_R50.cfg ./home/davidc/kylixdownload/plot/Misc/Misc200_D50.cfg ./home/davidc/kylixdownload/plot/Misc/Misc200_D40.cfg ./home/davidc/kylixdownload/plot/Misc/Misc200_R40.cfg ./home/davidc/cal/calendar/calopts.cfg
./home/davidc/cal/calendar/dates.cfg
./etc/urpmi/urpmi.cfg
./etc/lynx.cfg
./etc/links.cfg
./etc/bootsplash/themes/Mandrake/cfg
./etc/bootsplash/themes/Mandrake/cfg/bootsplash-1280x1024.cfg ./etc/bootsplash/themes/Mandrake/cfg/bootsplash-1024x768.cfg ./etc/bootsplash/themes/Mandrake/cfg/bootsplash-800x600.cfg ./etc/enscript.cfg
./etc/news/actsync.cfg
./etc/fpc.cfg
find: ./mnt/floppy: Input/output error
find: ./mnt/floppy2: Input/output error
find: ./mnt/cdrom: Input/output error
./sbin/ifcfg
./usr/share/apps/kmidi/config/gravis.cfg
./usr/share/apps/kmidi/config/gsdrum.cfg
./usr/share/apps/kmidi/config/midia.cfg
./usr/share/apps/kmidi/config/mt32.cfg
./usr/share/apps/kmidi/config/timidity.cfg
./usr/share/apps/kmidi/config/wowpats.cfg
./usr/share/gnobots2/classic_robots.cfg
./usr/share/gnobots2/nightmare.cfg
./usr/share/gnobots2/robots2.cfg
./usr/share/gnobots2/robots2_easy.cfg
./usr/share/gnobots2/robots_with_safe_teleport.cfg ./usr/share/texmf/omega/lambda/misc/omarab.cfg
./usr/share/texmf/omega/lambda/misc/omlgc.cfg
./usr/share/texmf/pdftex/config/pdftex.cfg
./usr/share/texmf/tex/cyrplain/config/cyrtex.cfg
./usr/share/texmf/tex/generic/babel/frenchb.cfg
./usr/share/texmf/tex/generic/babel/hyphen.cfg
./usr/share/texmf/tex/generic/config/fontmath.cfg
./usr/share/texmf/tex/generic/config/fonttext.cfg
./usr/bin/sf2cfg
./usr/lib/perl5/site_perl/5.6.1/Net/libnet.cfg
./usr/X11R6/bin/xf86cfg
./usr/local/lib/fpc/1.0.6/samplecfg
./usr/local/src/fpc-1.0.6/compiler/utils/samplecfg ./usr/local/src/fpc-1.0.6/ide/fp.cfg
./usr/src/RPM/SOURCES/compiler/utils/samplecfg
/]#

Cheers
DC

Mattias Gaertner wrote 44 lines
On 30 Jun 2002 09:44:16 +1000 David Creelman wrote: > Here is the result of ppc386 -vt bogus > > davidc]$ fpc -vt bogus > Free Pascal Compiler version 1.0.6 [2002/04/30] for i386 > Copyright (c) 1993-2002 by Florian Klaempfl > Compiler: /usr/local/lib/fpc/1.0.6/ppc386 > Target OS: Linux for i386 > Using executable path: /usr/local/lib/fpc/1.0.6/ > Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/ > Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ > Using unit path: /usr/local/lib/fpc/1.0.6/ > [...] > Compiling bogus > Fatal: Can't open file bogus > > There is no gtk here. What do I change to get it to find it ? > > This is an excerpt from /etc/fpc.cfg, looking at the -Fu lines. > # searchpath for units and other system dependent things > -Fu/usr/local/lib/fpc/1.0.6/units/$target > -Fu/usr/local/lib/fpc/1.0.6/units/$target/* > -Fu/usr/local/lib/fpc/1.0.6/units/$target/rtl > [...] > The $target/* looks like it should get to the gtk directory, don't know > why it doesn't... Either the directories are not there, there is another config or this a compiler bug. Plz try to manually add the path: ppc386 -vt '-Fu/usr/local/lib/fpc/1.0.6/units/$target/*' bogus If there is now the gtk dir, then your config is buggy or you have a double config. If not, then you should double check, that the path is correct. Weird thing. If we find the solution we should add this to the FAQ. Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Marc Weustink
to Michael Van Canneyt: The -vt option does this. Michael.

+ From: Behalf Of
+ Michael Van Canneyt
+
+ On Mon, 1 Jul 2002, Mattias Gaertner wrote:
+
+ >
+ > Hmm, this should be added to the FAQ. But I doubt that an
+ > strace output is a nice answer.
+ > Is it possible to ask the compiler, which config file it has parsed? +
+ The -vt option does this.

Hmm... mine only tells me what paths are used, not which config file.

BTW, Another nice to have feature would be that the compiler dumps all config options set by the config file.

Marc

Reply by email

David Creelman
to Mattias Gaertner: On 29 Jun 2002 21:55:38 +1000 These are only the unit paths provided by the Makefile.…
Marc Weustink wrote 23 lines
At 09:44 30/06/2002 +1000, David Creelman wrote: [snip] >There is no gtk here. What do I change to get it to find it ? > >This is an excerpt from /etc/fpc.cfg, looking at the -Fu lines. ># searchpath for units and other system dependent things >-Fu/usr/local/lib/fpc/1.0.6/units/$target >-Fu/usr/local/lib/fpc/1.0.6/units/$target/* >-Fu/usr/local/lib/fpc/1.0.6/units/$target/rtl >#-Fu~/fpc/packages/*;~/fpc/rtl/linux > ># searchpath for libraries >-Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 >#-Fl/pp/lib >#-Fl/lib;/usr/lib > >The $target/* looks like it should get to the gtk directory, don't know >why it doesn't... Eehh...maybe a silly question, but where is your fpc installed ? in /usr/lib or in /usr/local/lib ?

which fpc
/usr/local/bin/fpc

Show quoted text 10 lines
Marc Marc _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

David Creelman
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…
Mattias Gaertner wrote 21 lines
On 28 Jun 2002 23:22:29 +1000 David Creelman wrote: > Hi Mattias, > > Thanks for the pointers. > > I checked the FAQ and it looked like my path was okay. Tried again and > it still didn't work, so I checked the directories that were searched > when the compiler ran and the fpc gtk directory (/usr/lib/fpc/etc...) > wasn't in there. It was trying to use the lazarus lcl/gtk directory > which was empty.... I ended up copying the gtk.pp file into the > lazarus/lcl/gtk directory, then it compiled. > > Now the IDE runs. I managed to change the compiler options under run-> > and got the demo project to run. That's nice. But I'm not sure what your error was. The lcl/gtk directory should be empty and AFAIK is not part of the search path. So, how can an unit be found there? Also you mentioned, that you just copied gtk.pp. I guess you ment gtk.ppu.

Yes.

What about the other files in the /usr/lib/fpc/1.0.6/units/linux/gtk/ directory?

Yes I couldn't get it to compile until I copied over the .ppu to the ./lcl/units/gtk/ directory. The Makefile didn't seem to find them. I looked at the directions in the FAQ and everything was okay, so I thought I'd try copying the .ppus and it worked.....

Show quoted text 8 lines
Lazarus can't be compiled without them. > I don't have too much spare time, but I'd like to tinker. What needs > doing ? A lot of things. Do you like to help with the IDE (form editing, codetools, source editor, debugger, documentation), the LCL (components, images, docs) or the interfaces (components, images, docs)?

Are events working ? I tried to setup a FormShow event and it didn't seem to work....

Form editing sounds interesting. There are lots of todos in customformeditor.pas, the code looks pretty complicated. I'll give it a go though.

Is this where I'd start looking ?

....Also is there a unit test suite set up ???

Show quoted text 8 lines
Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Mattias Gaertner
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…
Show quoted text 6 lines
Hi, I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path, but I don't know what this is. I suspect I need to do add this to the project somehow.

classes.ppu is automatically in the searchpath of the compiler. Did you try the FAQ?

Also, from last email I guess it won't actually run in the IDE ? only compile ?

Default is to compile on Ctrl+F9 and compile+run on F9.

Mattias

Reply by email

Mattias Gaertner
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…
Also note that the "missing" gtk.ppu was solved for me when I deleted a stale /etc/ppc386.cfg (now only /etc/fpc.cfg should it used). Look if you have the /etc/ppc386.cfg and if so, remove it and see what happens.

That's already in the FAQ.

Perhaps we should add a quick installation guide with the following:
- where to get the fpc package (binaries+sources)
- installing fpc
- getting lazarus sources (tar and cvs)
- compiling + FAQs
- Some configuration hints for the IDE (paths, key mapping)

any volunteers?

Mattias

Reply by email

David Creelman

Hi,

I click run and lazarus can't find classes.pas.

There is a classes.ppu in the fpc path, but I don't know what this is. I suspect I need to do add this to the project somehow.

Also, from last email I guess it won't actually run in the IDE ? only compile ?

Cheers
Dave

Reply by email

David Creelman
to Mattias Gaertner: On Sat, 29 Jun 2002 08:56:12 +0200 That's already in the FAQ. Perhaps we should add a…

Okay,

Here it is.

DC

Marc Weustink wrote 76 lines
At 20:44 29/06/2002 +1000, David Creelman wrote: >Hi, > >Sorry to keep bothering the list. No problem [snip] >Free Pascal Compiler version 1.0.6 [2002/04/30] for i386 >Copyright (c) 1993-2002 by Florian Klaempfl >Target OS: Linux for i386 >Compiling allunits.pp >Compiling syntextdrawer.pp >gtkint.pp(74,11) Fatal: Can't find unit GTK >make[2]: *** [allunits.ppu] Error 1 >make[2]: Leaving directory >`/home/davidc/develop/lazarus/components/synedit' >make[1]: *** [synedit_all] Error 2 >make[1]: Leaving directory `/home/davidc/develop/lazarus/components' >make: *** [components] Error 2 > >I'm not on an NFS share, I have a correctly configured /etc/fpc.cfg and >gtk.ppu is in /usr/local/lib/fpc/1.0.6/units/linux/gtk, but is not found >unless I copy it into the lazarus gtk directory. As we wrote earlier, the gtk unit should not be needed in any dir outside the interfaces dirs. Anyhow, can you issue make OPT=-vat in the synedit dir and send me the output. Marc >DC > >On Sat, 2002-06-29 at 17:55, Mattias Gaertner wrote: > > On Sat, 29 Jun 2002 08:56:12 +0200 > > Michal Bukovjan wrote: > > > > > Also note that the "missing" gtk.ppu was solved for me when I deleted a > > > stale /etc/ppc386.cfg (now only /etc/fpc.cfg should it used). Look if > > > you have the /etc/ppc386.cfg and if so, remove it and see what happens. > > > > That's already in the FAQ. > > > > Perhaps we should add a quick installation guide with the following: > > - where to get the fpc package (binaries+sources) > > - installing fpc > > - getting lazarus sources (tar and cvs) > > - compiling + FAQs > > - Some configuration hints for the IDE (paths, key mapping) > > > > any volunteers? > > > > > > Mattias > > > > _________________________________________________________________ > > To unsubscribe: mail with > > "unsubscribe" as the Subject > > archives at http://www.miraclec.com/list_archives/lazarus > > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

David Creelman
to Mattias Gaertner: On Sat, 29 Jun 2002 08:56:12 +0200 That's already in the FAQ. Perhaps we should add a…
Mattias Gaertner wrote 61 lines
On 30 Jun 2002 21:26:36 +1000 David Creelman wrote: > Hi Mattias, > > Here is the path manually added > davidc]$ ppc386 -vt > '-Fu/usr/local/lib/fpc/1.0.6/units/$target/*' bogus > Free Pascal Compiler version 1.0.6 [2002/04/30] for i386 > [...] > Using executable path: /usr/local/lib/fpc/1.0.6/ > Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ > [...] > Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/gtk/ > [...] > Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/zlib/ > Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/ > Using unit path: /usr/local/lib/fpc/1.0.6/ > [...] > Compiling bogus > Fatal: Can't open file bogus > > And here is the output without the path manually added (just for > comparison) > > davidc]$ ppc386 -vt bogus > [...] > Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/ > Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ > Using unit path: /usr/local/lib/fpc/1.0.6/ > [...] > Compiling bogus > Fatal: Can't open file bogus > > Are there any known issues with Mandrake Linux ? AFAIK: no > I did a quick search as root to see if there were any spare cfg files > around that might be causing the problem. There seems to be only one > fpc.cfg and it's in the right place. > > /]# find . -name *cfg -print > [...] > ./etc/lynx.cfg > ./etc/links.cfg > ./etc/enscript.cfg > ./etc/news/actsync.cfg > ./etc/fpc.cfg > [...] > > If there is now the gtk dir, then your config is buggy or you have a double config. Hmm. Either there is a bug in the compiler or the compiler is not using your config file. Plz do a strace ppc386 -vt bogus After the first page, you will see, what cfg files are tried and which one is loaded. Does it use /etc/fpc.cfg?

[snip]
readlink("/proc/7770/exe", "/usr/local/lib/fpc/1.0.6/ppc386", 255) = 31 signal(SIGSEGV, 0x80f8050) = 0x8102810 signal(SIGINT, 0x80f8050) = 0 (SIG_DFL) signal(SIGFPE, 0x80f8050) = 0x8102810 stat("ppc386.cfg", 0xbfffed48) = -1 ENOENT (No such file or directory)
stat("/home/davidc/.ppc386.cfg", 0xbfffed48) = -1 ENOENT (No such file or directory)
stat("/etc/ppc386.cfg", 0xbfffed48) = -1 ENOENT (No such file or directory)
stat("fpc.cfg", 0xbfffed48) = -1 ENOENT (No such file or directory)
stat("/home/davidc/.fpc.cfg", {st_mode=S_IFREG|0664, st_size=3810, ...}) = 0
open("/home/davidc/.fpc.cfg", O_RDONLY) = 3
read(3, "#\n# Example fpc.cfg for Free Pas"..., 256) = 256 read(3, " When not m68k is defined at the"..., 256) = 256 read(3, "h optimizes and strip debuginfo\n"..., 256) = 256 read(3, "-------------\n# Parsing switches"..., 256) = 256 read(3, "tors like C (*=,+=,/= and -=)\n# "..., 256) = 256 read(3, "tic keyword in objects\n\n# Allow "..., 256) = 256 read(3, "e)\n#-CS\n#-CD\n\n# Set the default "..., 256) = 256 read(3, "r keep certain variables "..., 256) = 256 read(3, " 3 optimizations (same as -O2u)\n"..., 256) = 256 read(3, " PII\n#-OG2p3\n\n\n# ---------------"..., 256) = 256 read(3, "ore.msg\n#-Fr/usr/bin/fpc/msg/err"..., 256) = 256 stat("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat(".", {st_mode=S_IFDIR|0755, st_size=16384, ...}) = 0 stat("..", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat("..", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("..", O_RDONLY) = 4
readdir(4, {d_ino=2, d_name=""}) = 1
readdir(4, {d_ino=2, d_name="."}) = 1
[snip]

I moved .fpc.cfg to blah and went into my lazarus dir and it recompiled. That must be it. I didn't do a search for .fpc.cfg ! Thanks for your help with that one Mattias.

The compiler seems to want to find ppc386.cfg rather than fpc.cfg in my setup. Still it all compiles now.

Cheers
DC

Show quoted text 18 lines
If yes, then the only possibility is to recreate the /etc/fpc.cfg: Plz backup your /etc/fpc.cfg and create a new config: mv /etc/fpc.cfg /etc/fpc.cfg.strange /usr/local/lib/fpc/1.0.6/samplecfg /usr/local/lib/fpc/1.0.6 ppc386 -vt bogus If there is a change, then there is/was a bug in the installation. If not, then there seems to be a bug in the compiler (the part that parses the config). Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

David Creelman
to Mattias Gaertner: On Sat, 29 Jun 2002 08:56:12 +0200 That's already in the FAQ. Perhaps we should add a…

Here is the result of ppc386 -vt bogus

davidc]$ fpc -vt bogus
Free Pascal Compiler version 1.0.6 [2002/04/30] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Compiler: /usr/local/lib/fpc/1.0.6/ppc386
Target OS: Linux for i386
Using executable path: /usr/local/lib/fpc/1.0.6/
Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/ Using unit path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ Using unit path: /usr/local/lib/fpc/1.0.6/
Using library path: /lib/
Using library path: /usr/lib/
Using library path: /usr/X11R6/lib/
Using library path: /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/ Using library path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ Using library path: /usr/local/lib/fpc/1.0.6/
Using object path: /usr/local/lib/fpc/1.0.6/units/linux/ Using object path: /usr/local/lib/fpc/1.0.6/units/linux/rtl/ Using object path: /usr/local/lib/fpc/1.0.6/
Compiling bogus
Fatal: Can't open file bogus

There is no gtk here. What do I change to get it to find it ?

This is an excerpt from /etc/fpc.cfg, looking at the -Fu lines. # searchpath for units and other system dependent things -Fu/usr/local/lib/fpc/1.0.6/units/$target
-Fu/usr/local/lib/fpc/1.0.6/units/$target/*
-Fu/usr/local/lib/fpc/1.0.6/units/$target/rtl
#-Fu~/fpc/packages/*;~/fpc/rtl/linux

# searchpath for libraries
-Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96
#-Fl/pp/lib
#-Fl/lib;/usr/lib

The $target/* looks like it should get to the gtk directory, don't know why it doesn't...

Cheers
DC

Mattias Gaertner wrote 65 lines
On 29 Jun 2002 21:55:38 +1000 David Creelman wrote: > Sorry, > > pressed the wrong button.... > > last part of the output of make OPT=-vat > > [...] > Unitsearch: gtkint.ppu > [...] > Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk/gtk.ppu > Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk/gtk.pp > Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk/gtk.pas > Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk.ppu > Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk.pp > Unitsearch: /home/davidc/develop/lazarus/lcl/units/gtk.pas > Unitsearch: gtk.ppu > Unitsearch: gtk.pp > Unitsearch: gtk.pas > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/rtl/gtk.ppu > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/rtl/gtk.pp > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/rtl/gtk.pas > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/gtk.ppu > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/gtk.pp > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/paszlib/gtk.pas > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/inet/gtk.ppu > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/inet/gtk.pp > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/inet/gtk.pas > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/fcl/gtk.ppu > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/fcl/gtk.pp > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/fcl/gtk.pas > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/gtk.ppu > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/gtk.pp > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/regexpr/gtk.pas > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/mysql/gtk.ppu > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/mysql/gtk.pp > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/mysql/gtk.pas > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/ibase/gtk.ppu > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/ibase/gtk.pp > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/ibase/gtk.pas > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/gtk.ppu > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/gtk.pp > Unitsearch: /usr/local/lib/fpc/1.0.6/units/linux/gtk.pas > Unitsearch: /usr/local/lib/fpc/1.0.6/gtk.ppu > Unitsearch: /usr/local/lib/fpc/1.0.6/gtk.pp > Unitsearch: /usr/local/lib/fpc/1.0.6/gtk.pas > gtkint.pp(74,11) Fatal: Can't find unit GTK These are only the unit paths provided by the Makefile. Where are the standard unitpaths to the fpc packages? Normally the following line in your /etc/fpc.cfg should add them: -Fu/usr/lib/fpc/1.0.6/units/$target/* Can you plz make sure that your standard unitpath is setup correct. Plz invoke: ppc386 -vt bogus Does it contain the /usr/local/lib/fpc/1.0.6/units/linux/gtk path? Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Mattias Gaertner
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…
Show quoted text 13 lines
Hi Mattias, Thanks for the pointers. I checked the FAQ and it looked like my path was okay. Tried again and it still didn't work, so I checked the directories that were searched when the compiler ran and the fpc gtk directory (/usr/lib/fpc/etc...) wasn't in there. It was trying to use the lazarus lcl/gtk directory which was empty.... I ended up copying the gtk.pp file into the lazarus/lcl/gtk directory, then it compiled. Now the IDE runs. I managed to change the compiler options under run-> and got the demo project to run.

That's nice. But I'm not sure what your error was. The lcl/gtk directory should be empty and AFAIK is not part of the search path. So, how can an unit be found there? Also you mentioned, that you just copied gtk.pp. I guess you ment gtk.ppu. What about the other files in the /usr/lib/fpc/1.0.6/units/linux/gtk/ directory? Lazarus can't be compiled without them.

I don't have too much spare time, but I'd like to tinker. What needs doing ?

A lot of things.
Do you like to help with the IDE (form editing, codetools, source editor, debugger, documentation), the LCL (components, images, docs) or the interfaces (components, images, docs)?

Mattias

Reply by email

Marc Weustink
to Marc Weustink: Luckely it didn't :-) (you need to run fpcmake after changing Mekefile.fpc) gtk shouldn't…
Mattias Gaertner wrote 21 lines
The compiler messages are irritating. Of course there is no platform dependency in the synedit sources. But I know this output. I got it on a nfs filesystem. When you compile with -va you find out more: First the lcl and then the gtk-interface is compiled. Everything seems to be allright. But when compiling synedit the compiler loads the ppu file and wants to recompile the interfaces.pp of the gtk-interface and hence it searches for the depending gtk sources. But the synedit Makefile does not contain any clue to the gtk .ppus and therefore the compiler fails with the strange error message. Even more strange was the fact, that this error only happened if you compile lazarus in one step via a script (or Makefile). Compiling it manually always worked. I copied the files to a local disk and everything compiles fine. But the error vanished some time ago. I can't say, if it was the update to a newer 1.0.7 or an update to the network. I know there is another person who had definitely a correct setup and got the same error but on a local disk. It also disappeared after some (un)successful searching. So, there is a compiler bug, but it appears only in very rare cases. Spooky fpc.

Now you are speaking of this... Indeed, I've seen something similar like this. To me it looks like a race condition somewhere so that the .o file is older (!) that the .ppu file. I thought that it had something to do with the fact that it is a SMP system or that I use pipes for assembly files, so I didn't pay much attention to it (touching the files solves it). I recall something that on a NFS mount i've seen such tiny time differences as well. Maybe this is the source of the problems.

Marc

Reply by email

Mattias Gaertner
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…
Show quoted text 5 lines
I think fixed fonts are better for the lazarus editor It looks better now . (or maybe is the gnome2 fonts) For beginners they should have the first contact with lazarus fixed is better Just an opinion ...

Normally this is already the case.
The synedit tries to load a fpFixed font named "courier" with size 12. The gtk-interface has a heuristic to search a font with this pattern. Normally this results in -adobe-courier-medium-r-normal-*-*-*-*-*-m-*-iso8859-1 The 'm' stands for monospaced and so this font is treated as fixed Pitched. But the gtk-interface font support is not complete. It does not yet support 2 byte character sets, which most monospaced/cellspaced fonts are. Therefore you can only use a small portion of your installed fixed sized fonts. Everyone is invited to implement double/multi byte character sets.

Show quoted text 5 lines
PS : great work guys with the editor ..i was sick and tired to edit the *.pp with vim and mc Now can jump from implementation to declaration faster :) and i have bookmarks too

:)

lazarus look like a real ide now !!

At least the source editor under linux.

Mattias

Reply by email

marius popa
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…

This should be put inside the howto
realy worth it

Also note that the "missing" gtk.ppu was solved for me when I deleted a stale /etc/ppc386.cfg (now only /etc/fpc.cfg should it used). Look if you have the /etc/ppc386.cfg and if so, remove it and see what happens.

I have tried to compile lazarus and now works good :)

Show quoted text 98 lines
Michal David Creelman wrote: >Hi Mattias, > >Here it is. > >The only change I made was in Makefile.fpc to try to get it to find gtk > > unitdir=lcl/units /usr/lib/fpc/1.0.6/units/linux/gtk lcl/u.... > >This didn't work, copying the ppu did. I'm using the 1.0.6 fpc rpm and >downloaded and installed the source rpm as well. > >Cheers >DC >On Sat, 2002-06-29 at 01:14, Mattias Gaertner wrote: > > >>On 29 Jun 2002 00:46:48 +1000 >>David Creelman wrote: >> >> >> >>>>Also you mentioned, that you just copied gtk.pp. I guess you ment gtk.ppu. >>>> >>>> >>>Yes. >>> >>> >>>>What about the other files in the /usr/lib/fpc/1.0.6/units/linux/gtk/ directory? >>>> >>>> >>>Yes I couldn't get it to compile until I copied over the .ppu to the >>>./lcl/units/gtk/ directory. The Makefile didn't seem to find them. I >>>looked at the directions in the FAQ and everything was okay, so I >>>thought I'd try copying the .ppus and it worked..... >>> >>> >>Hmm. You are now the third person with the gtk.ppu problem. It seems, that the compiler sometimes don't like it's own units. It always disappears mysteriously. Can you add the -va option to your fpc.cfg and do a 'make clean all' and send me the log plz? Perhaps I find out what the problem is. >>This 'make clean all' should erase your .ppus in lcl/units/gtk. >> >> >> >> >>>>>I don't have too much spare time, but I'd like to tinker. What needs >>>>>doing ? >>>>> >>>>> >>>>A lot of things. >>>>Do you like to help with the IDE (form editing, codetools, source editor, debugger, documentation), the LCL (components, images, docs) or the interfaces (components, images, docs)? >>>> >>>> >>>Are events working ? I tried to setup a FormShow event and it didn't >>>seem to work.... >>> >>>Form editing sounds interesting. There are lots of todos in >>>customformeditor.pas, the code looks pretty complicated. I'll give it a >>>go though. >>> >>> >>It would be nice, if you would send me comments/notes/annotations for the code. So that the next one will have it easier to participate. >> >> >> >> >>>Is this where I'd start looking ? >>> >>> >>Yes. Almost all form editing code can be found in the designer/ directory and in customformeditor.pp and main.pp. I'm currently busy with the gtk2 bindings, but I hope to return to the form editing next week. >> >> >> >> >>>....Also is there a unit test suite set up ??? >>> >>> >>No. But we definitely need one. Does anyone know a nice one? >> >> >>Mattias >> >>_________________________________________________________________ >> To unsubscribe: mail with >> "unsubscribe" as the Subject >> archives at http://www.miraclec.com/list_archives/lazarus >> >> > > > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Michael Van Canneyt
to marius popa: i want to run next code (create a Tstrings and then transmit it to a query ) tmpquery :=…
marius popa wrote 14 lines
i want to run next code (create a Tstrings and then transmit it to a query ) tmpquery := TFIBQuery.Create(Self); mysql:=Tstrings.Create(); mysql:='Select * from employee'; (*this is the line 152*) tmpquery.SetSQL(mysql); and this error kill me !! gtkfireadmin_main_form.pp(152,10) Error: Incompatible types: got "ANSISTRING" expected "TSTRINGS" but if i put this way (like in delphi ) tmpquery := TFIBQuery.Create(Self); mysql:=Tstrings.Create();

You cannot create an instance of TStrings, this is an abstract class. You must create a TStringList:
mysql:=TStringList.Create();

Show quoted text 6 lines
mysql.add('Select * from employee'); tmpquery.SetSQL(mysql); then the program compiles ok but if i run the code (ex when i push a button) the i have an AV (An unhandled exception occurred at 0x080BDFAC : Abstract method called

This is where you see that the TStrings is abstract. Normally, the compiler warns you if you try to
create abstract classes, so you should have had a warning.

Michael.

Reply by email

marius popa
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…

I think fixed fonts are better for the lazarus editor It looks better now . (or maybe is the gnome2 fonts) For beginners they should have the first contact
with lazarus fixed is better
Just an opinion ...
PS : great work guys with the editor ..i was sick and tired to edit the *.pp with vim and mc
Now can jump from implementation to declaration faster :) and i have bookmarks too lazarus look like a real ide now !!
Good Night/Day wherever you are ...

Reply by email

Michal Bukovjan
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…
marius popa wrote 8 lines
i want to run next code (create a Tstrings and then transmit it to a query ) tmpquery := TFIBQuery.Create(Self); mysql:=Tstrings.Create(); mysql:='Select * from employee'; (*this is the line 152*) tmpquery.SetSQL(mysql); and this error kill me !!

First, you should use TStringList, not TStrings, which is abstract, right?

Second, I think the assignment should be

mysql.Text:= 'Select * from employee';

Otherwise you are assigning a string to an object.

Michal

Reply by email

marius popa
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…
i want to run next code (create a Tstrings and then transmit it to a query )
  tmpquery := TFIBQuery.Create(Self);
  mysql:=Tstrings.Create();
  mysql:='Select * from employee';     (*this is the line 152*)
  tmpquery.SetSQL(mysql);

and this error kill me !!

gtkfireadmin_main_form.pp(152,10) Error: Incompatible types: got "ANSISTRING" expected "TSTRINGS"

but if i put this way (like in delphi )

  tmpquery := TFIBQuery.Create(Self);
  mysql:=Tstrings.Create();
  mysql.add('Select * from employee');
  tmpquery.SetSQL(mysql);

then the program compiles ok but if i run the code (ex when i push a button) the i have an AV (An unhandled exception occurred at 0x080BDFAC : Abstract method called
0x080BDFAC
0xBFFFE988 main, line 13 of graphics.pp)

Shure the same line is the problem
if comment the line
// mysql.add('Select * from employee');
and the next one the AV disapear ...

Reply by email

marius popa
to marius popa

Now it works (the TstringLIST part)
Let's see if i can run a query ... (create Tdatabase a TTransaction atach the query ...etc) I begin to love lazarus :)

ps: the kylix 3 OE is out but is big mama :300Meg
and have a bcb (c++) inside .

Show quoted text 41 lines
On Sun, 25 Aug 2002, marius popa wrote: > i want to run next code (create a Tstrings and then transmit it to a query ) > tmpquery := TFIBQuery.Create(Self); > mysql:=Tstrings.Create(); > mysql:='Select * from employee'; (*this is the line 152*) > tmpquery.SetSQL(mysql); > > and this error kill me !! > > gtkfireadmin_main_form.pp(152,10) Error: Incompatible types: got "ANSISTRING" expected "TSTRINGS" > > but if i put this way (like in delphi ) > > tmpquery := TFIBQuery.Create(Self); > mysql:=Tstrings.Create(); You cannot create an instance of TStrings, this is an abstract class. You must create a TStringList: mysql:=TStringList.Create(); > mysql.add('Select * from employee'); > tmpquery.SetSQL(mysql); > > then the program compiles ok but if i run the code (ex when i push a button) > the i have an AV (An unhandled exception occurred at 0x080BDFAC : > Abstract method called This is where you see that the TStrings is abstract. Normally, the compiler warns you if you try to create abstract classes, so you should have had a warning. Michael. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Marius Popa Adrian
to David Creelman: I click run and lazarus can't find classes.pas. There is a classes.ppu in the fpc path,…

Return-Path: { FAKE }
Received: from ACAT_2 ([62.47.65.23]) { Real Ip }
Subject: Your details
Date: Wed, 27 Aug 2003 11:58:49 +0200
X-MailScanner: Found to be clean .........

whois 62.47.65.23
[Querying whois.ripe.net]
[whois.ripe.net]
% This is the RIPE Whois server.
% The objects are in RPSL format.
%
% Rights restricted by copyright.
% See http://www.ripe.net/ripencc/pub-services/db/copyright.html

inetnum: 62.47.64.0 - 62.47.127.255
netname: TA-HIGHWAY-LLC
descr: Highway Customers
descr: Telekom Austria Aktiengesellschaft
country: AT

Reply by email

Markku Niskanen
to Mattias Gaertner: On 28 Jun 2002 00:40:13 +1000 classes.ppu is automatically in the searchpath of the…
Received: from ACAT_2 ([62.47.65.23]) { Real Ip }

Yes, this is exactly the same sender that I get viruses from and I get them at least half-a-dozen a day.

I have already reported about this user to Telekom Austria as that is where the sender seems to be from:

inetnum: 62.47.64.0 - 62.47.127.255
netname: TA-HIGHWAY-LLC
descr: Highway Customers
descr: Telekom Austria Aktiengesellschaft
country: AT

So, if Mr. ACAT_2 is on the list, please remove the virus from your system.

Markku

Reply by email

Markku Niskanen
to Mattias Gaertner: On 28 Jun 2002 00:40:13 +1000 classes.ppu is automatically in the searchpath of the…

Sorry a bit off-topic but....

Received: from ACAT_2 ([62.47.65.23]) { Real Ip }

This sender seems to be a real PITA, anyone else
suffering from this virus spreading machine?

I have threatened Telecom Austria with legal actions but they do not close the IP of this idiot. I have got "virus mails" from several members of this list and complaints from various ISPs for sending a virus.
The user must have been on this list, any idea who he might be?

I get around 10-20 virus mails/day from this IP, if you are experiencing the same, please report it to
Telekom Austria, the address to complain to is:

Markku

Reply by email

Solerman Kaplon
to Unknown author: You're lucky. 10-20 is nothing. I get on average 300 per day, fake virus reports which…
Marc Weustink wrote 6 lines
That wont help you. What helped for me was creating an inbox filter which triggers on the 6 different subjects and having an attachment. It moves the message directly to null. When the thing broke lose, I got an email every 5 mins, now none.

If someone are using mozilla or thunderbird, just enabled the junk control and mark the first messages as junk, it does the rest :)

Solerman

Reply by email

Markku Niskanen
to Markku Niskanen: Sorry a bit off-topic but.... This sender seems to be a real PITA, anyone else suffering…
you wrote
from my mail address. There is little you can do about it.

I suppose that is really the case... Just wondering why on earth an ISP is not willing to do anything about the matter. Well, I have a ready-made script that will send 500 copies of my request to the webmaster, I'll run that one tomorrow :)

On the other hand it is not that difficult to write a small PHP script that connects to the POP account, checks the message list and deletes the suspicious ones, this being done in a cron job every 15 minutes, for example.

Markku

Reply by email

Marc Weustink
to Unknown author: You're lucky. 10-20 is nothing. I get on average 300 per day, fake virus reports which…
Markku Niskanen wrote 6 lines
On Mon, 8 Sep 2003 20:48:40 +0200 (CEST), you wrote: >from my mail address. There is little you can do about it. I suppose that is really the case... Just wondering why on earth an ISP is not willing to do anything about the matter.

Some ISP'a are lazy and their abusebox is handled by /dev/null

Well, I have a ready-made script that will send 500 copies of my request to the webmaster, I'll run that one tomorrow :)

That wont help you.
What helped for me was creating an inbox filter which triggers on the 6 different subjects and having an attachment. It moves the message directly to null.
When the thing broke lose, I got an email every 5 mins, now none.

On the other hand it is not that difficult to write a small PHP script that connects to the POP account, checks the message list and deletes the suspicious ones, this being done in a cron job every 15 minutes, for example.

For instance :-)

Marc

Reply by email

Unknown author
to Markku Niskanen: Sorry a bit off-topic but.... This sender seems to be a real PITA, anyone else suffering…
Markku Niskanen wrote 15 lines
Sorry a bit off-topic but.... >Received: from ACAT_2 ([62.47.65.23]) { Real Ip } This sender seems to be a real PITA, anyone else suffering from this virus spreading machine? I have threatened Telecom Austria with legal actions but they do not close the IP of this idiot. I have got "virus mails" from several members of this list and complaints from various ISPs for sending a virus. The user must have been on this list, any idea who he might be? I get around 10-20 virus mails/day from this IP, if you

You're lucky. 10-20 is nothing.
I get on average 300 per day, fake virus reports which are supposedly sent from my mail address. There is little you can do about it.

Michael.

Reply by email