Operating System - HP-UX
1753931 Members
9750 Online
108810 Solutions
New Discussion юеВ

error compiling berley db

 
SOLVED
Go to solution
Mauro Gatti
Valued Contributor

error compiling berley db

I'm tring to compile berkley db on hp-ux 11.11

I pass configuring phase without error but during "make" operation i get this error:
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +Z option is available only with the C/ANSI C product; ignored.
(Bundled) cc: "../dist/../crypto/rijndael/rijndael-alg-fst.c", line 48: error 1701: Unsigned suffix is an ANSI feature.


I think this is caused by cc that not support ANSI features. So i try to use gcc modifing makefile into CC line definition.
Using gcc however i get this error:

usr/bin/sh ./libtool --mode=compile gcc -c -I. -I../dist/.. -I../dist/../dbinc -D_REENTRANT -O ../dist/../mutex/mut_pthread.c
mkdir .libs
gcc -c -I. -I../dist/.. -I../dist/../dbinc -D_REENTRANT -O ../dist/../mutex/mut_pthread.c +Z -DPIC
gcc: +Z: No such file or directory
*** Error exit code 1

Stop.


Could You help me?

Tanhk You


Mauro
Ubi maior, minor cessat!
2 REPLIES 2
Jerome Baron
Respected Contributor

Re: error compiling berley db

Hi Mauro,

You can see in the error message that the compiler used by make is the "bundled cc". This compiler isn't a developer compiler. It's just included in core os to build kernel and other based application.
You does install gcc or HP ansic compiler.

Regards,
Jerome
benoit Bruckert
Honored Contributor
Solution

Re: error compiling berley db

Hi Mauro,
It works with gcc,
but +Z is not gcc compliant,
to make it works, replace +Z by -fPIC.
-fPIC is for position independant code of the program...
hth
Benoit
Une application mal pans├йe aboutit ├а une usine ├а gaze (GHG)