[Bug 485225] Re: Won't link when using ftglGetLayoutBBox
** Changed in: ftgl (Ubuntu) Assignee: (unassigned) = MOTU (motu) -- Won't link when using ftglGetLayoutBBox https://bugs.launchpad.net/bugs/485225 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 485225] Re: Won't link when using ftglGetLayoutBBox
** Description changed: Description: Ubuntu 9.10 Release: 9.10 libftgl2: - Installed: 2.1.3~rc5-2 - Candidate: 2.1.3~rc5-2 - Version table: - *** 2.1.3~rc5-2 0 - 500 http://us.archive.ubuntu.com karmic/universe Packages - 100 /var/lib/dpkg/status - libftgl2: - Installed: 2.1.3~rc5-2 - Candidate: 2.1.3~rc5-2 - Version table: - *** 2.1.3~rc5-2 0 - 500 http://us.archive.ubuntu.com karmic/universe Packages - 100 /var/lib/dpkg/status + Installed: 2.1.3~rc5-2 + Candidate: 2.1.3~rc5-2 + Version table: + *** 2.1.3~rc5-2 0 + 500 http://us.archive.ubuntu.com karmic/universe Packages + 100 /var/lib/dpkg/status + When it try to compile an example that tries to call ftglGetLayoutBBox I + get a link error. - When using the C interface function ftglGetLayoutBBox, the function is not found in the library. + $ cat example.c + #include FTGL/ftgl.h + int main(int argc, char **argv) { + float bbox[6]; + ftglGetLayoutBBox(NULL, Hello, world!, bbox); + return 0; + } + $ gcc $(pkg-config --cflags --libs ftgl freetype2) -lglut example.c ./a.out + /tmp/cc8b7sZG.o: In function `main': + example.c:(.text+0x21): undefined reference to `ftglGetLayoutBBox' + collect2: ld returned 1 exit status - $ readelf -s /usr/lib/libftgl.so|grep LayoutBBox -579: 00023bf0 313 FUNCGLOBAL DEFAULT 11 ftgGetlLayoutBBox + However the expected result is + $ gcc $(pkg-config --cflags --libs ftgl freetype2) -lglut example.c ./a.out + FTGL warning: NULL pointer in _ftglGetLayoutBBox - $ grep GetLayoutBBox /usr/include/FTGL/FTLayout.h - FTGL_EXPORT void ftglGetLayoutBBox(FTGLlayout *layout, const char* string, + The bug is caused by a discrepancy between the function name in the + header and library. + + $ readelf -s /usr/lib/libftgl.so|grep LayoutBBox + 579: 00023bf0 313 FUNCGLOBAL DEFAULT 11 ftgGetlLayoutBBox + + $ grep GetLayoutBBox /usr/include/FTGL/FTLayout.h + FTGL_EXPORT void ftglGetLayoutBBox(FTGLlayout *layout, const char* string, Readelf shows that the function is named incorrectly (ftgGetlLayoutBBox), but the header FTLayout.h declared the function as ftglGetLayoutBBox. -- Won't link when using ftglGetLayoutBBox https://bugs.launchpad.net/bugs/485225 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 485225] Re: Won't link when using ftglGetLayoutBBox
Added patch to be added to debian/patches for quilt to read. ** Attachment removed: Proposed fix http://launchpadlibrarian.net/35848484/ftgl.diff ** Attachment added: Proposed fix http://launchpadlibrarian.net/35910464/fix-ftglGetLayoutBBox-typo.patch -- Won't link when using ftglGetLayoutBBox https://bugs.launchpad.net/bugs/485225 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 485225] [NEW] Won't link when using ftglGetLayoutBBox
Public bug reported: Description:Ubuntu 9.10 Release:9.10 libftgl2: Installed: 2.1.3~rc5-2 Candidate: 2.1.3~rc5-2 Version table: *** 2.1.3~rc5-2 0 500 http://us.archive.ubuntu.com karmic/universe Packages 100 /var/lib/dpkg/status libftgl2: Installed: 2.1.3~rc5-2 Candidate: 2.1.3~rc5-2 Version table: *** 2.1.3~rc5-2 0 500 http://us.archive.ubuntu.com karmic/universe Packages 100 /var/lib/dpkg/status When using the C interface function ftglGetLayoutBBox, the function is not found in the library. $ readelf -s /usr/lib/libftgl.so|grep LayoutBBox 579: 00023bf0 313 FUNCGLOBAL DEFAULT 11 ftgGetlLayoutBBox $ grep GetLayoutBBox /usr/include/FTGL/FTLayout.h FTGL_EXPORT void ftglGetLayoutBBox(FTGLlayout *layout, const char* string, Readelf shows that the function is named incorrectly (ftgGetlLayoutBBox), but the header FTLayout.h declared the function as ftglGetLayoutBBox. ** Affects: ftgl (Ubuntu) Importance: Undecided Status: New -- Won't link when using ftglGetLayoutBBox https://bugs.launchpad.net/bugs/485225 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 485225] Re: Won't link when using ftglGetLayoutBBox
** Attachment added: Proposed fix http://launchpadlibrarian.net/35848484/ftgl.diff -- Won't link when using ftglGetLayoutBBox https://bugs.launchpad.net/bugs/485225 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs