Failed compile PostgreSQL 7.1.2 on AIX 5.1

Failed compile PostgreSQL 7.1.2 on AIX 5.1

Post by BigWhat.co » Sat, 28 Jul 2001 07:37:47



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

"A Different Kind of Search!"

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command

 
 
 

Failed compile PostgreSQL 7.1.2 on AIX 5.1

Post by Dominic J. Eidso » Sat, 28 Jul 2001 12:52:35



> 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]

Quote:> 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/

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate

message can get through to the mailing list cleanly

 
 
 

1. Failed compile PostgreSQL 7.1.2 on AIX 5.1

[...]

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

Well...?

--

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

2. What is BDE-Error 6945 and 2024?

3. Fail Consistency Check AIX & Informix Online 5.10

4. credit card processing

5. SE on AIX 5.1

6. How to get autonumber assigned to the insert ?

7. AIX 5.1 supported with whatch DB2 versions

8. Migrating Oracle 7.3.3 to Oracle 8.0.4

9. ODBC - SE - AIX 5.1

10. IDS.2000 9.21 and AIX 5.1

11. IDS 7.31 on AIX 5.1

12. DB2 5.1 upgrading to 7 AIX

13. AIX 5.1 kernel updates for oracle 8170