Sign in Join

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

Mailing lists / lazarus / 2002-11

Problem compiling lazarus under new install of 1.0.7

9 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

David Creelman

Hi,

I followed Tony Maro's instructions for installing fpc 1.0.7 and at first had a problem getting gtkproc to compile. So then I downloaded unitsx11.tar.gz and got further, but now I get the following error.

make[3]: Entering directory
`/home/davidc/develop/lazarus/lcl/interfaces/gtk'
/bin/rm -f ../../units/gtk/interfaces.ppu ../../units/interfaces.ppu /usr/local/bin/ppc386 -gl -Fu../../units -Fu.
-Fu/usr/local/lib/fpc/1.0.7/units/linux/rtl
-Fu/usr/local/lib/fpc/1.0.7/units/linux/fcl
-Fu/usr/local/lib/fpc/1.0.7/units/linux/gtk
-Fu/usr/local/lib/fpc/1.0.7/units/linux/x11 -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.7 [2002/11/05] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386
Compiling interfaces.pp
Compiling gtkint.pp
gtkobject.inc(5760,28) Error: illegal call by reference parameters gtkobject.inc(5759,28) Error: illegal call by reference parameters gtkobject.inc(5758,28) Error: illegal call by reference parameters gtkobject.inc(5757,28) Error: illegal call by reference parameters gtkint.pp(628) Fatal: There were 4 errors compiling module, stopping make[3]: *** [interfaces.ppu] Error 1
make[3]: Leaving directory
`/home/davidc/develop/lazarus/lcl/interfaces/gtk'
make[2]: *** [gtk_all] Error 2
make[2]: Leaving directory `/home/davidc/develop/lazarus/lcl/interfaces' make[1]: *** [interfaces] Error 2
make[1]: Leaving directory `/home/davidc/develop/lazarus/lcl' make: *** [lcl] Error 2
lazarus]$

What am I doing wrong here ?

Cheers
David

Reply by email

Tony Maro
to David Creelman
David Creelman wrote
Hi, I followed Tony Maro's instructions for installing fpc 1.0.7 and at

Well there's your first problem - I obviously don't know what I'm doing. ;-D

first had a problem getting gtkproc to compile. So then I downloaded unitsx11.tar.gz and got further, but now I get the following error.

I have never seen that one but I would lean towards that you might be missing another unit maybe? Or the fpc.conf file is not right somehow.

Did you download and extract ALL the FPC units, or just the few I noted that I had learned were required? Things have changed a bit since I specified those few. Last time I did an install I just automatically grabbed all the FPC units and installed them all. Part of the problem of guessing just which units to install is that FPC 1.0.7 has still changed some, and I think they moved some things around or something...

If you figure out that my possible required units list is missing one or more specific units, let me know which ones and I'll update it.

I installed a fresh copy about 1 week ago, and installed ALL the units and it worked fine. I didn't try to piecemeal it because I knew sooner or later I would need them anyway...

Oh, you don't happen to still have some 1.0.6 files still installed do you? I got weird problems when I accidentally mismatched some things once.

Thanks,

Tony

Reply by email

David Creelman
to Marc Weustink: + From: Tony Maro + + What I meant was, I wonder if there are other units you didn't…

Hi Marc,

I installed the RPM (fpc and the src rpm) and I think I'm nearly there, but I can't find syslinux now...

Which of the tar files is that in ?... Or alternatively is there another rpm I can get with syslinux in it ?

Cheers
DC

Marc Weustink wrote 18 lines
+ From: Tony Maro + + What I meant was, I wonder if there are other units you didn't install. + Placing them in the full path like you've done shouldn't be necessary. + Did you download all the units, or just a few? + + I'm not aware of an up-to-date RPM for FPC 1.0.7. In fact, I'm not + aware of a single package for 1.0.7 at all. AFAIK there should be one at the website. Marc _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Marc Weustink
to David Creelman

+ From: David Creelman
+
+ Hi Marc,
+
+ I installed the RPM (fpc and the src rpm) and I think I'm nearly there,
+ but I can't find syslinux now...

If i recall it correctly somewhere in fpc/rtl/linux/syslinux (I've no Linux here)

+ Which of the tar files is that in ?... Or alternatively is there another
+ rpm I can get with syslinux in it ?

But try also the example of MArco

Marc

Reply by email

andrew johnson
to David Creelman: I followed Tony Maro's instructions for installing fpc 1.0.7 and at first had a problem…

Umm according to current CVS, those lines are the lines which set the Pen style parameters. Based on this I can only assume you have an older version, or incorrect version of the gdk unit. Certain versions of GDK had gdk_gc_set_dashes dash parameters in array of Char instead of Byte, I believe up until 1.0.4. This was actually a problem I had noticed in Win32 more than Linux. I would suggest getting the 1.0.7 gtk nightly. If it is still an issue it is likely that something else is wrong. BTW there is an older 1.0.7 version(september) available as a RPM from the Lazarus FTP site, it should include all necessary units.

To test and see If I am right about the problems, change the problem lines from :

       PS_DASH:       gdk_gc_set_dashes(GC, 0, [4,4], 2);
       PS_DOT:        gdk_gc_set_dashes(GC, 0, [2,2], 2);
       PS_DASHDOT:    gdk_gc_set_dashes(GC, 0, [4,2,2,2,0], 4);
       PS_DASHDOTDOT: gdk_gc_set_dashes(GC, 0, [4,2,2,2,2,2], 6);

TO:

       PS_DASH:       gdk_gc_set_dashes(GC, 0, [#4,#4], 2);
       PS_DOT:        gdk_gc_set_dashes(GC, 0, [#2,#2], 2);
       PS_DASHDOT:    gdk_gc_set_dashes(GC, 0, [#4,#2,#2,#2,#0],4);
       PS_DASHDOTDOT: gdk_gc_set_dashes(GC, 0, [#4,#2,#2,#2,#2,#2],6);

Andrew

David Creelman wrote 74 lines
Hi Tony, Thanks for that. However, that didn't fix the problem. I put the file that was missing into the search path, but now I get this error... Is there an RPM with all of this setup for 1.0.7 ? /bin/rm -f ../../units/gtk/interfaces.ppu ../../units/interfaces.ppu /usr/local/bin/ppc386 -gl -Fu../../units -Fu. -Fu/usr/local/lib/fpc/1.0.7/units/linux/rtl -Fu/usr/local/lib/fpc/1.0.7/units/linux/fcl -Fu/usr/local/lib/fpc/1.0.7/units/linux/gtk -Fu/usr/local/lib/fpc/1.0.7/units/linux/x11 -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.7 [2002/11/05] for i386 Copyright (c) 1993-2002 by Florian Klaempfl Target OS: Linux for i386 Compiling interfaces.pp Compiling gtkint.pp gtkobject.inc(5760,28) Error: illegal call by reference parameters gtkobject.inc(5759,28) Error: illegal call by reference parameters gtkobject.inc(5758,28) Error: illegal call by reference parameters gtkobject.inc(5757,28) Error: illegal call by reference parameters gtkint.pp(628) Fatal: There were 4 errors compiling module, stopping make[3]: *** [interfaces.ppu] Error 1 make[3]: Leaving directory `/home/davidc/develop/lazarus/lcl/interfaces/gtk' make[2]: *** [gtk_all] Error 2 make[2]: Leaving directory `/home/davidc/develop/lazarus/lcl/interfaces' make[1]: *** [interfaces] Error 2 make[1]: Leaving directory `/home/davidc/develop/lazarus/lcl' make: *** [lcl] Error 2 lazarus]$ Cheers DC On Wed, 2002-11-06 at 05:58, Tony Maro wrote: > On Tue, 2002-11-05 at 06:58, David Creelman wrote: > > Hi, > > > > I followed Tony Maro's instructions for installing fpc 1.0.7 and at > > Well there's your first problem - I obviously don't know what I'm doing. > ;-D > > > first had a problem getting gtkproc to compile. So then I downloaded > > unitsx11.tar.gz and got further, but now I get the following error. > > I have never seen that one but I would lean towards that you might be > missing another unit maybe? Or the fpc.conf file is not right somehow. > > Did you download and extract ALL the FPC units, or just the few I noted > that I had learned were required? Things have changed a bit since I > specified those few. Last time I did an install I just automatically > grabbed all the FPC units and installed them all. Part of the problem > of guessing just which units to install is that FPC 1.0.7 has still > changed some, and I think they moved some things around or something... > > If you figure out that my possible required units list is missing one or > more specific units, let me know which ones and I'll update it. > > I installed a fresh copy about 1 week ago, and installed ALL the units > and it worked fine. I didn't try to piecemeal it because I knew sooner > or later I would need them anyway... > > Oh, you don't happen to still have some 1.0.6 files still installed do > you? I got weird problems when I accidentally mismatched some things > once. > > Thanks, > > Tony >

Reply by email

David Creelman
to David Creelman: I followed Tony Maro's instructions for installing fpc 1.0.7 and at first had a problem…

Hi Tony,
Thanks for that. However, that didn't fix the problem. I put the file that was missing into the search path, but now I get this error...

Is there an RPM with all of this setup for 1.0.7 ?

/bin/rm -f ../../units/gtk/interfaces.ppu ../../units/interfaces.ppu /usr/local/bin/ppc386 -gl -Fu../../units -Fu.
-Fu/usr/local/lib/fpc/1.0.7/units/linux/rtl
-Fu/usr/local/lib/fpc/1.0.7/units/linux/fcl
-Fu/usr/local/lib/fpc/1.0.7/units/linux/gtk
-Fu/usr/local/lib/fpc/1.0.7/units/linux/x11 -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.7 [2002/11/05] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386
Compiling interfaces.pp
Compiling gtkint.pp
gtkobject.inc(5760,28) Error: illegal call by reference parameters gtkobject.inc(5759,28) Error: illegal call by reference parameters gtkobject.inc(5758,28) Error: illegal call by reference parameters gtkobject.inc(5757,28) Error: illegal call by reference parameters gtkint.pp(628) Fatal: There were 4 errors compiling module, stopping make[3]: *** [interfaces.ppu] Error 1
make[3]: Leaving directory
`/home/davidc/develop/lazarus/lcl/interfaces/gtk'
make[2]: *** [gtk_all] Error 2
make[2]: Leaving directory `/home/davidc/develop/lazarus/lcl/interfaces' make[1]: *** [interfaces] Error 2
make[1]: Leaving directory `/home/davidc/develop/lazarus/lcl' make: *** [lcl] Error 2
lazarus]$

Cheers
DC

Tony Maro wrote 40 lines
On Tue, 2002-11-05 at 06:58, David Creelman wrote: > Hi, > > I followed Tony Maro's instructions for installing fpc 1.0.7 and at Well there's your first problem - I obviously don't know what I'm doing. ;-D > first had a problem getting gtkproc to compile. So then I downloaded > unitsx11.tar.gz and got further, but now I get the following error. I have never seen that one but I would lean towards that you might be missing another unit maybe? Or the fpc.conf file is not right somehow. Did you download and extract ALL the FPC units, or just the few I noted that I had learned were required? Things have changed a bit since I specified those few. Last time I did an install I just automatically grabbed all the FPC units and installed them all. Part of the problem of guessing just which units to install is that FPC 1.0.7 has still changed some, and I think they moved some things around or something... If you figure out that my possible required units list is missing one or more specific units, let me know which ones and I'll update it. I installed a fresh copy about 1 week ago, and installed ALL the units and it worked fine. I didn't try to piecemeal it because I knew sooner or later I would need them anyway... Oh, you don't happen to still have some 1.0.6 files still installed do you? I got weird problems when I accidentally mismatched some things once. Thanks, Tony _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Marco van de Voort
to David Creelman: I installed the RPM (fpc and the src rpm) and I think I'm nearly there, but I can't find…
Show quoted text 5 lines
I installed the RPM (fpc and the src rpm) and I think I'm nearly there, but I can't find syslinux now... Which of the tar files is that in ?... Or alternatively is there another rpm I can get with syslinux in it ?

It should be in there. If it complains, ppc386.cfg or fpc.cfg probably point to the old RTL (which the compiler refuses).

I usually compile a small helloworld program with -vt or -va as extra parameter in such cases, and try to find out where the compiler is looking.

Reply by email

Tony Maro
to David Creelman: I followed Tony Maro's instructions for installing fpc 1.0.7 and at first had a problem…

What I meant was, I wonder if there are other units you didn't install. Placing them in the full path like you've done shouldn't be necessary. Did you download all the units, or just a few?

I'm not aware of an up-to-date RPM for FPC 1.0.7. In fact, I'm not

David Creelman wrote 35 lines
Hi Tony, Thanks for that. However, that didn't fix the problem. I put the file that was missing into the search path, but now I get this error... Is there an RPM with all of this setup for 1.0.7 ? /bin/rm -f ../../units/gtk/interfaces.ppu ../../units/interfaces.ppu /usr/local/bin/ppc386 -gl -Fu../../units -Fu. -Fu/usr/local/lib/fpc/1.0.7/units/linux/rtl -Fu/usr/local/lib/fpc/1.0.7/units/linux/fcl -Fu/usr/local/lib/fpc/1.0.7/units/linux/gtk -Fu/usr/local/lib/fpc/1.0.7/units/linux/x11 -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.7 [2002/11/05] for i386 Copyright (c) 1993-2002 by Florian Klaempfl Target OS: Linux for i386 Compiling interfaces.pp Compiling gtkint.pp gtkobject.inc(5760,28) Error: illegal call by reference parameters gtkobject.inc(5759,28) Error: illegal call by reference parameters gtkobject.inc(5758,28) Error: illegal call by reference parameters gtkobject.inc(5757,28) Error: illegal call by reference parameters gtkint.pp(628) Fatal: There were 4 errors compiling module, stopping make[3]: *** [interfaces.ppu] Error 1 make[3]: Leaving directory `/home/davidc/develop/lazarus/lcl/interfaces/gtk' make[2]: *** [gtk_all] Error 2 make[2]: Leaving directory `/home/davidc/develop/lazarus/lcl/interfaces' make[1]: *** [interfaces] Error 2 make[1]: Leaving directory `/home/davidc/develop/lazarus/lcl' make: *** [lcl] Error 2 lazarus]$

Reply by email

Marc Weustink
to Tony Maro

+ From: Tony Maro
+
+ What I meant was, I wonder if there are other units you didn't install.
+ Placing them in the full path like you've done shouldn't be necessary.
+ Did you download all the units, or just a few?
+
+ I'm not aware of an up-to-date RPM for FPC 1.0.7. In fact, I'm not
+ aware of a single package for there should be one at the website.

Marc

Reply by email