m4_comment([$Id: macosx.so,v 11.14 2005/10/21 20:16:41 bostic Exp $]) m4_ref_title(Building m4_db for UNIX/POSIX systems, Mac OS X, Mac OS X, build_unix/linux, build_unix/osf1) m4_nlistbegin m4_nlist([dnl m4_bold([When trying to link multiple m4_db language interfaces (for example, Tcl, C++, Java, Python) into a single process, I get "multiple definitions" errors from dyld.]) m4_p([dnl To fix this problem, set the environment variable MACOSX_DEPLOYMENT_TARGET to 10.3 (or your current version of OS X), and reconfigure and rebuild m4_db from scratch. See the OS X ld(1) and dyld(1) man pages for information about how OS X handles symbol namespaces, as well as undefined and multiply-defined symbols.])]) m4_nlist([dnl m4_bold([When trying to use system-backed shared memory on OS X I see failures about "too many open files".]) m4_p([dnl The default number of shared memory segments on OS X is too low. To fix this problem, edit the file /etc/rc, changing the kern.sysv.shmmax and kern.sysv.shmseg values as follows:]) m4_indent([dnl *** /etc/rc.orig Fri Dec 19 09:34:09 2003 --- /etc/rc Fri Dec 19 09:33:53 2003 *************** *** 84,93 **** __OCT__ System tuning sysctl -w kern.maxvnodes=$(echo $(sysctl -n hw.physmem) '33554432 / 512 * 1024 +p'|dc) ! sysctl -w kern.sysv.shmmax=4194304 sysctl -w kern.sysv.shmmin=1 sysctl -w kern.sysv.shmmni=32 ! sysctl -w kern.sysv.shmseg=8 sysctl -w kern.sysv.shmall=1024 if __LB__ -f /etc/sysctl-macosxserver.conf __RB__; then awk '{ if (!index($1, "__OCT__") && index($1, "=")) print $1 }' __LT__ /etc/sysctl-macosxserver.conf | while read --- 84,93 ---- __OCT__ System tuning sysctl -w kern.maxvnodes=$(echo $(sysctl -n hw.physmem) '33554432 / 512 * 1024 +p'|dc) ! sysctl -w kern.sysv.shmmax=134217728 sysctl -w kern.sysv.shmmin=1 sysctl -w kern.sysv.shmmni=32 ! sysctl -w kern.sysv.shmseg=32 sysctl -w kern.sysv.shmall=1024 if __LB__ -f /etc/sysctl-macosxserver.conf __RB__; then awk '{ if (!index($1, "__OCT__") && index($1, "=")) print $1 }' __LT__ /etc/sysctl-macosxserver.conf | while read]) m4_p([dnl and then reboot the system.])]) m4_nlistend m4_page_footer