Re: SCO Ports

Поиск
Список
Период
Сортировка
От Roberto Fichera
Тема Re: SCO Ports
Дата
Msg-id 5.0.0.25.0.20001113194839.0350ceb0@mail.tekno-soft.it
обсуждение исходный текст
Ответ на Re: SCO Ports  (Peter Eisentraut <peter_e@gmx.net>)
Ответы GCC & SCO Ports  (Roberto Fichera <kernel@tekno-soft.it>)
Список 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

%.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.


В списке pgsql-ports по дате отправления:

Предыдущее
От: Super-User paul
Дата:
Сообщение: compilation errors on SGI Indy R4000 with IRIX 6.5.9
Следующее
От: bruc@stone.congenomics.com (Robert E. Bruccoleri)
Дата:
Сообщение: Re: compilation errors on SGI Indy R4000 with IRIX 6.5.9