Thread: Port Bug Report: Will not compile under SCO OSR 5.0.5

Port Bug Report: Will not compile under SCO OSR 5.0.5

From
Unprivileged user
Date:
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name        : John J. Boris, Sr.
Your email address    : jboris@adphila.org

Category        : install: compile
Severity        : critical

Summary: Will not compile under SCO OSR 5.0.5

System Configuration
--------------------
  Operating System   : SCO OSR 5.0.5

  PostgreSQL version : 6.4.2

  Compiler used      : SCO cc

Hardware:
---------
IBM PC Server 320 80mb RAM
SCO_SV jc 3.2 5.0.5 i386



Versions of other tools:
------------------------


--------------------------------------------------------------------------

Problem Description:
--------------------
I first do this:
jc:/usr/src/pgsql/postgresql-6.4.2/src/include$ ./configure --with-CC=cc --with
-perl --with-odbc --with-template=sco



Then I get the following error when I do:

gmake all > & make.log &

gmake[3]: Entering directory `/usr/src/pgsql/postgresql-6.4.2/src/backend/storag
e/buffer'
cc -b elf -I../../../include -I../../../backend     -dy -I../..   -c s_lock.c -o
 s_lock.o
"s_lock.c", line 43: error: Syntax error before or at: *
"s_lock.c", line 47: error: undefined symbol: lock
"s_lock.c", line 47: error: undefined symbol: file
"s_lock.c", line 47: error: undefined symbol: line
"s_lock.c", line 60: error: Syntax error before or at: *
"s_lock.c", line 64: error: undefined symbol: lock
"s_lock.c", line 74: error: undefined symbol: file
"s_lock.c", line 74: error: undefined symbol: line
gmake[3]: *** [s_lock.o] Error 1



--------------------------------------------------------------------------

Test Case:
----------
Do what I put in the above paragraph.

--------------------------------------------------------------------------

Solution:
---------


--------------------------------------------------------------------------


Re: [PORTS] Port Bug Report: Will not compile under SCO OSR 5.0.5

From
Thomas Lockhart
Date:
> Category                : install: compile
> Severity                : critical
> Summary: Will not compile under SCO OSR 5.0.5
> System Configuration
> --------------------
>   Operating System   : SCO OSR 5.0.5
>   PostgreSQL version : 6.4.2
>   Compiler used      : SCO cc
> Hardware:
> ---------
> IBM PC Server 320 80mb RAM
> SCO_SV jc 3.2 5.0.5 i386
> Problem Description:
> --------------------
> gmake[3]: Entering directory
> `/usr/src/pgsql/postgresql-6.4.2/src/backend/storage/buffer'
> cc -b elf -I../../../include -I../../../backend \
>     -dy -I../..   -c s_lock.c -o
>  s_lock.o
> "s_lock.c", line 43: error: Syntax error before or at: *
> "s_lock.c", line 47: error: undefined symbol: lock
> "s_lock.c", line 47: error: undefined symbol: file
> "s_lock.c", line 47: error: undefined symbol: line
> "s_lock.c", line 60: error: Syntax error before or at: *
> "s_lock.c", line 64: error: undefined symbol: lock
> "s_lock.c", line 74: error: undefined symbol: file
> "s_lock.c", line 74: error: undefined symbol: line
> gmake[3]: *** [s_lock.o] Error 1
> Test Case:
> ----------
> Do what I put in the above paragraph.

SCO Release 7 was tested successfully and is listed as a supported
platform, and v2.x was tested a year ago (until the tester upgraded
his machine). How does v5.0.5 fit in to this versioning scheme? Are
you sure that you chose or defaulted to the correct platform template?
It appears that your machine is not defining slock_t, or that the
platform template is incorrect so that Postgres is not substituting
the correct definition.

You will have to help diagnose this, since we do not have access to an
SCO-5.0.x machine...

                          - Tom