You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by jean-frederic clere <jf...@fujitsu-siemens.com> on 2001/06/12 11:01:04 UTC
httpd-2.0/server/mpm/threaded/threaded.c does not compile on Solaris 5.8
Hi,
Compilation of httpd-2.0/server/mpm/threaded/threaded.c failed on my Solaris
machine:
+++
/bin/sh /export/home/apache20/apache/httpd-2.0/srclib/apr/libtool --silent --mod
e=compile cc -g -mt -DNO_DBM_REWRITEMAP -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANT
ICS -D_REENTRANT -I. -I/export/home/apache20/apache/httpd-2.0/os/unix -I/expo
rt/home/apache20/apache/httpd-2.0/server/mpm/threaded -I/export/home/apache20/ap
ache/httpd-2.0/modules/http -I/export/home/apache20/apache/httpd-2.0/include -I/
export/home/apache20/apache/httpd-2.0/srclib/apr/include -I/export/home/apache20
/apache/httpd-2.0/srclib/apr-util/include -I/export/home/apache20/include/openss
l -I/export/home/apache20/apache/httpd-2.0/modules/dav/main -c threaded.c && tou
ch threaded.lo
"/usr/include/sys/processor.h", line 75: warning: dubious reference to struct ty
pedef: processor_info_t
"threaded.c", line 811: undefined symbol: BINDPROCESS
"threaded.c", line 812: undefined symbol: PROCESSOR_CLASS_ANY
cc: acomp failed for threaded.c
make[1]: *** [threaded.lo] Error 1
make[1]: Leaving directory `/export/home/apache20/apache/httpd-2.0/server/mpm/th
readed'
make: *** [all-recursive] Error 1
+++
I think the problem is due to the change:
+++
$ cvs diff -r1.32 3 threaded.c
Index: threaded.c
===================================================================
RCS file: /home/cvs/apache/httpd-2.0/server/mpm/threaded/threaded.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- threaded.c 2001/05/15 02:38:17 1.32
+++ threaded.c 2001/06/11 21:41:50 1.33
@@ -803,7 +803,7 @@
}
if (!pid) {
-#ifdef AIX_BIND_PROCESSOR
+#ifdef HAVE_SYS_PROCESSOR_H
/* By default, AIX binds to a single processor. This bit unbinds
children which will then bind to another CPU.
*/
+++
Of this probably fixes some AIX problems...
Cheers
Jean-frederic
Re: httpd-2.0/server/mpm/threaded/threaded.c does not compile on Solaris
5.8
Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
It is fixed now
Thanks Jeff!
Jean-frederic
Clere Jean-Frederic FSC EP LP COM 5 wrote:
>
> Hi,
>
> Compilation of httpd-2.0/server/mpm/threaded/threaded.c failed on my Solaris
> machine:
> +++
> /bin/sh /export/home/apache20/apache/httpd-2.0/srclib/apr/libtool --silent --mod
> e=compile cc -g -mt -DNO_DBM_REWRITEMAP -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANT
> ICS -D_REENTRANT -I. -I/export/home/apache20/apache/httpd-2.0/os/unix -I/expo
> rt/home/apache20/apache/httpd-2.0/server/mpm/threaded -I/export/home/apache20/ap
> ache/httpd-2.0/modules/http -I/export/home/apache20/apache/httpd-2.0/include -I/
> export/home/apache20/apache/httpd-2.0/srclib/apr/include -I/export/home/apache20
> /apache/httpd-2.0/srclib/apr-util/include -I/export/home/apache20/include/openss
> l -I/export/home/apache20/apache/httpd-2.0/modules/dav/main -c threaded.c && tou
> ch threaded.lo
> "/usr/include/sys/processor.h", line 75: warning: dubious reference to struct ty
> pedef: processor_info_t
> "threaded.c", line 811: undefined symbol: BINDPROCESS
> "threaded.c", line 812: undefined symbol: PROCESSOR_CLASS_ANY
> cc: acomp failed for threaded.c
> make[1]: *** [threaded.lo] Error 1
> make[1]: Leaving directory `/export/home/apache20/apache/httpd-2.0/server/mpm/th
> readed'
> make: *** [all-recursive] Error 1
> +++
>
> I think the problem is due to the change:
> +++
> $ cvs diff -r1.32 3 threaded.c
> Index: threaded.c
> ===================================================================
> RCS file: /home/cvs/apache/httpd-2.0/server/mpm/threaded/threaded.c,v
> retrieving revision 1.32
> retrieving revision 1.33
> diff -u -r1.32 -r1.33
> --- threaded.c 2001/05/15 02:38:17 1.32
> +++ threaded.c 2001/06/11 21:41:50 1.33
> @@ -803,7 +803,7 @@
> }
>
> if (!pid) {
> -#ifdef AIX_BIND_PROCESSOR
> +#ifdef HAVE_SYS_PROCESSOR_H
> /* By default, AIX binds to a single processor. This bit unbinds
> children which will then bind to another CPU.
> */
> +++
> Of this probably fixes some AIX problems...
>
> Cheers
>
> Jean-frederic