Sign in Join

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

Mailing lists / lazarus / 2008-08

problems building lazarus

8 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Lord Satan

Hi,

trying to build lazarus I get this error on ubuntu 8.04 64-bit:

Linking ../startlazarus
/usr/lib/fpc/2.3.1/units/x86_64-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_DEFAULT$$QWORD': gtk2.pas:(.text+0xd43d): undefined reference to `_gtk_file_chooser_default_get_type' /usr/lib/fpc/2.3.1/units/x86_64-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_EMBED$$QWORD': gtk2.pas:(.text+0xd58d): undefined reference to `_gtk_file_chooser_embed_get_type' /usr/lib/fpc/2.3.1/units/x86_64-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_ENTRY$$QWORD': gtk2.pas:(.text+0xd61d): undefined reference to `_gtk_file_chooser_entry_get_type' startlazarus.lpr(51,1) Error: Error while linking
/usr/lib/fpc/2.3.1/units/x86_64-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_DEFAULT$$QWORD': gtk2.pas:(.text+0xd43d): undefined reference to `_gtk_file_chooser_default_get_type' /usr/lib/fpc/2.3.1/units/x86_64-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_EMBED$$QWORD': gtk2.pas:(.text+0xd58d): undefined reference to `_gtk_file_chooser_embed_get_type' /usr/lib/fpc/2.3.1/units/x86_64-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_ENTRY$$QWORD': gtk2.pas:(.text+0xd61d): undefined reference to `_gtk_file_chooser_entry_get_type' /home/satan/pascal/lazarus/ide/startlazarus.lpr(51,1) Error: Error while linking /home/satan/pascal/lazarus/ide/startlazarus.lpr(51,1) Fatal: There were 1 errors compiling module, stopping

lazarus rev: 16177
fpc 2.3.1 rev: 11621

Reply by email

Vincent Snijders
to Lord Satan
Lord Satan wrote 21 lines
Hi, trying to build lazarus I get this error on ubuntu 8.04 64-bit: Linking ../startlazarus /usr/lib/fpc/2.3.1/units/x86_64-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_DEFAULT$$QWORD': gtk2.pas:(.text+0xd43d): undefined reference to `_gtk_file_chooser_default_get_type' /usr/lib/fpc/2.3.1/units/x86_64-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_EMBED$$QWORD': gtk2.pas:(.text+0xd58d): undefined reference to `_gtk_file_chooser_embed_get_type' /usr/lib/fpc/2.3.1/units/x86_64-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_ENTRY$$QWORD': gtk2.pas:(.text+0xd61d): undefined reference to `_gtk_file_chooser_entry_get_type' startlazarus.lpr(51,1) Error: Error while linking /usr/lib/fpc/2.3.1/units/x86_64-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_DEFAULT$$QWORD': gtk2.pas:(.text+0xd43d): undefined reference to `_gtk_file_chooser_default_get_type' /usr/lib/fpc/2.3.1/units/x86_64-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_EMBED$$QWORD': gtk2.pas:(.text+0xd58d): undefined reference to `_gtk_file_chooser_embed_get_type' /usr/lib/fpc/2.3.1/units/x86_64-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_ENTRY$$QWORD': gtk2.pas:(.text+0xd61d): undefined reference to `_gtk_file_chooser_entry_get_type' /home/satan/pascal/lazarus/ide/startlazarus.lpr(51,1) Error: Error while linking /home/satan/pascal/lazarus/ide/startlazarus.lpr(51,1) Fatal: There were 1 errors compiling module, stopping

Do you gtk 2.14?

See also: http://bugs.freepascal.org/view.php?id=11837

Vincent

Reply by email

Vincent Snijders
to Paul Ishenin
Paul Ishenin wrote 10 lines
Lord Satan wrote: > Hi, > > trying to build lazarus I get this error on ubuntu 8.04 64-bit: > my fault. I uncommented use of 3 files which have external functions which are not present in gtk exports. I will send a patch to the fpc team to correct that. On the other hand - why fpc links to unused symbols?

That is the default operation on linux. Maybe this can be fixed, if you smartlink the executable. On windows smartlinking is the default, so maybe that is why you have not noticed the issue your self, Paul.

Vincent

Reply by email

Paul Ishenin
to Mattias Gärtner

Mattias G?rtner ?????:

Show quoted text 12 lines
Zitat von Vincent Snijders : Are you sure? I can do without linking errors: var c: integer; external name 'goal'; procedure Bla; cdecl; external name 'money';

try it so:

unit money;
interface
function Bla:Boolean; cdecl; external 'money.so';
function IsBla: Boolean;
implementation
function IsBla: Boolean;
begin
   IsBla := Bla;
end;
end.
program test_money;
uses
   money;
begin
end.

Btw, money is not a goal :)

Best regards,
Paul Ishenin.

Reply by email

Mattias Gärtner
to Paul Ishenin

Zitat von Paul Ishenin :

Show quoted text 29 lines
Mattias G??rtner ??????????: > Zitat von Vincent Snijders : > > > Are you sure? > > I can do without linking errors: > > var c: integer; external name 'goal'; > > procedure Bla; cdecl; external name 'money'; > > try it so: unit money; interface function Bla:Boolean; cdecl; external 'money.so'; function IsBla: Boolean; implementation function IsBla: Boolean; begin IsBla := Bla; end;

I guess, you mean the h2pas translations of alias macros. IMO a converter should avoid such things and use copies when possible.

Show quoted text 9 lines
end. program test_money; uses money; begin end. Btw, money is not a goal :)

True, because it is 'bla'. ;)

Mattias

Reply by email