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

Tabitha McNerney macosx@opengroupware.org
Tue, 29 Nov 2005 22:06:25 +0800


------=_Part_75648_18422524.1133273185557
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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=3D/opt/apache2/bin/apxs
>

and also the bin directory is in my path:

PATH=3D$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--disab=
le-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
> 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            =3D gcc-3.3
> LD            =3D gcc-3.3
>

and then I got these errors:

$ make apxs=3D/opt/apache2/bin/apxs
> gcc-3.3 -Wall -I. -fPIC  -arch i386 -arch ppc -pipe -I/opt/apache2/includ=
e
> -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
>

------=_Part_75648_18422524.1133273185557
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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_n=
gobjweb.so as an Apache 2 DSO for
<br>&gt; &gt; their system with apxs2?<br>&gt; <br>&gt; I didn't. Tiger sti=
ll comes with 1.3.33. Whats the point in changing<br>&gt; this?<br><br>Hell=
o Helge. Thank you for assistance. My boss said we need Apache 2 and he doe=
sn't want us to maintain two versions of httpd.
<br><br>&gt; <br>&gt; &gt; I tried to follow along based on&nbsp;&nbsp;the =
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 argu=
ments.<br><br>On Tiger Server, Apple bundles Apache 2 in the /opt/apache2 d=
irectory. So I try to build the ngo module using apxs in its path, like thi=
s:
<br><br><blockquote style=3D"border-left: 1px solid rgb(204, 204, 204); mar=
gin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class=3D"gmail_quote">mac:~/SOP=
E-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><blockquo=
te 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/b=
in
<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: Co=
mmand not found
<br>gcc -Wall -I. -fPIC&nbsp; -arch i386 -arch ppc -pipe -I/opt/apache2/inc=
lude -I&nbsp;&nbsp; -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 exi=
t status<br>lipo: can't figure out the architecture type of: /var/tmp//ccY2=
JPKb.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); mar=
gin: 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>Con=
figured with: /private/var/tmp/gcc/gcc-
4061.obj~8/src/configure --disable-checking --prefix=3D/usr --mandir=3D/sha=
re/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 sty=
le=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex;=
 padding-left: 1ex;" class=3D"gmail_quote">
CC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =3D gc=
c-3.3<br>LD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; =3D gcc-3.3<br></blockquote><br>and then I got these errors:<br><br><blo=
ckquote 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&nbsp; -arch=
 i386 -arch ppc -pipe -I/opt/apache2/include -I/opt/local/include/apr-0&nbs=
p;&nbsp; -c -o globals.o globals.c<br>gcc-3.3: cannot read specs file for a=
rch `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 woul=
d seem that somewhere out there someone has modifed the make<br>&gt; &gt; f=
ile 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;=
=20
<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;&n=
bsp;&nbsp;&nbsp;&nbsp;Helge<br>&gt; --<br>&gt; <a href=3D"http://docs.openg=
roupware.org/Members/helge/">http://docs.opengroupware.org/Members/helge/</=
a><br>&gt; OpenGroupware.org
<br>&gt; <br>&gt; --<br>&gt; OpenGroupware.org MacOS X<br>&gt; <a href=3D"m=
ailto:macosx@opengroupware.org">macosx@opengroupware.org</a><br>&gt; <a hre=
f=3D"http://mail.opengroupware.org/mailman/listinfo/macosx">http://mail.ope=
ngroupware.org/mailman/listinfo/macosx
</a><br>&gt; <br>

------=_Part_75648_18422524.1133273185557--