Re: IpcSemaphoreCreate - detailed account - Mailing list pgsql-cygwin

From Gregory D Dennis
Subject Re: IpcSemaphoreCreate - detailed account
Date
Msg-id 3E4B455C.4060305@mit.edu
Whole thread Raw
In response to Re: IpcSemaphoreCreate - detailed account  (Jason Tishler <jason@tishler.net>)
Responses Re: IpcSemaphoreCreate - detailed account
List pgsql-cygwin
I am running Windows XP Pro.

With your expert help, I've been able to narrow down the problem. Here's
what I did:

   $ ipc-daemon --install-as-service
   $ net start ipc-daemon

The second command produced an error:

   The service is not responding to the control function.
   More help is available by typing NET HELPMSG 2186.

Trying to start it from the services window produced:

   Could not start the Cygwin IPC Daemon service on Local Computer.
   Error 1053: The service did not respond to the start or control
request in a timely fashion.

I found archived messages to this list with similar problems using
install-as-service on Windows XP. They suggest, and I used, the following:

   $ cygrunsrv --install ipc-daemon --desc "CygWin IPC Daemon" --path
/usr/local/bin/ipc-daemon --termsig INT --shutdown
   $ net start ipc-daemon

This produced no error, so I tested it:

   $ ipctest s
   Test v0.03
   semaphore 0 created

I took this to be successful. I then switched to the 'postgres' user and
tried it as well. But this time I received an error:

   $ ipctest s
   Test v0.03
   Unable to create semaphore
   semget : Function not implemented

The 'postgres' user is an Administrator. I know postgresql won't work
unless ipctest runs successfully under the postgres user, so this is
where I stopped. Any ideas why this is happening?

Thanks,
Greg

Jason Tishler wrote:
> Greg,
>
> On Sat, Feb 08, 2003 at 08:01:03AM -0500, Gregory D Dennis wrote:
>
>>I am running on Windows XP.
>
>
> Home or Pro.
>
>
>>The given command
>>
>>   ipc-daemon --install-as-service
>>
>>did not work so i used instead
>
>
> The above is bad.  Please report this to the Cygwin list.
>
>
>>   cygrunsrv --install ipc-daemon --desc "CygWin IPC Daemon" --path
>>/usr/local/bin/ipc-daemon --termsig INT --shutdown
>>
>>i then started the ipc daemon
>>
>>   net start ipc-daemon
>>
>>and i can verify from the services window that it is in fact running.
>>I created the postgres user with
>
>
> Does ipctest work?  Especially, from the postgres account?  If not, then
> PostgreSQL will not work too.
>
>
>>still logged on as 'postgres', i tried to initialize the database
>>
>>   initdb -D /usr/share/postgresql/data
>>
>>and i received the following error:
>>
>>[snip]
>>
>>IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed: Function not
>>implemented
>>
>>   initdb failed.
>
>
> What is the output of the following command:
>
> $ ls -ld /tmp /tmp/cygipc_? /tmp/MultiFile*
> drwxrwxrwx+ 101 Administ None       188416 Feb 10 08:56 /tmp
> -rw-rw-rw-    1 SYSTEM   SYSTEM    3916520 Jan 17 11:19 /tmp/MultiFileMsg
> -rw-rw-rw-    1 SYSTEM   SYSTEM      22032 Jan 17 11:19 /tmp/MultiFileSem
> -rw-rw-rw-    1 SYSTEM   SYSTEM     202768 Jan 17 11:19 /tmp/MultiFileShm
> -rw-------    1 postgres None      1441792 Jan 13 16:30 /tmp/cygipc_0
>
> Jason
>


pgsql-cygwin by date:

Previous
From: "Nick Kelly"
Date:
Subject: configure: error: no acceptable C compiler found in $PATH
Next
From: Jason Tishler
Date:
Subject: Re: configure: error: no acceptable C compiler found in $PATH