From: pc000@... (PaulC) Date: 2001-10-22T07:48:44+09:00 Subject: [ruby-talk:22913] Re: Building Ruby on MacOS 10.1 will_conant@hotmail.com (Will Conant) wrote in message news:<9ffbff09.0110211018.1753b0f@posting.google.com>... > Now, however, I can't build anything in the ext directory. They all fail with that > "-two_levelnamespace" error. > This is caused by the two-level namespaced in the OSX 10.1 linker (see http://developer.apple.com/techpubs/macosx/ReleaseNotes/TwoLevelNamespaces.html) There is a small patch attached to fix this (adds -flat_namespace to LDSHARED) - also you need to get the dlcompat library from http://fink.sourceforge.net/files/dlcompat-20010123.tar.gz to support dynamic loading of libraries Paul *** configure Sun Oct 21 18:22:33 2001 --- configure.orig Sun Oct 21 18:22:21 2001 *************** *** 4733,4739 **** LDFLAGS="" DLDFLAGS="$ARCH_FLAG" rb_cv_dlopen=yes ;; ! darwin*) LDSHARED='cc -dynamic -bundle -undefined suppress -flat_namespace' LDFLAGS="" DLDFLAGS="$ARCH_FLAG" rb_cv_dlopen=yes ;; --- 4733,4739 ---- LDFLAGS="" DLDFLAGS="$ARCH_FLAG" rb_cv_dlopen=yes ;; ! darwin*) LDSHARED='cc -dynamic -bundle -undefined suppress' LDFLAGS="" DLDFLAGS="$ARCH_FLAG" rb_cv_dlopen=yes ;;