Skip site navigation (1) Skip section navigation (2)

Re: SCO Ports

From: Roberto Fichera <kernel(at)tekno-soft(dot)it>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: SCO Ports
Date: 2000-11-13 19:14:10
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-ports
At 00.22 11/11/00 +0100, Peter Eisentraut wrote:

>Roberto Fichera writes:
> > without success, because the postmaster go in coredump at the startup.
>Compile with -g, and generate a backtrace from the core dump.
>(gdb /some/where/postmaster /else/where/core.xxxx, then enter 'bt')

Ok! I've solved the problem :-)!!! With the last gcc provided by SCO now
I can build the Postgres. Was a prototype problem.

# gcc -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/specs
gcc version 2.95.2 19991024 (release)

Here what I do:

the makefiles/Makefile.sco

LDFLAGS += -Wl,-Bexport
CFLAGS += -O2 -march=i586 -fomit-frame-pointer -melf
MK_NO_LORDER= true %.o
         $(CC) -melf -shared -o $@ $<

in include/port/sco.h we must add this include

#include <stdarg.h>
#include <netinet/in.h>

the first because the compiler fail to expand the va_* macros, and the 2nd 
we need to define/prototype some net's related macros (htons, ntohs and so on).

Currently I've only one problem with the ecpg, that I was unable to build. 
With the standard compiler
I don't have any problem to build ecpg. Below there is a link error that 
seem to be related
with pgc.c:include/access/heapam.h:fastgetattr() -> nocachegetattr() that I 
was unable to fix.

gmake[3]: Entering directory 
gcc -o ecpg preproc.o pgc.o type.o ecpg.o ecpg_keywords.o output.o 
keywords.o c_
keywords.o ../lib/typename.o descriptor.o variable.o  -lPW -lgen -lcrypt 
-lld -lnsl
-lsocket -ldl -lm -ltermcap -lcurses  -Wl,-Bexport
Undefined                       first referenced
  symbol                             in file
nocachegetattr                      pgc.o
ecpg: fatal error: Symbol referencing errors. No output written to ecpg
collect2: ld returned 1 exit status
gmake[3]: *** [ecpg] Error 1
gmake[3]: Leaving directory 
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/src/postgresql-7.0.3/src/interfaces/ecpg'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/src/postgresql-7.0.3/src/interfaces'
gmake: *** [all] Error 2

Roberto Fichera.

In response to


pgsql-ports by date

Next:From: Robert E. BruccoleriDate: 2000-11-13 19:29:43
Subject: Re: compilation errors on SGI Indy R4000 with IRIX 6.5.9
Previous:From: Super-User paulDate: 2000-11-13 16:50:27
Subject: compilation errors on SGI Indy R4000 with IRIX 6.5.9

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group