Thread: build postgresql-7.4.2 fails: FATAL: semctl(35, 16, SETVAL, 536) failed: Inv,alid argument

2004 June 1st

Upon build ...
./configure
 --enable-multibyte
--with-perl
--with-CXX
--prefix=/usr
--sysconfdir=/etc
--datadir=/usr/share
--mandir=/usr/share/man
--docdir=/usr/share/doc/postgresql-7.4.2
...
make
...
make install
...

Administrator@Dementor /cygdrive/d/Applications/postgresql-7.4.2
$ initdb -D /usr/local/pgsql/data
The files belonging to this database system will be owned by user
"Administrator".
This user must also own the server process.

The database cluster will be initialized with locale C.

creating directory /usr/local/pgsql/data... ok
creating directory /usr/local/pgsql/data/base... ok
creating directory /usr/local/pgsql/data/global... ok
creating directory /usr/local/pgsql/data/pg_xlog... ok
creating directory /usr/local/pgsql/data/pg_clog... ok
selecting default max_connections... 10
selecting default shared_buffers... 50
creating configuration files... ok
creating template1 database in /usr/local/pgsql/data/base/1... FATAL:
semctl(35, 16, SETVAL, 536) failed: Inv
alid argument

initdb: failed
initdb: removing data directory "/usr/local/pgsql/data"
...
I'm frustrated!

Besides 7.4.1 runs!!!
I just don't want to start with bugs as a newcomer.

uk :'(
------------------------------------------------------------------------
contact <contact@uuukkk.net> writes:
> creating template1 database in /usr/local/pgsql/data/base/1... FATAL:
> semctl(35, 16, SETVAL, 536) failed: Invalid argument

You're not going to get a lot of help on this when you didn't mention
your platform, but it looks like your kernel doesn't support SysV IPC.
See the PG admin guide for some hints.

> Besides 7.4.1 runs!!!

Did you have 7.4.1 running at the same time?  Maybe you're hitting the
kernel limit on how many SysV semaphores you can have at once.  That's
not quite the error message I would have expected in that case, but
it's a possibility.

            regards, tom lane