I have updated the webrev ( http://cr.opensolaris.org/~seema/6670736/ ).
Main changes include patches to apr_hints.m4 and apr_common.m4 apr_hints.m4 - to add the threaded flags. apr_common.m4 - to use the Sun compiler's flag, "-xM" to generate makefile dependencies. Since, for httpd we use the bundled configure script, there is a need to patch this file, too. Without this, mod_auth_gss build caused the following error: cc1: error: invalid option `t' Trussing the mod_auth_gss make showed that it was executing cpp in /usr/sfw/bin which in turn called /usr/sfw/libexec/gcc/i386-pc-solaris2.11/3.4.3/cc1 with -mt option Snippet of the truss o/p: -------- 1858: execve("/usr/sfw/libexec/gcc/i386-pc-solaris2.11/3.4.3/cc1", 0x0807F2D0, 0x0807A05C) argc = 30 1858: envp: 1858: COLLECT_GCC_OPTIONS='-E' '-M' '-DSOLARIS2=11' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_POSIX_PTHREAD_SEMANTICS' '-mt' '-I../httpd-2.2.8-prefork/srclib/pcre'.... -------- Thanks, Seema. Jeff Trawick wrote: > Seema Alevoor wrote: >>> It sounds to me like the APR hard-coding of flags for threads on Solaris >>> should look like: >>> >>> if !disable-threads >>> if $CC -flags | grep -- '^-mt.*multi-threaded' >/dev/null 2>&1 >>> use -mt for compiling and linking >>> else >>> use -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT for compiling >>> fi >>> fi >>> >>> >> Agreed. I will make the changes and repost the diffs. >> > Thanks for bearing with me on this, and showing the URL for the commentary! > > _______________________________________________ > > > webstack-discuss mailing list > webstack-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/webstack-discuss