[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-ports
Subject:    Re: [PORTS] SCO Ports
From:       Roberto Fichera <kernel () tekno-soft ! it>
Date:       2000-11-13 19:14:10
[Download RAW message or body]

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

%.so: %.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 
because
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 
`/usr/src/postgresql-7.0.3/src/interfaces/ecpg/preproc'
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 
`/usr/src/postgresql-7.0.3/src/interfaces/ecpg/prepr
oc'
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.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic