Created On:  16 March 2011

Problem:

After installing Server Express on an AIX RS6000 server using Oracle's makefile and trying to compile the following errors are returned:
 
Ld: 0706-006 Cannot find or open library file: -lm
ld: open(): no such file or directory

Resolution:

Oracle’s makefile "env_precomp.mk" includes the following line:

MATHLIB=-lm

This option "-lm" tells the system linker to bring in the standard system math library “libm.a" which is usually found in /usr/lib. When "ld" reports it "Cannot find or open library file -l m" the linker is indecating it can't find the standard math library. Ensure the libm.a is installed in /usr/lib.
Incident #2426123