compiling 7.4 under MacOS 10.4.6 using ports....

Поиск
Список
Период
Сортировка
Искать

compiling 7.4 under MacOS 10.4.6 using ports....

От:
Stanislav Silnitski <silnitskij@zelnet.ru>
Дата:
In file included from ../../../../src/include/storage/spin.h:50,
                  from xlog.c:35:
../../../../src/include/storage/s_lock.h:543:2: error: #error  
PostgreSQL does not have native spinlock support on this platform. To  
continue the compilation, rerun configure using --disable-spinlocks.  
However, performance will be poor. Please report this to pgsql- 
bugs@postgresql.org.
In file included from ../../../../src/include/storage/spin.h:50,
                  from xlog.c:35:
../../../../src/include/storage/s_lock.h:551: error: conflicting  
types for 'slock_t'
../../../../src/include/pg_config_os.h:11: error: previous  
declaration of 'slock_t' was here
gnumake[4]: *** [xlog.o] Error 1
gnumake[3]: *** [transam-recursive] Error 2
gnumake[2]: *** [access-recursive] Error 2
gnumake[1]: *** [all] Error 2
gnumake: *** [all] Error 2

Re: compiling 7.4 under MacOS 10.4.6 using ports.... (forgot about compiling string. ups...)

От:
Stanislav Silnitski <silnitskij@zelnet.ru>
Дата:
/usr/bin/gcc-4.0 -no-cpp-precomp -I/opt/local/include -fno-strict- 
aliasing -Wall -Wmissing-prototypes -Wmissing-declarations - 
I../../../../src/include -I/opt/local/include  -I/opt/local/include  - 
c -o xlog.o xlog.c

On Mar 19, 2007, at 1:49 AM, Stanislav Silnitski wrote:

> In file included from ../../../../src/include/storage/spin.h:50,
>                  from xlog.c:35:
> ../../../../src/include/storage/s_lock.h:543:2: error: #error  
> PostgreSQL does not have native spinlock support on this platform.  
> To continue the compilation, rerun configure using --disable- 
> spinlocks. However, performance will be poor. Please report this to  
> pgsql-bugs@postgresql.org.
> In file included from ../../../../src/include/storage/spin.h:50,
>                  from xlog.c:35:
> ../../../../src/include/storage/s_lock.h:551: error: conflicting  
> types for 'slock_t'
> ../../../../src/include/pg_config_os.h:11: error: previous  
> declaration of 'slock_t' was here
> gnumake[4]: *** [xlog.o] Error 1
> gnumake[3]: *** [transam-recursive] Error 2
> gnumake[2]: *** [access-recursive] Error 2
> gnumake[1]: *** [all] Error 2
> gnumake: *** [all] Error 2
>

Re: compiling 7.4 under MacOS 10.4.6 using ports....

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Stanislav Silnitski  writes:
> In file included from ../../../../src/include/storage/spin.h:50,
>                   from xlog.c:35:
> ../../../../src/include/storage/s_lock.h:543:2: error: #error  
> PostgreSQL does not have native spinlock support on this platform. To  
> continue the compilation, rerun configure using --disable-spinlocks.  
> However, performance will be poor. Please report this to pgsql- 
> bugs@postgresql.org.

7.4 has not heard that OSX might run on anything besides PPC.
Use a more recent PG release if you want to build on an Intel Mac.
Actually, you should use a more recent PG release anyway.

			regards, tom lane
FAQ