site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BV3TsX178jznhzprghrgfJNtaVyIYv8eIe6yq2SUInjJaXx+UDwU3BiiJMFiiWOAWFI0H26So2ez0QjRfzUvIXmnx37eyE1gspNQiAkn1dhqanS3i2ymu4nauSBm0Q5Kf8jLpXJueQbfORZtn20MHN1AukXKFFtq26axz9oxLZ8= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=OX+enGBcp0nRbG4bAelQleE9I+UFRSWFer4kgLx65k/ipztmls6R6DZ2QHp1z6NPSUg2iaK7JMi8J2vW4kHBes8P8Cih+Kd1q0f3xjpq1YgNSbl61/zYtxF58QYkFSOaF4PVhDi3bhnSfWYAZ4/GXJ8InAu09hO2NExSVfwsmfY= Hello I hope this is the correct list for my question. If not please let me know which one would be more appropriate for me. I am trying to compile http://www.dbmail.org/ on my MacBook. I have successfuly compiled it on FreeBSD and Ubuntu so it should work on Mac OS X too. One of the file has the following code: void scoreboard_new(serverConfig_t * conf) { int serr; if ((shmid = shmget(IPC_PRIVATE, (sizeof(child_state_t) * HARD_MAX_CHILDREN), 0644 | IPC_CREAT)) == -1) { serr = errno; TRACE(TRACE_FATAL, "shmget failed [%s]", strerror(serr)); } scoreboard = shmat(shmid, (void *) 0, 0); serr=errno; if (scoreboard == (Scoreboard_t *) (-1)) { TRACE(TRACE_FATAL, "scoreboard init failed [%s]", strerror(serr)); scoreboard_delete(); } scoreboard_lock_new(); scoreboard->conf = conf; scoreboard_setup(); scoreboard_conf_check(); /* Make sure that we clean up our shared memory segments when we exit * normally (i.e. not by kill -9, if you do that, you get to clean this * up yourself!) * */ atexit(scoreboard_delete); } The code compiles correctly but shmget() and shmat() fails with error: shmget failed [No space left on device] scoreboard init failed [Permission denied] I tried to follow the steps given at http://www.spy-hill.net/help/apple/SharedMemory.html to solve the shmget() issue but without success. For the second issue, I found: http://developer.apple.com/technotes/tn2002/tn2053.html A problem where shmat would fail with a permission denied error when it was attempted by root has been corrected. (r. 2910913). but apparently it still fails on my Mac OS X Tiger even though I am running the app as *sudo*. Any ideas? -- Ritesh _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com