[ADMIN] Problems compiling PostgreSQL 6.4 on Digital Unix 4.0d

From: Carl Riches <riches(at)ms(dot)washington(dot)edu>
To: pgsql-admin(at)postgreSQL(dot)org
Subject: [ADMIN] Problems compiling PostgreSQL 6.4 on Digital Unix 4.0d
Date: 1998-11-13 22:38:04
Message-ID: Pine.OSF.4.02A.9811131433110.18038-100000@hilbert1.ms.washington.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I don't know if this message should be sent to the admin list or the
hackers list. Please redirect me if this is the wrong list. I am having
some trouble compiling version 6.4 on Digital Unix 4.0d.

The first problem I ran into was a function prototyping error in
snprintf.c. I was able to fix this problem. Here is the SCCS diff of the
fix that I had to do to make it compile:

------- snprintf.c -------
123a124,126
> #ifdef HAVE_LONG_INT_64
> static void fmtnum __P((long_long value, int base, int dosign, int ljust, int len, int zpad));
> #else
124a128
> #endif

However, now the compile fails with all of this:

gcc -I../../../include -I../../../backend -DNOFIXADE -Wall
-Wmissing-prototypes -I../.. -c buf_init.c -o buf_init.o
../../../include/storage/s_lock.h: In function `tas':
In file included from buf_init.c:29:
../../../include/storage/s_lock.h:102: aggregate value used where an
integer was expected
buf_init.c: In function `InitBufferPool':
buf_init.c:234: incompatible types in assignment
gmake[3]: *** [buf_init.o] Error 1

gcc -I../../../include -I../../../backend -DNOFIXADE -Wall
-Wmissing-prototypes -I../.. -c ipc.c -o ipc.o
In file included from ../../../include/libpq/libpq-be.h:21,
from ../../../include/libpq/libpq.h:20,
from ipc.c:41:
../../../include/libpq/hba.h:22: warning: `MAP_FILE' redefined
/usr/include/sys/mman.h:73: warning: this is the location of the
previous definition
../../../include/storage/s_lock.h: In function `tas':
In file included from ipc.c:36:
../../../include/storage/s_lock.h:102: aggregate value used where an
integer was expected
ipc.c: In function `IpcSemaphoreCreate':
ipc.c:367: warning: cast to pointer from integer of different size
ipc.c: In function `IpcMemoryCreate':
ipc.c:569: warning: cast to pointer from integer of different size
ipc.c: In function `CreateAndInitSLockMemory':
ipc.c:699: incompatible types in assignment
ipc.c:702: incompatible types in assignment
ipc.c:703: incompatible types in assignment
ipc.c:704: incompatible types in assignment
ipc.c: In function `AttachSLockMemory':
ipc.c:725: incompatible types in assignment
gmake[3]: *** [ipc.o] Error 1

And then:

gmake[3]: Entering directory
`/usr/src/id/dunix/usr/local/bin/postgresql-v6.4/src/backend/storage/buffer'
gmake[3]: *** No rule to make target `buffer/SUBSYS.o'. Stop.
gmake[3]: Leaving directory
`/usr/src/id/dunix/usr/local/bin/postgresql-v6.4/src/backend/storage/buffer'
gmake[3]: Entering directory
`/usr/src/id/dunix/usr/local/bin/postgresql-v6.4/src/backend/storage/file'
gmake[3]: *** No rule to make target `buffer/SUBSYS.o'. Stop.
gmake[3]: Leaving directory
`/usr/src/id/dunix/usr/local/bin/postgresql-v6.4/src/backend/storage/file'
gmake[3]: Entering directory
`/usr/src/id/dunix/usr/local/bin/postgresql-v6.4/src/backend/storage/ipc'
gmake[3]: *** No rule to make target `buffer/SUBSYS.o'. Stop.
gmake[3]: Leaving directory
`/usr/src/id/dunix/usr/local/bin/postgresql-v6.4/src/backend/storage/ipc'
gmake[3]: Entering directory
`/usr/src/id/dunix/usr/local/bin/postgresql-v6.4/src/backend/storage/large_object'
gmake[3]: *** No rule to make target `buffer/SUBSYS.o'. Stop.
gmake[3]: Leaving directory
`/usr/src/id/dunix/usr/local/bin/postgresql-v6.4/src/backend/storage/large_object'
gmake[3]: Entering directory
`/usr/src/id/dunix/usr/local/bin/postgresql-v6.4/src/backend/storage/lmgr'
gmake[3]: *** No rule to make target `buffer/SUBSYS.o'. Stop.
gmake[3]: Leaving directory
`/usr/src/id/dunix/usr/local/bin/postgresql-v6.4/src/backend/storage/lmgr'
gmake[3]: Entering directory
`/usr/src/id/dunix/usr/local/bin/postgresql-v6.4/src/backend/storage/page'
gmake[3]: *** No rule to make target `buffer/SUBSYS.o'. Stop.
gmake[3]: Leaving directory
`/usr/src/id/dunix/usr/local/bin/postgresql-v6.4/src/backend/storage/page'
gmake[3]: Entering directory
`/usr/src/id/dunix/usr/local/bin/postgresql-v6.4/src/backend/storage/smgr'
gmake[3]: *** No rule to make target `buffer/SUBSYS.o'. Stop.
gmake: *** [all] Error 2

I am unable to figure out what do do at this point. Can someone suggest
fixes for these errors?

Thanks,
Carl

Carl G. Riches
Software Engineer
Department of Mathematics
Box 354350 voice: 206-543-5082 or 206-616-3636
University of Washington fax: 206-543-0397
Seattle, WA 98195-4350 internet: riches(at)ms(dot)washington(dot)edu

Browse pgsql-admin by date

  From Date Subject
Next Message Ivo Welch 1998-11-15 23:15:15 RH 5.1 Installation ?
Previous Message A James Lewis 1998-11-13 18:37:22 Re: [ADMIN] Compile error with 6.4 on Solaris2.6