[OGo-MacOSX] Apache 2 module for SOPE 4.x

Matthew Griffin macosx@opengroupware.org
Wed, 30 Nov 2005 09:52:38 +0100


--Apple-Mail-28-414736293
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed

Hi Tabitha

Although I got open groupware running after several weeks of hard  
work, and lots of help from generous people on the forum, I was  
unable to get skyaptnotify to run.  (April 2005).

Helge collected the errors etc. and perhaps this problem has been  
solved in the mean time, but then I ran out of time to experiment,  
and abandoned the project (I was also having trouble getting cyrus to  
run on the non server version of OSX (this should work out of the box  
with the server version).  The cyrus problem was the main reason for  
my decision though.

My understanding is that it works better on various strains of linux,  
and I would have probably been better off starting out by buying a  
new server...

Ciao

Matthew


On Nov 29, 2005, at 3:06 PM, Tabitha McNerney wrote:

> On 11/29/05, Helge Hess <helge.hess@opengroupware.org> wrote:
> > On 28. Nov 2005, at 20:41 Uhr, Tabitha McNerney wrote:
> > > Has anyone built SOPE's mod_ngobjweb.so as an Apache 2 DSO for
> > > their system with apxs2?
> >
> > I didn't. Tiger still comes with 1.3.33. Whats the point in changing
> > this?
>
> Hello Helge. Thank you for assistance. My boss said we need Apache  
> 2 and he doesn't want us to maintain two versions of httpd.
>
> >
> > > I tried to follow along based on  the README file (in the  
> directory
> > > for SOPE-4.5/sope-appserver/mod_ngobjweb) but I end up with ld  
> errors.
> >
> > It would be better if you would post the first of the errors. I  
> think
> > it should work though you might need to give appropriate apxs  
> arguments.
>
> On Tiger Server, Apple bundles Apache 2 in the /opt/apache2  
> directory. So I try to build the ngo module using apxs in its path,  
> like this:
>
> mac:~/SOPE-4.5/sope-appserver/mod_ngobjweb ogoa$ make apxs=/opt/ 
> apache2/bin/apxs
>
> and also the bin directory is in my path:
>
> PATH=$PATH:/opt/apache/bin
>
> and the output I am getting when trying to make is:
>
> make: no: Command not found
> gcc -Wall -I. -fPIC  -arch i386 -arch ppc -pipe -I/opt/apache2/ 
> include -I   -c -o globals.o globals.c
> gcc: installation problem, cannot exec 'i686-apple-darwin8- 
> gcc-4.0.0': No such file or directory
> /usr/bin/ld: for architecture ppc
> /usr/bin/ld: Undefined symbols:
> _main
> collect2: ld returned 1 exit status
> lipo: can't figure out the architecture type of: /var/tmp// 
> ccY2JPKb.out
> make: *** [globals.o] Error 255
>
> The version of gcc I'm using is what Apple ships with Tiger / Dev  
> tools:
>
> $ gcc -v
> Reading specs from /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs
> Configured with: /private/var/tmp/gcc/gcc- 4061.obj~8/src/configure  
> --disable-checking --prefix=/usr --mandir=/share/man --enable- 
> languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^+.-]* 
> $/s/$/-4.0/ --with-gxx-include-dir=/include/gcc/darwin/4.0/c++ -- 
> build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 -- 
> target=powerpc-apple-darwin8
> Thread model: posix
> gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)
>
>
> For fun, I also tried with gcc-3.3 by modifying the module's  
> GNUMake file for these lines:
>
> CC            = gcc-3.3
> LD            = gcc-3.3
>
> and then I got these errors:
>
> $ make apxs=/opt/apache2/bin/apxs
> gcc-3.3 -Wall -I. -fPIC  -arch i386 -arch ppc -pipe -I/opt/apache2/ 
> include -I/opt/local/include/apr-0   -c -o globals.o globals.c
> gcc-3.3: cannot read specs file for arch `i386'
> make: *** [globals.o] Error 1
>
> Any suggestions where to start are appreciated as my strong suit  
> isn't gcc.
>
> > > It would seem that somewhere out there someone has modifed the  
> make
> > > file for apache2 on Mac OS X.
> >
> > No modification should be necessary.
>
> That would be nice.
>
> >
> > > Do most OGo users and admis still run OGo on Mac OS X using Apache
> > > 1.3.x rather than Apache 2?
> >
> > I suppose there are only very few to none who run OGo _deployments_
> > on OSX. Well, at least Mont seems to use it for SOPE deployments.
>
> Why are there possibly none or very few who run OGo deployments on  
> OS X? Is there a problem doing so?
>
> Best regards,
>
> Tabitha
>
> >
> > Greets,
> >    Helge
> > --
> > http://docs.opengroupware.org/Members/helge/
> > OpenGroupware.org
> >
> > --
> > OpenGroupware.org MacOS X
> > macosx@opengroupware.org
> > http://mail.opengroupware.org/mailman/listinfo/macosx
> >


--Apple-Mail-28-414736293
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=ISO-8859-1

<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; ">Hi Tabitha<DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Although I got open =
groupware running after several weeks of hard work, and lots of help =
from generous people on the forum, I was unable to get skyaptnotify to =
run.=A0 (April 2005).</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Helge collected the errors =
etc. and perhaps this problem has been solved in the mean time, but then =
I ran out of time to experiment, and abandoned the project (I was also =
having trouble getting cyrus to run on the non server version of OSX =
(this should work out of the box with the server version).=A0 The cyrus =
problem was the main reason for my decision though.</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>My understanding is that it =
works better on various strains of linux, and I would have probably been =
better off starting out by buying a new server...</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Ciao</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV>Matthew</DIV><DIV><BR =
class=3D"khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On Nov 29, =
2005, at 3:06 PM, Tabitha McNerney wrote:</DIV><BR =
class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite">On =
11/29/05, Helge Hess &lt;<A =
href=3D"mailto:helge.hess@opengroupware.org">helge.hess@opengroupware.org<=
/A>&gt; wrote:<BR>&gt; On 28. Nov 2005, at 20:41 Uhr, Tabitha McNerney =
wrote:<BR>&gt; &gt; Has anyone built SOPE's mod_ngobjweb.so as an Apache =
2 DSO for <BR>&gt; &gt; their system with apxs2?<BR>&gt; <BR>&gt; I =
didn't. Tiger still comes with 1.3.33. Whats the point in =
changing<BR>&gt; this?<BR><BR>Hello Helge. Thank you for assistance. My =
boss said we need Apache 2 and he doesn't want us to maintain two =
versions of httpd. <BR><BR>&gt; <BR>&gt; &gt; I tried to follow along =
based on=A0=A0the README file (in the directory<BR>&gt; &gt; for =
SOPE-4.5/sope-appserver/mod_ngobjweb) but I end up with ld =
errors.<BR>&gt; <BR>&gt; It would be better if you would post the first =
of the errors. I think <BR>&gt; it should work though you might need to =
give appropriate apxs arguments.<BR><BR>On Tiger Server, Apple bundles =
Apache 2 in the /opt/apache2 directory. So I try to build the ngo module =
using apxs in its path, like this: <BR><BR><BLOCKQUOTE =
style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt =
0.8ex; padding-left: 1ex;" =
class=3D"gmail_quote">mac:~/SOPE-4.5/sope-appserver/mod_ngobjweb ogoa$ =
make apxs=3D/opt/apache2/bin/apxs <BR> </BLOCKQUOTE><BR>and also the bin =
directory is in my path:<BR><BR><BLOCKQUOTE style=3D"border-left: 1px =
solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" =
class=3D"gmail_quote">PATH=3D$PATH:/opt/apache/bin =
<BR></BLOCKQUOTE><BR>and the output I am getting when trying to make =
is:<BR><BR><BLOCKQUOTE style=3D"border-left: 1px solid rgb(204, 204, =
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" =
class=3D"gmail_quote">make: no: Command not found <BR>gcc -Wall -I. =
-fPIC=A0 -arch i386 -arch ppc -pipe -I/opt/apache2/include -I=A0=A0 -c =
-o globals.o globals.c<BR>gcc: installation problem, cannot exec =
'i686-apple-darwin8-gcc-4.0.0': No such file or =
directory<BR>/usr/bin/ld: for architecture ppc <BR>/usr/bin/ld: =
Undefined symbols:<BR>_main<BR>collect2: ld returned 1 exit =
status<BR>lipo: can't figure out the architecture type of: =
/var/tmp//ccY2JPKb.out<BR>make: *** [globals.o] Error =
255<BR></BLOCKQUOTE><BR>The version of gcc I'm using is what Apple ships =
with Tiger / Dev tools: <BR><BR><BLOCKQUOTE style=3D"border-left: 1px =
solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" =
class=3D"gmail_quote">$ gcc -v<BR>Reading specs from =
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs<BR>Configured with: =
/private/var/tmp/gcc/gcc- 4061.obj~8/src/configure --disable-checking =
--prefix=3D/usr --mandir=3D/share/man =
--enable-languages=3Dc,objc,c++,obj-c++ =
--program-transform-name=3D/^[cg][^+.-]*$/s/$/-4.0/ =
--with-gxx-include-dir=3D/include/gcc/darwin/4.0/c++ =
--build=3Dpowerpc-apple-darwin8 --host=3Dpowerpc-apple-darwin8 =
--target=3Dpowerpc-apple-darwin8 <BR>Thread model: posix<BR>gcc version =
4.0.0 20041026 (Apple Computer, Inc. build =
4061)<BR></BLOCKQUOTE><BR><BR>For fun, I also tried with gcc-3.3 by =
modifying the module's GNUMake file for these lines:<BR><BR><BLOCKQUOTE =
style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt =
0.8ex; padding-left: 1ex;" class=3D"gmail_quote"> CC=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0 =3D gcc-3.3<BR>LD=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D =
gcc-3.3<BR></BLOCKQUOTE><BR>and then I got these =
errors:<BR><BR><BLOCKQUOTE style=3D"border-left: 1px solid rgb(204, 204, =
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" =
class=3D"gmail_quote"> $ make apxs=3D/opt/apache2/bin/apxs <BR>gcc-3.3 =
-Wall -I. -fPIC=A0 -arch i386 -arch ppc -pipe -I/opt/apache2/include =
-I/opt/local/include/apr-0=A0=A0 -c -o globals.o globals.c<BR>gcc-3.3: =
cannot read specs file for arch `i386'<BR> make: *** [globals.o] Error =
1<BR></BLOCKQUOTE><BR>Any suggestions where to start are appreciated as =
my strong suit isn't gcc.<BR><BR>&gt; &gt; It would seem that somewhere =
out there someone has modifed the make<BR>&gt; &gt; file for apache2 on =
Mac OS X. <BR>&gt; <BR>&gt; No modification should be =
necessary.<BR><BR>That would be nice.<BR><BR>&gt; <BR>&gt; &gt; Do most =
OGo users and admis still run OGo on Mac OS X using Apache<BR>&gt; &gt; =
1.3.x rather than Apache 2?<BR>&gt; <BR>&gt; I suppose there are only =
very few to none who run OGo _deployments_<BR>&gt; on OSX. Well, at =
least Mont seems to use it for SOPE deployments.<BR><BR>Why are there =
possibly none or very few who run OGo deployments on OS X? Is there a =
problem doing so? <BR><BR>Best regards,<BR><BR>Tabitha<BR><BR>&gt; =
<BR>&gt; Greets,<BR>&gt;=A0=A0=A0=A0Helge<BR>&gt; --<BR>&gt; <A =
href=3D"http://docs.opengroupware.org/Members/helge/">http://docs.opengrou=
pware.org/Members/helge/</A><BR>&gt; OpenGroupware.org <BR>&gt; <BR>&gt; =
--<BR>&gt; OpenGroupware.org MacOS X<BR>&gt; <A =
href=3D"mailto:macosx@opengroupware.org">macosx@opengroupware.org</A><BR>&=
gt; <A =
href=3D"http://mail.opengroupware.org/mailman/listinfo/macosx">http://mail=
.opengroupware.org/mailman/listinfo/macosx </A><BR>&gt; =
<BR></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>=

--Apple-Mail-28-414736293--