This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Help on gcc compiler option


Hi,

Being new to gcc, need help on this:

I am having problems installing perl DB_File module with each time it gives
a specific error.  The notes pointed to the need to configure Berkeley DB
with the "CFLAGS=+z" option (for HP-UX platform).  However, this +z is only
for the native C compiler, while I specified env "CC=gcc" to use gcc.  

I tried looking up (to no avail) for info on the equivalent of C's +z option
in gcc.  Being new to this, i really appreciate any help.  Thanks in
advance.  below are some extracts of the notes from README  for  DB_File
(1.73) .

HP-UX Notes
-----------

Some people running HP-UX 10 have reported getting an error like this
when building DB_File with the native HP-UX compiler.

    ld: (Warning) At least one PA 2.0 object file (DB_File.o) was detected.
    The linked output may not run on a PA 1.x system.
    ld: Invalid loader fixup for symbol "$000000A5".

If this is the case for you, Berkeley DB needs to be recompiled with
the +z or +Z option and the resulting library placed in a .sl file. The
following steps should do the trick:

  1: Configure the Berkeley DB distribution with the +z or +Z C compiler
     flag:

        env "CFLAGS=+z" ../dist/configure ...

  2: Edit the Berkeley DB Makefile and change:

        "libdb= libdb.a" to "libdb= libdb.sl".

   3: Build and install the Berkeley DB distribution as usual.

warm regards
azreen
S'pore

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]