Bug 1356

Summary: Floor Ceil Problem
Product: [Retired] Red Hat Linux Reporter: webmaster
Component: glibcAssignee: Cristian Gafton <gafton>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 4.2CC: fweimer, webmaster
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
URL: http://www.abcgiant.com
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-03-08 17:22:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description webmaster 1999-02-27 01:15:04 UTC
The problem was encountered when I was compiling a .c file
that made a reference to the function floor (in math.h).
The error is:

/tmp/cca090901.o(.text+0x2756): undefined reference to
`floor'

I had the same error with ceil yesterday.

Here is a simple program that produces an identical error:

#include <stdio.h>
#include <math.h>

void main() {
printf("%.03f = %ld\n",1.23,(long)ceil(1.23));
}

Comment 1 David Lawrence 1999-03-02 21:35:59 UTC
I have verified this to be a problem on one of the test lab machines.

Comment 2 Cristian Gafton 1999-03-08 17:22:59 UTC
link in the math library (-lm)

Comment 3 openshift-github-bot 2015-03-18 18:26:34 UTC
Commit pushed to master at https://github.com/openshift/origin

https://github.com/openshift/origin/commit/a46042a74f959d7ab24d8270c7712193e8638d74
Issue 1356 - setup should either save cert file or data