I am attempting to compile PostgreSQL 7.1.2 on an IBM B50 running AIX 5.1.
Running configure works fine but when I  go to the next step and run gmake
dies with the following error. If someone could point me in the direction of
what exactly is causing the error I would appreciate it greatly.

<!-- BEGIN Error Message -->
gmake[4]: Leaving directory
`/downloads/postgresql/postgresql-7.1.2/src/backend/
utils/time'
/usr/bin/ld -r -o SUBSYS.o fmgrtab.o adt/SUBSYS.o cache/SUBSYS.o
error/SUBSYS.o
fmgr/SUBSYS.o hash/SUBSYS.o init/SUBSYS.o misc/SUBSYS.o mmgr/SUBSYS.o
sort/SUBSY
S.o time/SUBSYS.o
gmake[3]: Leaving directory
`/downloads/postgresql/postgresql-7.1.2/src/backend/
utils'
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.
collect2: ld returned 8 exit status
gmake[2]: *** [postgres] Error 1
gmake[2]: Leaving directory
`/downloads/postgresql/postgresql-7.1.2/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/downloads/postgresql/postgresql-7.1.2/src'
gmake: *** [all] Error 2
<!-- END Error Message -->

-Mark Esformes
Developer
www.BigWhat.com
BigWhat.com, Inc.
410 Old Main Street
Bradenton, FL 34205
941-747-2160
mark@bigwhat.com
"A Different Kind of Search!"


Thu, 26 Jul 2001 18:28:47 -0400
"BigWhat.com" <ml.postgres@bigwhat.com>
Failed compile PostgreSQL 7.1.2 on AIX 5.1
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/


Thu, 26 Jul 2001 22:41:03 -0500 (CDT)
"Dominic J. Eidson" <sauron@the-infinite.org>
Re: Failed compile PostgreSQL 7.1.2 on AIX 5.1
BigWhat.com writes:

> ld: 0711-317 ERROR: Undefined symbol: .log
> ld: 0711-317 ERROR: Undefined symbol: .ceil
> ld: 0711-317 ERROR: Undefined symbol: .sqrt
[...]

Looks like configure failed to notice your math library (-lm).  Please
check the config.log file to see why.

> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.

Well...?

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


Sun, 5 Aug 2001 21:34:31 +0200 (CEST)
Peter Eisentraut <peter_e@gmx.net>
Re: Failed compile PostgreSQL 7.1.2 on AIX 5.1