Hello!

Quoting Emiliano <[EMAIL PROTECTED]>:

> > I am currently running on RedHat Linux 6.2 . However, I am not
> using the 
> > apache.i386.rpm that came with RedHat but instead compiled a
> totally 
> > non-modular version by getting the tarballs and recompiling. My
> main 
> > apache files are in /usr/local/apache and apxs is found at 
> > /usr/local/apache/bin/apxs :-
> > 
> > server:mod_midgard-1.4beta5a-1# ls -l
> /usr/local/apache/bin/apxs
> > -rwxr-xr-x    1 root     root        20522 Jul 14 22:21 
> > /usr/local/apache/bin/apxs
> 
> apxs isn't in your path. Do
> $ export PATH=$PATH:/usr/local/apache/bin
> and then make.

I tried that and it gave me :-

server:mod_midgard-1.4beta5a-1# make
apxs -c -DHAVE_LIBMIDGARD=1 -DHAVE_MIDGARD_INIT=1 -DHAVE_MIDGARD_PARSER=1 
-DHAVE_MIDGARD_H=1    -L/usr/lib/mysql -L/usr/local/lib -L/usr/lib -lglib 
-lmidgard mgd_apache.c
gcc -DLINUX=2 -DTARGET="httpsd" -DUSE_HSREGEX -DUSE_EXPAT 
-I../lib/expat-lite -DNO_DL_NEEDED -DAPACHE_SSL -O6 -mpentiumpro 
-fno-strength-reduce  -I/usr/local/apache/include -DHAVE_LIBMIDGARD=1 
-DHAVE_MIDGARD_INIT=1 -DHAVE_MIDGARD_PARSER=1 -DHAVE_MIDGARD_H=1  -c 
mgd_apache.c
In file included from mgd_apache.c:1:
mgd_apache.h:4: httpd.h: No such file or directory
mgd_apache.h:5: http_log.h: No such file or directory
apxs:Break: Command failed with rc=65536
make: *** [mgd_apache.o] Error 1

It seems to be unable to find my apache libs. So I thought I will give it 
a try and include all the possible paths where the required files can be 
found by editing the Makefile and adding in :-

LIB= -L/usr/lib/mysql -L/usr/local/lib -L/usr/lib 
-L/opt/src/apache_1.3.12/src/lib -I/opt/src/apache_1.3.12/src/include 
-I/opt/src/apache_1.3.12/src/os/unix -I/opt/src/openssl-0.9.5a/include 
-lglib -lmidgard

And when I tried compiling again, it no longer complains of missing files 
but :-

server:mod_midgard-1.4beta5a-1# make
apxs -c -DHAVE_LIBMIDGARD=1 -DHAVE_MIDGARD_INIT=1 -DHAVE_MIDGARD_PARSER=1 
-DHAVE_MIDGARD_H=1    -L/usr/lib/mysql -L/usr/local/lib -L/usr/lib 
-L/opt/src/apache_1.3.12/src/lib -I/opt/src/apache_1.3.12/src/include 
-I/opt/src/apache_1.3.12/src/os/unix -I/opt/src/openssl-0.9.5a/include 
-lglib -lmidgard mgd_apache.c
gcc -DLINUX=2 -DTARGET="httpsd" -DUSE_HSREGEX -DUSE_EXPAT 
-I../lib/expat-lite -DNO_DL_NEEDED -DAPACHE_SSL -O6 -mpentiumpro 
-fno-strength-reduce  -I/usr/local/apache/include 
-I/opt/src/apache_1.3.12/src/include -I/opt/src/apache_1.3.12/src/os/unix 
-I/opt/src/openssl-0.9.5a/include -DHAVE_LIBMIDGARD=1 
-DHAVE_MIDGARD_INIT=1 -DHAVE_MIDGARD_PARSER=1 -DHAVE_MIDGARD_H=1  -c 
mgd_apache.c
  -o mgd_apache.so mgd_apache.o -L/usr/lib/mysql -L/usr/local/lib 
-L/usr/lib -L/opt/src/apache_1.3.12/src/lib -lglib -lmidgard 
apxs:Break: Command failed with rc=16711680
make: *** [mgd_apache.o] Error 1

Do you have any idea how to over come it?
 
> > Do you have any idea how I can compile mod_midgard statically?
> 
> Just as you would with any module. There's a piece in the manual
> about
> installing mod_midgard statically. But if you're going with the
> 1.4
> series you're probably better off with the DSOs (easier upgrade
> path).

I see... btw, can you tell me the URL where I can find the info about 
installing mod_midgard statically? I was looking at the installation 
guide and it just mentioned slightly that it can be compiled statically 
and not other instructions.

The rest of my modules in Apache are statically complied in so I thought 
I will give the static compliation a try.

Thanks!


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to