Bug 809673 - liba2ps.so: atan2 undefined (forgot -lm when building)
liba2ps.so: atan2 undefined (forgot -lm when building)
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: a2ps (Show other bugs)
17
Unspecified Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: Tim Waugh
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-03 22:18 EDT by John Reiser
Modified: 2012-12-03 12:53 EST (History)
2 users (show)

See Also:
Fixed In Version: a2ps-4.14-15.fc17
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-12-03 12:53:36 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description John Reiser 2012-04-03 22:18:12 EDT
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-03 22:24:09 EDT
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.