[fpc-pascal] Basically on the right track?

Patrick patrick at spellingbeewinnars.org
Sat Dec 29 17:18:25 CET 2012


Hi Again Sven

I don't know how I could have compiled the wrong file, I will stick to 
the Makefiles from now on to keep this simpler.

I switched over to Mint (I almost lost 2.5 TBs of data! but all is well 
now). I installed 2.6 from the repository. I have not installed a source 
based fpc.


I am still getting gtk related errors. If you could help me just a 
little more that would be great.

I wanted to see how far the problem spreads so I took the package folder 
from the source folder I downloaded and made a shell script that looks 
like this:


make   ./aspell
make   ./bfd
make   ./bzip2
and so on...

the results from calling make on each individual folder in the packages 
folder was not so bad:



:bash Pat_Make.sh > aaa_results
/usr/bin/ld: warning: ./link.res contains output sections; did you 
forget -T?
/usr/bin/ld: warning: ./link.res contains output sections; did you 
forget -T?
make[1]: *** [all] Error 1
make: *** [fastcgi] Error 2
make[1]: *** [all] Error 1
make: *** [fcl-web] Error 2
/usr/bin/ld: warning: ./link.res contains output sections; did you 
forget -T?


fastcgi and fcl-web seemed to give errors but that was all.


when I called make from inside gtk2 I got this:
:make
/usr/bin/ppcx64 -Fusrc -Fusrc/glib -Fusrc/atk -Fusrc/pango 
-Fusrc/pangocairo -Fusrc/gtk+/gdk-pixbuf -Fusrc/gtk+/gdk -Fusrc/gtk+/gtk 
-Fusrc/libglade -Fusrc/gtkglext -Fusrc/gtkext -Fusrc/gtk2x11 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/rtl 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/pasjpeg 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/hash 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/paszlib 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/fcl-base 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/fcl-image 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/x11 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/cairo -Fisrc/gtk2x11/include 
-FE. -FUunits/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/4.7 
-Flinclude -Fl/etc/ld.so.conf.d/*.conf -dx86_64 src/buildgtk2.pp
Free Pascal Compiler version 2.6.0-6 [2012/10/05] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling src/buildgtk2.pp
Compiling ./src/gtk+/gtk/gtk2.pas
Compiling ./src/glib/glib2.pas
goption.inc(67,1) Warning: Possible library conflict: symbol 
"g_cclosure_marshal_BOOLEAN__FLAGS" from library "libglib-2.0.so" also 
found in library "libgobject-2.0.so"
glib2.pas(1692,54) Warning: Converting pointers to signed integers may 
result in wrong comparison results and range errors, use an unsigned 
type instead.
glib2.pas(1719,17) Warning: Converting pointers to signed integers may 
result in wrong comparison results and range errors, use an unsigned 
type instead.
Compiling ./src/atk/atk.pas
Compiling ./src/pango/pango.pas
Compiling ./src/gtk+/gdk-pixbuf/gdk2pixbuf.pas
Compiling ./src/gtk+/gdk/gdk2.pas
gdktypes.inc(156,33) Warning: Converting pointers to signed integers may 
result in wrong comparison results and range errors, use an unsigned 
type instead.
gdktypes.inc(161,28) Warning: Converting pointers to signed integers may 
result in wrong comparison results and range errors, use an unsigned 
type instead.
Compiling ./src/libglade/libglade2.pas
Compiling ./src/gtkglext/gdkglext.pas
Compiling ./src/gtkglext/gtkglext.pas
Compiling ./src/gtkext/gtk2ext.pp
Compiling ./src/gtk2x11/gdk2x.pas
Compiling ./src/pangocairo/pangocairo.pas
180750 lines compiled, 0.7 sec
5 warning(s) issued



when I called make from inside the gtk2 examples I got:

:make
make -C helloworld all
make[1]: Entering directory 
`/home/patrick/modified_since_dec29_2012/programming/pascal_small_folder/packages2.6/gtk2/examples/helloworld'
/usr/bin/ppcx64 -Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/rtl 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/pasjpeg 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/hash 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/paszlib 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/fcl-base 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/fcl-image 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/x11 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/cairo 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/gtk2 -FE. -FUunits/x86_64-linux 
-Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/4.7 -Flinclude 
-Fl/etc/ld.so.conf.d/*.conf -dx86_64 helloworld.pas
Free Pascal Compiler version 2.6.0-6 [2012/10/05] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling helloworld.pas
helloworld.pas(28,11) Error: Incompatible types: got "Boolean32" 
expected "LongInt"
helloworld.pas(96) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[1]: *** [helloworld] Error 1
make[1]: Leaving directory 
`/home/patrick/modified_since_dec29_2012/programming/pascal_small_folder/packages2.6/gtk2/examples/helloworld'
make: *** [helloworld_all] Error 2
:

I also had similar errors inside the scribblin example:
/bin/mkdir -p units/x86_64-linux
/usr/bin/ppcx64 -Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/rtl 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/pasjpeg 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/hash 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/paszlib 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/fcl-base 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/fcl-image 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/x11 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/cairo 
-Fu/usr/lib/fpc/2.6.0/units/x86_64-linux/gtk2 -FE. -FUunits/x86_64-linux 
-Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/4.7 -Flinclude 
-Fl/etc/ld.so.conf.d/*.conf -dx86_64 scribble_simple.pas
Free Pascal Compiler version 2.6.0-6 [2012/10/05] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling scribble_simple.pas
scribble_simple.pas(27,36) Error: Incompatible type for arg no. 3: Got 
"Boolean32", expected "LongInt"
scribble_simple.pas(64,32) Error: Incompatible type for arg no. 3: Got 
"Boolean32", expected "LongInt"
scribble_simple.pas(89,23) Error: Incompatible types: got "Boolean32" 
expected "Int64"
scribble_simple.pas(171) Fatal: There were 3 errors compiling module, 
stopping
Fatal: Compilation aborted
make: *** [scribble_simple] Error 1




I was able to compile helloworld2 and run it without errors.

Sorry for the long email ! thanks for reading it-Patrick














More information about the fpc-pascal mailing list