Won't link when using ftglGetLayoutBBox
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ftgl (Debian) |
Fix Released
|
Unknown
|
|||
ftgl (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
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://
100 /var/lib/
When it try to compile an example that tries to call ftglGetLayoutBBox I get a link error.
$ cat example.c
#include <FTGL/ftgl.h>
int main(int argc, char **argv) {
float bbox[6];
ftglGetLayo
return 0;
}
$ gcc $(pkg-config --cflags --libs ftgl freetype2) -lglut example.c &&./a.out
/tmp/cc8b7sZG.o: In function `main':
example.
collect2: ld returned 1 exit status
However the expected result is
$ gcc $(pkg-config --cflags --libs ftgl freetype2) -lglut example.c &&./a.out
FTGL warning: NULL pointer in _ftglGetLayoutBBox
The bug is caused by a discrepancy between the function name in the header and library.
$ readelf -s /usr/lib/
579: 0000000000023bf0 313 FUNC GLOBAL DEFAULT 11 ftgGetlLayoutBBox
$ grep GetLayoutBBox /usr/include/
FTGL_EXPORT void ftglGetLayoutBB
Readelf shows that the function is named incorrectly (ftgGetlLayoutB
description: | updated |
Changed in ftgl (Ubuntu): | |
assignee: | nobody → MOTU (motu) |
Changed in ftgl (Ubuntu): | |
status: | New → Confirmed |
Changed in ftgl (Ubuntu): | |
assignee: | MOTU (motu) → nobody |
tags: | added: patch |
tags: | added: patch-forwarded-debian patch-forwarded-upstream |
Changed in ftgl (Debian): | |
status: | Unknown → New |
Changed in ftgl (Debian): | |
status: | New → Fix Released |
Added patch to be added to debian/patches for quilt to read.