bklaptop:~/pascal/dgi>gtk-config --version 1.2.10 Running a stock Debian Woody system.…
you wrote 5 lines
Yep.. it's all stored in /usr/src/fpc/units..
My fpc installation is fine, and this build ok up until recently.

Mailing lists / lazarus / 2002-11
9 messages · 3 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
bklaptop:~/pascal/dgi>gtk-config --version 1.2.10 Running a stock Debian Woody system.…
Yep.. it's all stored in /usr/src/fpc/units..
My fpc installation is fine, and this build ok up until recently.
I'm using latest CVS compiler and Lazarus Build fails with this error. Any ideas ?…
you wrotehmm second person with this problem. Can you tell me what version of GDK and GTK+ you have? (gtk-config --version)
bklaptop:~/pascal/dgi>gtk-config --version
1.2.10
Running a stock Debian Woody system.
Brad
G'day all,
I'm using latest CVS compiler and Lazarus
Build fails with this error.
Any ideas ?
make[3]: Entering directory `/usr/src/fpc/lazarus/lcl/interfaces/gtk' /bin/rm -f ../../units/gtk/interfaces.ppu ../../units/interfaces.ppu /usr/src/fpc/bin/ppc386 -gl -Fu../../units -Fu. -FU../../units/gtk -Fl/usr/lib/gcc-lib/i386-linux/2.95.4 -Fl/usr/X11R6/lib -Fl/usr/local/lib -Fl/usr/lib/libc5-compat -Fl/lib/libc5-compat -Fl/usr/local/wine/lib -Fl/usr/lib -Fl/usr/local/i386-linux-uclibc/lib -Fl/home/brad/embeded/temp/lib -Fl/usr/i486-linuxlibc1/lib -di386 interfaces.pp Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 1.0.7 [2002/11/12] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Hint: Path "/usr/lib/fpc/1.0.7/units/linux/" not found Hint: Path "/usr/lib/fpc/1.0.7/units/linux/rtl/" not found Target OS: Linux for i386
Compiling interfaces.pp
Compiling gtkint.pp
gtkobject.inc(2161,3) Hint: Parameter LEFT not used gtkobject.inc(2161,9) Hint: Parameter TOP not used gtkobject.inc(2161,14) Hint: Parameter WIDTH not used gtkobject.inc(2161,21) Hint: Parameter HEIGHT not used gtkobject.inc(5093,39) Hint: use DIV instead to get an integer result gtkobject.inc(5094,47) Hint: use DIV instead to get an integer result gtkobject.inc(5095,48) Hint: use DIV instead to get an integer result gtkobject.inc(5802,28) Error: illegal call by reference parameters gtkobject.inc(5801,28) Error: illegal call by reference parameters gtkobject.inc(5800,28) Error: illegal call by reference parameters gtkobject.inc(5799,28) Error: illegal call by reference parameters gtkwinapi.inc(3678,42) Hint: use DIV instead to get an integer result gtkwinapi.inc(3684,42) Hint: use DIV instead to get an integer result gtkint.pp(637) Fatal: There were 4 errors compiling module, stopping make[3]: *** [interfaces.ppu] Error 1
make[3]: Leaving directory `/usr/src/fpc/lazarus/lcl/interfaces/gtk' make[2]: *** [gtk_all] Error 2
make[2]: Leaving directory `/usr/src/fpc/lazarus/lcl/interfaces' make[1]: *** [interfaces] Error 2
make[1]: Leaving directory `/usr/src/fpc/lazarus/lcl' make: *** [lcl] Error 2
bklaptop:/usr/src/fpc/lazarus>
Yep.. it's all stored in /usr/src/fpc/units.. My fpc installation is fine, and this build…
Free Pascal Compiler version 1.0.7 [2002/11/12] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Hint: Path "/usr/lib/fpc/1.0.7/units/linux/" not found Hint: Path "/usr/lib/fpc/1.0.7/units/linux/rtl/" not found Target OS: Linux for i386
Compiling interfaces.pp
Compiling gtkint.pp
gtkobject.inc(2161,3) Hint: Parameter LEFT not used gtkobject.inc(2161,9) Hint: Parameter TOP not used gtkobject.inc(2161,14) Hint: Parameter WIDTH not used gtkobject.inc(2161,21) Hint: Parameter HEIGHT not used gtkobject.inc(5093,39) Hint: use DIV instead to get an integer result gtkobject.inc(5094,47) Hint: use DIV instead to get an integer result gtkobject.inc(5095,48) Hint: use DIV instead to get an integer result gtkobject.inc(5799,53) Error: Incompatible type for arg no. 3: Got Array Of CHAR, expected Array Of SHORTINT gtkobject.inc(5800,53) Error: Incompatible type for arg no. 3: Got Array Of CHAR, expected Array Of SHORTINT gtkobject.inc(5801,53) Error: Incompatible type for arg no. 3: Got Array Of CHAR, expected Array Of SHORTINT gtkobject.inc(5802,53) Error: Incompatible type for arg no. 3: Got Array Of CHAR, expected Array Of SHORTINT gtkwinapi.inc(3678,42) Hint: use DIV instead to get an integer result gtkwinapi.inc(3684,42) Hint: use DIV instead to get an integer result gtkint.pp(637) Fatal: There were 4 errors compiling module, stopping make[3]: *** [interfaces.ppu] Error 1
make[3]: Leaving directory `/usr/src/fpc/lazarus/lcl/interfaces/gtk' make[2]: *** [gtk_all] Error 2
make[2]: Leaving directory `/usr/src/fpc/lazarus/lcl/interfaces' make[1]: *** [interfaces] Error 2
make[1]: Leaving directory `/usr/src/fpc/lazarus/lcl' make: *** [lcl] Error 2
I'm using latest CVS compiler and Lazarus Build fails with this error. Any ideas ?…
hmm second person with this problem. Can you tell me what version of GDK and GTK+ you have? (gtk-config --version)
Andrew
I'm using latest CVS compiler and Lazarus Build fails with this error. Any ideas ?…
Hint: Path "/usr/lib/fpc/1.0.7/units/linux/" not found Hint: Path "/usr/lib/fpc/1.0.7/units/linux/rtl/" not found
so then where ARE your units? perhaps its using the wrong units.. have you made sure to update your fpc.cfg to point to the proper location?
Andrew
bklaptop:~/pascal/dgi>gtk-config --version 1.2.10 Running a stock Debian Woody system.…
well since I can only guess at what might be causing the problems. I would suggest trying what I told David:
Try to change the problem lines(5799-5802) 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);if it works.. let me know and I will see about adding a #define char_dashes, as a work around.
Andrew
Yep.. it's all stored in /usr/src/fpc/units.. My fpc installation is fine, and this build…
you wrotewell since I can only guess at what might be causing the problems. I would suggest trying what I told David:
It's compiler related.
2002/7/24 works fine
Latest CVS causes the problem.
Brad
Yep.. it's all stored in /usr/src/fpc/units.. My fpc installation is fine, and this build…
It's known, that fpc has problems converting 'array of const' parameters to different calling conventions. But it seems, that there is also a problem with converting 'array of' parameters.
So, I have defined a laz_gdk_gc_set_dashes external procedure that uses a Pgint8 instead of an 'array of gint8'.
You should now be able to compile lazarus.
Perhaps this should be changed in the gdkmain.pp of the fpc package. IMO a pointer makes here more sense anyway.
Mattias