Re: [HACKERS] Alpha initdb fixed!

Поиск
Список
Период
Сортировка
От Ryan Kirkpatrick
Тема Re: [HACKERS] Alpha initdb fixed!
Дата
Msg-id Pine.LNX.3.95.980317195537.13782d-100000@stargazer
обсуждение исходный текст
Ответ на Re: [HACKERS] Alpha initdb fixed!  ("Pedro J. Lobo" <pjlobo@euitt.upm.es>)
Список pgsql-hackers
On Tue, 17 Mar 1998, Pedro J. Lobo wrote:

> I'll try it immediately, but I have a suggestion. On my DU 3.2c system, cc
> defines automatically the symbols "__osf__" and "__alpha", and gcc defines
> "__osf__", "__alpha" and "__alpha__". I think it would be easier to change
> every "#ifdef alpha" to "#ifdef __alpha", and stop worrying about it in
> the Makefiles.
>
> Can any of the linux-alpha folks try out which symbols does the compiler
> define? And someone who has DU 4.0x installed?

    Linux/Alpha provides the following useful/relavent symbols:
linux
__alpha
__alpha__
__linux
__linux__

    I had gone through the pgsql 6.2.1 source trying to fix/replace
all instances of 'linuxalpha' and such used as defines with '(defined
__alpha__) && (defined __linux__)'. But I hit a few snags in testing (i.e.
lack of time), and by the time I got things about sorted out, 6.3 came out
and changed so much I need to go through again and do it all anew. The
baisc problem it looks like you hit as well, is that non-standard define
names were used, and then never included in the platform specific defines.
This was the reason Linux/Alpha couldn't even get initdb to run (probably
same for you). Of course, the regression tests are still not perfect, and
there is a good deal of cleanup on the Linux/Alpha end of things as well.
It will be a while, but things are moving.

----------------------------------------------------------------------------
|   "For to me to live is Christ, and to die is gain."                     |
|                                            --- Philippians 1:21 (KJV)    |
----------------------------------------------------------------------------
|  Ryan Kirkpatrick  |  Boulder, Colorado  | rkirkpat@nag.cs.colorado.edu  |
----------------------------------------------------------------------------
|               http://www-ugrad.cs.colorado.edu/~rkirkpat/                |
----------------------------------------------------------------------------


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Re: [QUESTIONS] MySQL benchmark page
Следующее
От: t-ishii@sra.co.jp
Дата:
Сообщение: Re: [HACKERS] First mega-patch...