You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Gregorius, Bryan" <Br...@usa.xerox.com> on 2001/11/29 20:16:53 UTC

Apache Compilation Question

Users,

I have been banging my head against the wall trying to figure out a problem
I was having while building my custom module (as a DSO). My module uses
another DSO which contains some utility functions and my logging library. I
was finally able to get it to compile this morning, but I had to hand edit
the Makefile that gets generated by Configure in the src/modules/extra
directory and add the path to my utility library to the LIBS_SHLIB line.
After many hours of digging through scripts trying to figure out why I the
path I was specifying on the command line wasn't making it to the Makefile,
I finally found the problem. Trouble is I don't know how to fix it.
In the slo.sh script around line 35 there is a line: arg="'echo $opt | cut
-c3-'"
I believe that this is supposed to strip off the beginning of the
LIBS_SHLIB="-L/my/path" line so it can then cut the option -L out and add
/my/path to the list of dirs a couple lines later. When I look at the output
from the script I noticed that the first cut is not cutting to the '=' I
only cuts EX off the beginning of the line. The result is that the second
cut does not see the -L and my directory is not added to the list.

Does anyone know how I can specify a -L/my/path option correctly so it will
be stuck into the LIBS_SHLIB line in the Makefile of the src/modules/extra
directory? My workaround is to hand edit the Makefile, but this is
unacceptable as I need to completely automate the build process.

Any help would be greatly appreciated,


Bryan Gregorius 
Xerox Corporation
Software Developer Engineer, Network Core 
Office Systems Group 
Controller Systems Design & Development 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org