Re: Failed compile PostgreSQL 7.1.2 on AIX 5.1

From: "Dominic J(dot) Eidson" <sauron(at)the-infinite(dot)org>
To: "BigWhat(dot)com" <ml(dot)postgres(at)bigwhat(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Failed compile PostgreSQL 7.1.2 on AIX 5.1
Date: 2001-07-27 03:41:03
Message-ID: Pine.LNX.4.21.0107262235430.10227-100000@morannon.the-infinite.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 26 Jul 2001, BigWhat.com wrote:

> I am attempting to compile PostgreSQL 7.1.2 on an IBM B50 running AIX 5.1.

I'm jealous. I saw a rack full of B50's and fell in love.. ;-)

[Snip]

> gcc -O2 -pipe -Wall -Wmissing-prototypes -Wmissing-declarations
> access/SUBSYS
> .o bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o commands/SUBSYS.o
> executo
> r/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o nodes/SUBSYS.o
> optimizer/SU
> BSYS.o port/SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o
> storage
> /SUBSYS.o tcop/SUBSYS.o
> tils/SUBSYS.o -lz -lPW -lld -lnsl -ldl -lreadline -o p
> ostgres
> ld: 0711-317 ERROR: Undefined symbol: .log
> ld: 0711-317 ERROR: Undefined symbol: .ceil
> ld: 0711-317 ERROR: Undefined symbol: .sqrt
> ld: 0711-317 ERROR: Undefined symbol: .isnan
> ld: 0711-317 ERROR: Undefined symbol: .floor
> ld: 0711-317 ERROR: Undefined symbol: .pow
> ld: 0711-317 ERROR: Undefined symbol: .exp
> ld: 0711-317 ERROR: Undefined symbol: .log10
> ld: 0711-317 ERROR: Undefined symbol: .acos
> ld: 0711-317 ERROR: Undefined symbol: .asin
> ld: 0711-317 ERROR: Undefined symbol: .atan
> ld: 0711-317 ERROR: Undefined symbol: .atan2
> ld: 0711-317 ERROR: Undefined symbol: .cos
> ld: 0711-317 ERROR: Undefined symbol: .tan
> ld: 0711-317 ERROR: Undefined symbol: .sin
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.

It looks like you need to add a -lm in there somewhere to include the math
library.

export LDFLAGS="-lm" should do the job, unless someone else knows the
exact place to put it.

--
Dominic J. Eidson
"Baruk Khazad! Khazad ai-menu!" - Gimli
-------------------------------------------------------------------------------
http://www.the-infinite.org/ http://www.the-infinite.org/~dominic/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-07-27 05:36:09 Re: LIBPQ on Windows and large Queries
Previous Message bob 2001-07-27 02:31:22 pltcl - lastoid