FTBFS: undefined reference to `{tan,log,pow}'

Bug #897933 reported by dann frazier
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
timezonemap
New
Undecided
Unassigned
libtimezonemap (Ubuntu)
Fix Released
High
Unassigned

Bug Description

libtimezonemap fails to build in precise.

libtool: link: gcc -shared -fPIC -DPIC .libs/cc-timezone-map.o .libs/tz.o -lgtk-3 -lgdk-3 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 /usr/lib/x86_64-linux-gnu/libcairo-gobject.so /usr/lib/x86_64-linux-gnu/libcairo.so -lpango-1.0 /usr/lib/x86_64-linux-gnu/libfreetype.so -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -O2 -O2 -Wl,-Bsymbolic-functions -Wl,-z -Wl,relro -Wl,-z -Wl,defs -Wl,--as-needed -pthread -pthread -Wl,-soname -Wl,libtimezonemap.so.1 -Wl,-version-script -Wl,.libs/libtimezonemap.ver -o .libs/libtimezonemap.so.1.0.0
.libs/cc-timezone-map.o: In function `convert_latitude_to_y':
/tmp/buildd/libtimezonemap-0.2/./src/cc-timezone-map.c:724: undefined reference to `tan'
/tmp/buildd/libtimezonemap-0.2/./src/cc-timezone-map.c:724: undefined reference to `log'
.libs/tz.o: In function `convert_pos':
/tmp/buildd/libtimezonemap-0.2/./src/tz.c:519: undefined reference to `pow'
/tmp/buildd/libtimezonemap-0.2/./src/tz.c:518: undefined reference to `pow'
collect2: ld returned 1 exit status
make[3]: *** [libtimezonemap.la] Error 1
make[3]: Leaving directory `/tmp/buildd/libtimezonemap-0.2/build/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/libtimezonemap-0.2/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/buildd/libtimezonemap-0.2/build'
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Tags: ftbfs patch

Related branches

Revision history for this message
dann frazier (dannf) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "libtimezone+libm.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Loïc Minier (lool) wrote :

Linked an alternate branch with a slightly different fix

Colin Watson (cjwatson)
Changed in libtimezonemap (Ubuntu):
status: New → Triaged
importance: Undecided → High
tags: added: ftbfs
Revision history for this message
Daniel Holbach (dholbach) wrote :

It seems this was fixed in 0.2.1 in precise. The fix just needs to get upstream.

Changed in libtimezonemap (Ubuntu):
status: Triaged → 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.