-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi Meena,

> Let us know in the same alias if the *.mk files I sent worked and fixed  
> the problem you were facing in thread with subject "OWS: linking during  
> build". Or else I will find some spare time and help.

i merged the difference between your *.mk files and the one i had created (to
preserve my custom library paths, etc); unfortunately, this didn't help the
linking issue.

i was able to solve it by adding appropriate LOCAL_LIBDIRS to each Makefile.
for example, in src/server/plugins/shtml i added:

LOCAL_LIBDIRS+=../../../support/filecache/$(OBJDIR)
LOCAL_LIBDIRS+=../../../support/time/$(OBJDIR)
LOCAL_LIBDIRS+=../../../support/NsprWrap/$(OBJDIR)
LOCAL_LIBDIRS+=../../../support/support/$(OBJDIR)
LOCAL_LIBDIRS+=../../../support/threadpool/$(OBJDIR)
LOCAL_LIBDIRS+=../../../support/xp/$(OBJDIR)
LOCAL_LIBDIRS+=../../../support/libdbm/$(OBJDIR)
LOCAL_LIBDIRS+=../../../support/ares/$(OBJDIR)
LOCAL_LIBDIRS+=../../../support/libxsd2cpp/$(OBJDIR)
LOCAL_LIBDIRS+=../../libsi18n/$(OBJDIR)

i had to do this for every directory in plugins/, but it wasn't required for
any other directories.  after i did this, the missing -L flags were added to
the link line, and i was able to build and start the server without problems.

if this solution is acceptable, i suppose it can be merged back into the OWS
source.  otherwise, i can look for the reason it fails in the first place; but
the build system is fairly complicated, so i wouldn't mind some help there ;-)

i also had to make the following small source change:

diff -r f11d28822e4e src/server/httpdaemon/libdaemon.h
- --- a/src/server/httpdaemon/libdaemon.h Sun Jan 18 01:43:32 2009 -0800
+++ b/src/server/httpdaemon/libdaemon.h Mon Feb 16 14:20:40 2009 +0000
@@ -36,7 +36,7 @@
 #define strieq(s1,s2) (strcasecmp((s1),(s2))==0)
 #define strneq(s1,s2,n) (strncmp((s1),(s2),(n))==0)
 
- -#ifdef XP_UNIX
+#if defined(XP_UNIX) && !defined(HPUX)
 #define max(n1,n2) ((n1)>(n2)?(n1):(n2))
 #endif

this is because defining 'max' as a macro causes syntax errors in the C++
standard library on HP-UX.

is there already a procedure for integrating these changes back into OWS (as
well as the new *.mk files for hp-ux)?

thanks,
river.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (HP-UX)

iEYEARECAAYFAkmZepsACgkQIXd7fCuc5vIjmgCfbnBFnH0b0LMu1n//kgPSTS1E
fv8AoJ8KEXyEawO8shid8kMEIWjeiRnw
=KBDU
-----END PGP SIGNATURE-----

Reply via email to