Thread: Failed compile PostgreSQL 7.1.2 on AIX 5.1

Failed compile PostgreSQL 7.1.2 on AIX 5.1

From
"BigWhat.com"
Date:
I am attempting to compile PostgreSQL 7.1.2 on an IBM B50 running AIX 5.1.
Running configure with --with-perl and/or --with-python works fine but when I do the next step and run gmake it goes fine until 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 -->
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 utils/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
BigWhat.com, Inc.
410 Old Main Street
Bradenton, FL 34205
941-747-2160
mark@bigwhat.com
"A Different Kind of Search!"
 
-Mark Esformes
Developer
BigWhat.com, Inc.
410 Old Main Street
Bradenton, FL 34205
941-747-2160
mark@bigwhat.com
"A Different Kind of Search!"
 

Re: Failed compile PostgreSQL 7.1.2 on AIX 5.1

From
Michał Pasternak
Date:
BigWhat.com [Thu, Jul 26, 2001 at 10:24:00AM -0400]:
> I am attempting to compile PostgreSQL 7.1.2 on an IBM B50 running AIX 5.1.
> Running configure with --with-perl and/or --with-python works fine but when
> I do the next step and run gmake it goes fine until 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 -->
> 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

Try adding -lm (or whatever math libray on AIX is called) to above line
It should look like:

  gcc options files -lz -lm -lPW -lld -lnsl and so
                                          ~~~~

--
[ Michal Pasternak     doc@lublin.t1.pl     +48606570000  ]
[ sklepy internetowe, bazy danych, programy na zamówienie ]
[ . .. ..- .- . .. http://lublin.t1.pl . .-. .--.. . . .- ]