Package: libftgl-dev
Version: 2.1.3~rc5-2
Severity: normal
Tags: patch

Reporting from downstream in Ubuntu, just got a proposed patch for this bug,
saw it wasn't reported in Debian.

ftglGetLayoutBBox is misspelled in 3 locations inside
src/FTLayout/FTLayoutGlue.cpp, causing missing symbol errors when attempting
to link to libftgl.  The prototype in the header file is fine, it's only the
C api version of the function which is affected.
I'm attaching a patch which has been confirmed to fix the problem in Ubuntu.

Ubuntu is tracking this bug at
https://bugs.launchpad.net/ubuntu/+source/ftgl/+bug/485225
Sourceforge also has this bug reported at
https://sourceforge.net/tracker/?func=detail&aid=2121813&group_id=202130&atid=980349

Unfortunately, the original developer of libftgl seems to have gone awol.
The sourceforge repository containing the library hasn't been updated in
close to 2 years (last modification date was 2008-06-12.  This bug has been
outstanding in the sourceforge tracker since 2008-09-21.  Due to the lack of
a further upstream to push this to, I'm suggesting the patch be applied at
debian, and then trickle down from there.


-- System Information:
Debian Release: squeeze/sid
  APT prefers karmic-updates
  APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500,
'karmic')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-21-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libftgl-dev depends on:
ii  libfreetype6-dev          2.3.9-5        FreeType 2 font engine,
developmen
ii  libftgl2                  2.1.3~rc5-2    library to render text in
OpenGL u
ii  libgl1-mesa-dev [libgl-de 7.6.0-1ubuntu4 A free implementation of the
OpenG
ii  libglu1-mesa-dev [libglu- 7.6.0-1ubuntu4 The OpenGL utility library --
deve

libftgl-dev recommends no packages.

libftgl-dev suggests no packages.

-- debconf-show failed
Index: ftgl-2.1.3~rc5/src/FTLayout/FTLayoutGlue.cpp
===================================================================
--- ftgl-2.1.3~rc5.orig/src/FTLayout/FTLayoutGlue.cpp	2009-11-21 02:07:38.000000000 -0500
+++ ftgl-2.1.3~rc5/src/FTLayout/FTLayoutGlue.cpp	2009-11-21 02:07:45.000000000 -0500
@@ -76,13 +76,13 @@
 
 // virtual FTBBox FTLayout::BBox(const char* string)
 extern "C++" {
-C_FUN(static FTBBox, _ftgGetlLayoutBBox, (FTGLlayout *l, const char *s),
+C_FUN(static FTBBox, _ftglGetLayoutBBox, (FTGLlayout *l, const char *s),
       return static_ftbbox, BBox, (s));
 }
 
-void ftgGetlLayoutBBox(FTGLlayout *l, const char * s, float c[6])
+void ftglGetLayoutBBox(FTGLlayout *l, const char * s, float c[6])
 {
-    FTBBox ret = _ftgGetlLayoutBBox(l, s);
+    FTBBox ret = _ftglGetLayoutBBox(l, s);
     FTPoint lower = ret.Lower(), upper = ret.Upper();
     c[0] = lower.Xf(); c[1] = lower.Yf(); c[2] = lower.Zf();
     c[3] = upper.Xf(); c[4] = upper.Yf(); c[5] = upper.Zf();

Reply via email to