Recent

Author Topic: Cannot build Lazarus after upgrading to Ubuntu 8.10  (Read 12121 times)

Chrrris

  • Newbie
  • Posts: 5
Cannot build Lazarus after upgrading to Ubuntu 8.10
« on: October 31, 2008, 03:50:01 pm »
I upgraded my laptop from Ubuntu Hardy to Intrepid yesterday and Lazarus compilation now stops with:-
Code: [Select]

Target OS: Linux for x86-64
Compiling lazarus.pp
Linking ../lazarus
/usr/lib/fpc/2.2.2/units/x86_64-linux/gtk2/gtk2.o: In function
`GTK2_GTK_FILE_SYSTEM_ERROR$$LONGWORD':
gtk2.pas:(.text+0x104ed): undefined reference to `gtk_file_system_error_quark'
/usr/lib/fpc/2.2.2/units/x86_64-linux/gtk2/gtk2.o: In function
`GTK2_GTK_TYPE_FILE_INFO$$QWORD':
gtk2.pas:(.text+0x10505): undefined reference to `gtk_file_info_get_type'
/usr/lib/fpc/2.2.2/units/x86_64-linux/gtk2/gtk2.o: In function
`GTK2_GTK_TYPE_FILE_SYSTEM$$QWORD':
gtk2.pas:(.text+0x1051d): undefined reference to `gtk_file_system_get_type'
/usr/lib/fpc/2.2.2/units/x86_64-linux/gtk2/gtk2.o: In function
`GTK2_GTK_TYPE_FILE_FOLDER$$QWORD':
gtk2.pas:(.text+0x105b5): undefined reference to `gtk_file_folder_get_type'
lazarus.pp(122,1) Error: Error while linking
lazarus.pp(122,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted

I'm running fpc 2.2.2-3, installed from the freepascal repository and these same errors occur regardless of whether I'm building the latest 0.9.27 from SVN, 0.9.26, or anything inbetween.

In an effort to try to resolve the problem, I fetched fpcbuild from SVN and tried to build and install fpc & packages, but that build process fails when compiling the aspell package (I do have aspell installed):-
Code: [Select]
aspell.pp(1580,1) Error: Illegal expression
aspell.pp(1580,10) Fatal: Syntax error, ";" expected but "identifier ASPELL_LOADED" found.


Is this something to do with the new version of GNOME included in Intrepid? Did the upgrade from Hardy to Intrepid do something bad to a config file somewhere? Anyone have any ideas on how I reach a state where I can successfully build Lazarus from SVN again?

Thanks,
Chrrris.

Chrrris

  • Newbie
  • Posts: 5
RE: Cannot build Lazarus after upgrading to Ubuntu 8.10
« Reply #1 on: October 31, 2008, 04:21:01 pm »
I've just seen bug #0012353, which basically says "You need to use fpc 2.3.1 to build lazarus on Ubuntu 8.10". Fair enough; however, there still remains the small problem that I can't build 2.3.1 because of this aspell.pp compilation error malarkey...   I will continue to play - I feel a solution is tantilisingly close...

weberick

  • Newbie
  • Posts: 2
RE: Cannot build Lazarus after upgrading to Ubuntu 8.10
« Reply #2 on: October 31, 2008, 04:30:49 pm »
Hi,

I have the same problem on Ubuntu 810 platform.
Have you a solution  ?
How use FPC 2.3.1 for nbuild Lazarus.
Thanks a lot.
Eric

Chrrris

  • Newbie
  • Posts: 5
RE: Cannot build Lazarus after upgrading to Ubuntu 8.10
« Reply #3 on: October 31, 2008, 04:55:25 pm »
...and it was. I had to revert fpc to r12000. The changes to aspell.pp in revision 12001 break the build on my machine. Balance and harmony are once againg restored.

Eric: Have a look at http://www.freepascal.org/develop.var. You need to download the development branch of freepascal (2.3.1) and use that in place of 2.2.2. However, the very latest revision won't compile, so you'll need to get revision 12000 from SVN until the daily snapshot is fixed.

weberick

  • Newbie
  • Posts: 2
RE: Cannot build Lazarus after upgrading to Ubuntu 8.10
« Reply #4 on: October 31, 2008, 05:31:49 pm »
Chrrris

Thanks for your response.
I believe to have included/understood but I am not on knowing to implement that.
Thank you
afflicted for my bad English the translation is resulting from tool for translation.

Best Regards.
Eric

Kunstbanause

  • New Member
  • *
  • Posts: 47
RE: Cannot build Lazarus after upgrading to Ubuntu 8.10
« Reply #5 on: November 07, 2008, 09:24:42 am »
I built and installed fpc 2.3.1 with revision 12026 on my ubuntu 8.10 64bit two days ago (Nov 05, 2008). After that I rebuilt my lazarus ide to use gtk2 (clean up + build all)

Now there's a problem with the code completion:
Error: identifier not found: TObject

I have set my fpc-path to the new compiler, even the sources path for fpc is set to my fpc svn directory.

Tonight I will try to use revision 12000.

bonmario

  • Sr. Member
  • ****
  • Posts: 346
Cannot build Lazarus after upgrading to Ubuntu 8.10
« Reply #6 on: November 07, 2008, 01:28:04 pm »
Hi,
someona can tell me where i can found instruction for change FPC version on my Ubuntu 8.10???
Yesterday i downloaded FPC from SVN, compiled it, changed in Lazarus the directories of FPC sources and FPC compiler, but recompiling lazarus i give an error because unit "comcons" not found.

Thanks, Mario

Kunstbanause

  • New Member
  • *
  • Posts: 47
Cannot build Lazarus after upgrading to Ubuntu 8.10
« Reply #7 on: November 07, 2008, 10:15:42 pm »
I was able to remove the error after I installed Lazarus using the svn sources (lazarus 0.9.27). It seems that the 0.9.26 lazarus isn't fully compatible with the 2.3.1 fpc.

Sternas Stefanos

  • Full Member
  • ***
  • Posts: 170
  • Ex Pilot, M.Sc, Ph.D
    • http://www.pilotlogic.com
Cannot build Lazarus after upgrading to Ubuntu 8.10
« Reply #8 on: November 15, 2008, 10:25:43 pm »
CodeTyphon Architect and Programmer

 

TinyPortal © 2005-2018