fp-units-gtk2 has undefined references due to GtkFileSystemError removal from GTK

Bug #260464 reported by Paul Gevers
10
Affects Status Importance Assigned to Milestone
Lazarus
Fix Released
Unknown
fpc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: fpc

I am trying to compile a new package (my first) for Ubuntu in a pbuilder environment with lazarus, but it fails because fp-units-gtk2 has undefined references. A bug was filed [1] where a patch was also supplied. I tried to tested it but I did not get it to work. I attach it here nevertheless because it looks simple, although the paths are not correct. It tries to patch packages/gtk2/src/gtk+/gtk/gtk2.pas and packages/gtk2/src/gtk+/gtk/gtkfilesystem.inc instead of fpcsrc/packages/extra/gtk2/gtk+/gtk/gtk2.pas and fpcsrc/packages/extra/gtk2/gtk+/gtk/gtkfilesystem.inc

My debian type program source is available at [2]

The error message:
Linking winff
/usr/lib/fpc/2.2.0/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_FILE_SYSTEM_ERROR$$LONGWORD':
gtk2.pas:(.text+0xb7d1): undefined reference to `gtk_file_system_error_quark'
/usr/lib/fpc/2.2.0/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_INFO$$LONGWORD':
gtk2.pas:(.text+0xb7e1): undefined reference to `gtk_file_info_get_type'
/usr/lib/fpc/2.2.0/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_SYSTEM$$LONGWORD':
gtk2.pas:(.text+0xb7f1): undefined reference to `gtk_file_system_get_type'
/usr/lib/fpc/2.2.0/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_FOLDER$$LONGWORD':
gtk2.pas:(.text+0xb871): undefined reference to `gtk_file_folder_get_type'
winff.lpr(31,1) Error: Error while linking

root@etna:/# lsb_release -rd
Description: Ubuntu intrepid (development branch)
Release: 8.10

root@etna:~/winff-0.42# apt-cache policy fp-units-gtk2
fp-units-gtk2:
  Installed: 2.2.0-dfsg1-9
  Candidate: 2.2.0-dfsg1-9
  Version table:
 *** 2.2.0-dfsg1-9 0
        500 http://mirrors.kernel.org intrepid/universe Packages
        100 /var/lib/dpkg/status

[1] http://mantis.freepascal.org/view.php?id=11837
[2] http://mentors.debian.net/debian/pool/main/w/winff

Related branches

Revision history for this message
Paul Gevers (paul-climbing) wrote :
Revision history for this message
Paul Gevers (paul-climbing) wrote :

I can now confirm that the patch applied in the right directory did indeed solve the problem. I created a patch to the Ubuntu directory.

Applied the patch against source of fpc_2.2.0-dfsg1 (patched to fpc_2.2.0-dfsg1-9).

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fpc - 2.2.0-dfsg1-9ubuntu1

---------------
fpc (2.2.0-dfsg1-9ubuntu1) intrepid; urgency=low

  * Added dpatch to fix fp-units-gtk2 undefined references (LP: #260464)
   - Safe to drop on next sync, Debian has a fixed version

 -- John Dong <email address hidden> Sat, 20 Sep 2008 00:25:21 -0400

Changed in fpc:
status: New → Fix Released
Revision history for this message
Marco van de Voort (marco-freepascal) wrote :

(the path problem is because the FPC 2.2.1 branch (development between 2.2.0 and 2.2.2 releases) changed directory layout for the packages/ tree in januari 2008, which eliminates the base/ and extra/ division that is no longer needed, and cleanups the cruft of years from that part of the tree.

2.2.2 will have the layout as seen in the mantis patch, 2.2.0 still has the layout with extra/ and base/

)

Revision history for this message
Paul Gevers (paul-climbing) wrote :

I reopen this bug because by syncing fpc in jaunty the bug is back (in Jaunty). Although John Dong (the uploader of the patch in Intrepid) mentioned it could be dropped on the next sync, the bug is , as far as I can tell, only fixed in upstream version 2.3.1. I attached a patch to the 2.2.2-4 package of fpc in ubuntu in bug 275688. Feel free to comment. I can confirm that the patch solves this bug and that it allows the lazarus package to build (which depends on fpc and currently does not build due to this bug). If wanted, I can upload the patched version to my PPA [1] (which I might be doing shortly anyway).

[1] https://launchpad.net/~paul-climbing/+archive

Changed in fpc:
status: Fix Released → Confirmed
Revision history for this message
Paul Gevers (paul-climbing) wrote :

For completeness I also attached the patch here. Bug 275688 is getting a little long and is basically unrelated.

Revision history for this message
James Westby (james-w) wrote :

Hi Paul,

Please subscribe the sponsors team when you have a patch for someone
to look at.

Thanks,

James

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fpc - 2.2.2-4ubuntu1

---------------
fpc (2.2.2-4ubuntu1) jaunty; urgency=low

  * Added patch to fix fp-units-gtk2 undefined references
    (closes LP: #260464). The fix is included in upstream from
    version 2.3.1.

 -- Paul Gevers <email address hidden> Sat, 22 Nov 2008 18:41:47 -0600

Changed in fpc:
status: Confirmed → Fix Released
Revision history for this message
Fail2Ban (failtoban) wrote :

This external bug report no longer exists...

tags: added: patch
Changed in lazarus:
importance: Unknown → Undecided
status: Unknown → New
Revision history for this message
Mitch Towner (kermiac) wrote :

Set the upstream bug task back to the correct bug # as the report does still exist.

tags: removed: patch
Changed in lazarus:
importance: Undecided → Unknown
status: New → Unknown
Changed in lazarus:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.