Bug 809673 - liba2ps.so: atan2 undefined (forgot -lm when building)
Summary: liba2ps.so: atan2 undefined (forgot -lm when building)
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: a2ps
Version: 17
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-04 02:18 UTC by John Reiser
Modified: 2012-12-03 17:53 UTC (History)
2 users (show)

Fixed In Version: a2ps-4.14-15.fc17
Clone Of:
Environment:
Last Closed: 2012-12-03 17:53:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description John Reiser 2012-04-04 02:18:12 UTC
Description of problem: The symbol 'atan2' is undefined in $libdir/liba2ps.so.1. This will cause an application crash if referenced.


Version-Release number of selected component (if applicable):
a2ps-4.14-14.fc17.x86_64


How reproducible: every time


Steps to Reproduce:
1. readelf --symbols /lib*/liba2ps.so.* | grep atan2
2.
3.
  
Actual results:
    24: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND atan2


Expected results: No unresolved symbols


Additional info: Fix is: add "-lm" to the libraries when building liba2ps.so.1.

Comment 1 John Reiser 2012-04-04 02:24:09 UTC
Additional piece that is needed to confirm this is a bug:
  $ ldd /lib*/liba2ps.so.1
	linux-vdso.so.1 =>  (0x00007fffac58b000)
	libc.so.6 => /lib64/libc.so.6 (0x0000003d97400000)
	/lib64/ld-linux-x86-64.so.2 (0x0000003d97000000)
which does not include libmath (-lm).


Note You need to log in before you can comment on or make changes to this bug.