Sign in Join

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

Mailing lists / lazarus / 2008-10

intrepid and lazarus

9 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Andrea Mauri

Dear all,
I just upgraded to Ubuntu Intrepid Ibex but just compiling a new project in lazarus I obtain:

Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 2.2.2 [2008/07/30] for i386 Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Linux for i386
Compiling /home/giacca/lazarus_projects/tmp/project1.lpr Compiling unit1.pas
Linking /home/giacca/lazarus_projects/tmp/project1 /usr/lib/fpc/2.2.2/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_FILE_SYSTEM_ERROR$$LONGWORD':
gtk2.pas:(.text+0xb7b1): undefined reference to
`gtk_file_system_error_quark'
/usr/lib/fpc/2.2.2/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_INFO$$LONGWORD':
gtk2.pas:(.text+0xb7c1): undefined reference to `gtk_file_info_get_type' /usr/lib/fpc/2.2.2/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_SYSTEM$$LONGWORD':
gtk2.pas:(.text+0xb7d1): undefined reference to `gtk_file_system_get_type' /usr/lib/fpc/2.2.2/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_FOLDER$$LONGWORD':
gtk2.pas:(.text+0xb851): undefined reference to `gtk_file_folder_get_type' project1.lpr(20,1) Error: Error while linking
/usr/lib/fpc/2.2.2/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_FILE_SYSTEM_ERROR$$LONGWORD':
gtk2.pas:(.text+0xb7b1): undefined reference to
`gtk_file_system_error_quark'
/usr/lib/fpc/2.2.2/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_INFO$$LONGWORD':
gtk2.pas:(.text+0xb7c1): undefined reference to `gtk_file_info_get_type' /usr/lib/fpc/2.2.2/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_SYSTEM$$LONGWORD':
gtk2.pas:(.text+0xb7d1): undefined reference to `gtk_file_system_get_type' /usr/lib/fpc/2.2.2/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_FOLDER$$LONGWORD':
gtk2.pas:(.text+0xb851): undefined reference to `gtk_file_folder_get_type' project1.lpr(20,1) Error: Error while linking
project1.lpr(20,1) Fatal: There were 1 errors compiling module, stopping

I have
Lazarus v0.9.27 r17165M i386-linux-gtk 2 (beta) fpc 2.2.2 Have I to upgrade to fpc 2.3?
Thanks,
Andrea

Dr. Andrea Mauri, PhD Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto: http://michem.disat.unimib.it/chm/

Reply by email

Mattias Gaertner
to Andrea Mauri
Show quoted text 14 lines
Dear all, I just upgraded to Ubuntu Intrepid Ibex but just compiling a new project in lazarus I obtain: [...] Linking /home/giacca/lazarus_projects/tmp/project1 /usr/lib/fpc/2.2.2/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_FILE_SYSTEM_ERROR$$LONGWORD': gtk2.pas:(.text+0xb7b1): undefined reference to `gtk_file_system_error_quark' [...] I have Lazarus v0.9.27 r17165M i386-linux-gtk 2 (beta) fpc 2.2.2 Have I to upgrade to fpc 2.3?

Yes.

Mattias

Reply by email

Vincent Snijders
to Mattias Gaertner
Mattias Gaertner wrote 19 lines
On Fri, 31 Oct 2008 18:52:30 +0100 Andrea Mauri wrote: > Dear all, > I just upgraded to Ubuntu Intrepid Ibex but just compiling a new > project in lazarus I obtain: > > [...] > Linking /home/giacca/lazarus_projects/tmp/project1 > /usr/lib/fpc/2.2.2/units/i386-linux/gtk2/gtk2.o: In function > `GTK2_GTK_FILE_SYSTEM_ERROR$$LONGWORD': > gtk2.pas:(.text+0xb7b1): undefined reference to > `gtk_file_system_error_quark' > [...] > I have > Lazarus v0.9.27 r17165M i386-linux-gtk 2 (beta) fpc 2.2.2 > Have I to upgrade to fpc 2.3? Yes.

Or fpc 2.2.3.

Vincent

Reply by email

Andrea Mauri
to Vincent Snijders

but how can I install 2.3.x fpc? I downloaded fpcbuild.zip, what I have to do now? I have to uninstall fpc 2.2.2 before?
andrea

Vincent Snijders ha scritto:

Show quoted text 33 lines
Mattias Gaertner schreef: > On Fri, 31 Oct 2008 18:52:30 +0100 > Andrea Mauri wrote: > > >> Dear all, >> I just upgraded to Ubuntu Intrepid Ibex but just compiling a new >> project in lazarus I obtain: >> >> [...] >> Linking /home/giacca/lazarus_projects/tmp/project1 >> /usr/lib/fpc/2.2.2/units/i386-linux/gtk2/gtk2.o: In function >> `GTK2_GTK_FILE_SYSTEM_ERROR$$LONGWORD': >> gtk2.pas:(.text+0xb7b1): undefined reference to >> `gtk_file_system_error_quark' >> [...] >> I have >> Lazarus v0.9.27 r17165M i386-linux-gtk 2 (beta) fpc 2.2.2 >> Have I to upgrade to fpc 2.3? >> > Yes. > Or fpc 2.2.3. Vincent _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Dr. Andrea Mauri, PhD Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto: http://michem.disat.unimib.it/chm/

Reply by email

Andrea Mauri
to Mattias Gaertner

It seems not so easy to install fpc 2.3.
I tried your link, after the fist step:

$MAKE all OPT='-gl -O3p3' PP=ppc386

I got:
Makefile:2261: *** No libgdb.a found, supply NOGDB=1 to disable debugger support. Stop.

So I used:
make all OPT='gl -O3p3' NOGDB=1 PP=ppc386

and I got this error and the compilation aborted:

/home/giacca/programmi/fpc-2.3/fpcsrc/compiler/ppc386 -XX -CX -Ur -Xs -O2 -n -Fu/home/giacca/programmi/fpc-2.3/fpcsrc/rtl/units/i386-linux -Fisrc -FE. -FUunits/i386-linux gl -O3p3 -di386 -dRELEASE src/aspell.pp aspell.pp(1580,1) Error: Illegal expression
aspell.pp(1580,10) Fatal: Syntax error, ";" expected but "identifier ASPELL_LOADED" found Fatal: Compilation aborted
make[5]: *** [aspell.ppu] Error 1
make[5]: Leaving directory `/home/giacca/programmi/fpc-2.3/fpcsrc/packages/aspell' make[4]: *** [fpc_smart] Error 2
make[4]: Leaving directory `/home/giacca/programmi/fpc-2.3/fpcsrc/packages/aspell' make[3]: *** [aspell_smart] Error 2
make[3]: Leaving directory `/home/giacca/programmi/fpc-2.3/fpcsrc/packages' make[2]: *** [packages_smart] Error 2
make[2]: Leaving directory `/home/giacca/programmi/fpc-2.3/fpcsrc' make[1]: *** [build-stamp.i386-linux] Error 2
make[1]: Leaving directory `/home/giacca/programmi/fpc-2.3/fpcsrc' make: *** [fpcsrc/build-stamp.i386-linux] Error 2

Suggestions?
Andrea

Mattias Gaertner ha scritto:

Show quoted text 22 lines
On Fri, 31 Oct 2008 21:37:02 +0100 Andrea Mauri wrote: > but how can I install 2.3.x fpc? I downloaded fpcbuild.zip, what I > have to do now? I have to uninstall fpc 2.2.2 before? > No. Both can live happily together. Have you tried http://wiki.lazarus.freepascal.org/Installing_Lazarus#Installing_Free_Pascal_under_Linux.2FBSD_manually ? Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Dr. Andrea Mauri, PhD Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto: http://michem.disat.unimib.it/chm/

Reply by email

Andrea Mauri
to Mattias Gaertner: On Fri, 31 Oct 2008 21:37:02 +0100 No. Both can live happily together. Have you tried…

Again, I got the previous error downloading fpcbuild.zip from http://www.freepascal.org/develop.var
While using fpc.zip and running:
make all OPT='gl -O3p3' PP=ppc386
I got:

/home/giacca/programmi/fpc/compiler/ppc386 -di386
-Fl/home/giacca/programmi/fpc/libgdb/linux/i386 -Ur -Xs -O2 -n -Sg -Fu/home/giacca/programmi/fpc/rtl/units/i386-linux -Fu/home/giacca/programmi/fpc/packages/fv/units/i386-linux -Fu/home/giacca/programmi/fpc/packages/gdbint/units/i386-linux -Fu/home/giacca/programmi/fpc/packages/regexpr/units/i386-linux -Fu/home/giacca/programmi/fpc/packages/fcl-base/units/i386-linux -Fu/home/giacca/programmi/fpc/packages/fcl-xml/units/i386-linux -Fu/home/giacca/programmi/fpc/packages/chm/units/i386-linux -FE. -FUunits/i386-linux -Fl/usr/lib/gcc/i486-linux-gnu/4.3.2 -Flinclude -Fl/etc/ld.so.conf.d/*.conf gl -O3p3 -dRELEASE fp.pas /usr/bin/ld: cannot find -lncurses
fp.pas(566,1) Error: Error while linking
fp.pas(566,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
make[4]: *** [fp] Error 1
make[4]: Leaving directory `/home/giacca/programmi/fpc/ide' make[3]: *** [buildfp] Error 2
make[3]: Leaving directory `/home/giacca/programmi/fpc/ide' make[2]: *** [gdb] Error 2
make[2]: Leaving directory `/home/giacca/programmi/fpc/ide' make[1]: *** [ide_all] Error 2
make[1]: Leaving directory `/home/giacca/programmi/fpc' make: *** [build-stamp.i386-linux] Error 2

Suggestions?
Andrea

Mattias Gaertner ha scritto:

Show quoted text 22 lines
On Fri, 31 Oct 2008 21:37:02 +0100 Andrea Mauri wrote: > but how can I install 2.3.x fpc? I downloaded fpcbuild.zip, what I > have to do now? I have to uninstall fpc 2.2.2 before? > No. Both can live happily together. Have you tried http://wiki.lazarus.freepascal.org/Installing_Lazarus#Installing_Free_Pascal_under_Linux.2FBSD_manually ? Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Dr. Andrea Mauri, PhD Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto: http://michem.disat.unimib.it/chm/

Reply by email

Vincent Snijders
to Andrea Mauri: It seems not so easy to install fpc 2.3. I tried your link, after the fist step: $MAKE…
Andrea Mauri wrote 18 lines
It seems not so easy to install fpc 2.3. I tried your link, after the fist step: $MAKE all OPT='-gl -O3p3' PP=ppc386 I got: Makefile:2261: *** No libgdb.a found, supply NOGDB=1 to disable debugger support. Stop. So I used: make all OPT='gl -O3p3' NOGDB=1 PP=ppc386 and I got this error and the compilation aborted: /home/giacca/programmi/fpc-2.3/fpcsrc/compiler/ppc386 -XX -CX -Ur -Xs -O2 -n -Fu/home/giacca/programmi/fpc-2.3/fpcsrc/rtl/units/i386-linux -Fisrc -FE. -FUunits/i386-linux gl -O3p3 -di386 -dRELEASE src/aspell.pp aspell.pp(1580,1) Error: Illegal expression aspell.pp(1580,10) Fatal: Syntax error, ";" expected but "identifier ASPELL_LOADED" found Fatal: Compilation aborted

You got a buggy version of the source snapshot. As you noticed (with fpc.zip), today's snapshot doesn't have it (also fixed in fpcbuild.zip).

Vincent

Reply by email

Vincent Snijders
to Andrea Mauri: Again, I got the previous error downloading fpcbuild.zip from…
Andrea Mauri wrote 7 lines
Again, I got the previous error downloading fpcbuild.zip from http://www.freepascal.org/develop.var While using fpc.zip and running: make all OPT='gl -O3p3' PP=ppc386 /usr/bin/ld: cannot find -lncurses fp.pas(566,1) Error: Error while linking fp.pas(566,1) Fatal: There were 1 errors compiling module, stopping

See wiki:
http://wiki.lazarus.freepascal.org/Linker_message:_cannot_find_-l and FAQ:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#I_receive_an_error_during_the_linking_that_states_.2Fusr.2Fbin.2Fld_can.27t_find_-l.3Csome_lib.3E

Vincent

Reply by email