Thread: error compiling 7.4.13 on OSX 10.4.8 -- Intel

error compiling 7.4.13 on OSX 10.4.8 -- Intel

From
Stan Kaufman
Date:
Attempting to compile PG 7.4.13 on a MBP (OSX 10.4.8, Intel), this happens:

===
gcc -no-cpp-precomp -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -I../../../../src/include -I/sw/include/  -c -o
xlog.o xlog.c
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
make[4]: *** [xlog.o] Error 1
make[3]: *** [transam-recursive] Error 2
make[2]: *** [access-recursive] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2
===

I gather this means that PG 7.4.13 is incompatible with Intel Macs?

Re: error compiling 7.4.13 on OSX 10.4.8 -- Intel

From
Bruce Momjian
Date:
I suggest you use the newer 8.1.X.

---------------------------------------------------------------------------

Stan Kaufman wrote:
> Attempting to compile PG 7.4.13 on a MBP (OSX 10.4.8, Intel), this happens:
>
> ===
> gcc -no-cpp-precomp -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
> -Wmissing-declarations -I../../../../src/include -I/sw/include/  -c -o
> xlog.o xlog.c
> 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
> make[4]: *** [xlog.o] Error 1
> make[3]: *** [transam-recursive] Error 2
> make[2]: *** [access-recursive] Error 2
> make[1]: *** [all] Error 2
> make: *** [all] Error 2
> ===
>
> I gather this means that PG 7.4.13 is incompatible with Intel Macs?
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings

--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +