Re: Failed compile PostgreSQL 7.1.2 on AIX 5.1

Поиск
Список
Период
Сортировка
От Dominic J. Eidson
Тема Re: Failed compile PostgreSQL 7.1.2 on AIX 5.1
Дата
Msg-id Pine.LNX.4.21.0107262235430.10227-100000@morannon.the-infinite.org
обсуждение исходный текст
Ответ на Failed compile PostgreSQL 7.1.2 on AIX 5.1  ("BigWhat.com" <ml.postgres@bigwhat.com>)
Список 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/



В списке pgsql-hackers по дате отправления:

Предыдущее
От: bob@redivi.com
Дата:
Сообщение: pltcl - lastoid
Следующее
От: Tom Lane
Дата:
Сообщение: Re: LIBPQ on Windows and large Queries