On 10/3/07, Dan Shearer <[EMAIL PROTECTED]> wrote:
>
> On Wed, Oct 03, 2007 at 03:38:57PM +0200, Andrew Gaylard wrote:
>
> > "I sent a patch to Julien yesterday, but it isn't in SVN yet."
>
> Send it to me and I'll push it, I have a couple of other updates to the
> doc anyway.


Great -- thanks.

This patch fixes a few small problems with the build documentation:
- remove trailing whitespace
- correct navigation of directories in the build tree
- configure ld.so correctly, using /etc/ld.so.conf
- separate steps for normal users vs root

Andrew

PS: The list seems to default to reply-to-sender.
Can we make it reply-to-list instead? (Quite a lot of my emails
should have gone to the list but went to Julien instead by mistake.)

Index: doc/howto.txt
===================================================================
--- doc/howto.txt       (revision 271)
+++ doc/howto.txt       (working copy)
@@ -42,7 +42,7 @@
      [0x5a] Provision
      [0x5b] Extending users Samba AD schema
      [0x5c] Setting smb.conf
-     [0x5d] Running the Address Book Provider (EMSABP)
+     [0x5d] Running the Address Book Provider (EMSABP)
 [0x6] SWIG BINDINGS
      [0x6a] Installation
      [0x6b] Sample applications
@@ -91,7 +91,7 @@


 ####################
-[0x2] INSTALLATION
+[0x2] INSTALLATION
 ####################


@@ -114,14 +114,16 @@

 Otherwise, use rsync to fetch a tree with many files pre-generated, like
this:

-$ mkdir samba4 ; cd samba4
 $ rsync -avz samba.org::ftp/unpacked/samba4 .
+$ cd samba4/source
 $ ./configure --prefix=/usr/local/samba
-$ make
+$ make
 # make installlib && make installheader
+# echo /usr/local/samba/lib >> /etc/ld.co.conf
+# ldconfig

 Since the libraries will be installed in /usr/local/samba/lib, ldconfig
needs
-to know about it. On Linux, make sure this directory is listed in
/etc/ld.so.conf
+to know about it. On Linux, make sure this directory is listed in
/etc/ld.so.conf
 and run 'ldconfig -v'. On FreeBSD, add this directory to the line
'ldconfig_paths'
 in /etc/rc.conf and then run 'ldconfig -rv'.

@@ -133,16 +135,16 @@

 If you did a standard Samba install to the normal Samba4 location you
 should not need to change PKG_CONFIG_PATH, however it does need to be
-set. Use
+set. Use

 $ echo $PKG_CONFIG_PATH

 to see if it has a current value. So if PKG_CONFIG_PATH points to a valid
place
-and OpenChange configure still complains, you may have a problem with the
Samba
+and OpenChange configure still complains, you may have a problem with the
Samba
 installation.)

 If you have installed Samba4 somewhere else, you need to change Samba
references
-in ld.so.conf, and in the PATH and PKG_CONFIG_PATH environment variables.
+in ld.so.conf, and in the PATH and PKG_CONFIG_PATH environment variables.
 For example, if you installed to /opt/otherplace/samba
 run:

@@ -152,10 +154,12 @@
 pkg-config >= 0.20 is required.

 [*] Install pidl from Samba4 source directory:
-# cd pidl && perl Makefile.PL && make && make install
+$ cd pidl && perl Makefile.PL && make
+# make install
+$ cd ../../..

 CAUTION: if you update Samba (using svn up, no matter whether you used
rsync or svn
-to fetch the original tree) then you may have compilation errors in
OpenChange if you
+to fetch the original tree) then you may have compilation errors in
OpenChange if you
 are still running an out-of-date pidl. To be safe, you should always
rebuild and reinstall
 Samba and pidl together.

@@ -170,7 +174,7 @@
 * flex
 * libpopt

-Samba4 can *use* some of the above, and will tell you in the 'configure'
summary
+Samba4 can *use* some of the above, and will tell you in the 'configure'
summary
 that some of them have not been found, however it does not *require* them.


@@ -195,7 +199,7 @@

 Now, run configure:

-$ ./configure --prefix=path_where_samba_is_installed
+$ ./configure --prefix=path_where_samba_is_installed
--mandir=path_where_samba_is_installed/share/man

 The default is not /usr/local/samba as you might expect, but /usr/local .
So you normally
 do need to specify --prefix.
@@ -206,7 +210,9 @@

 You should now be able to build and install openchange MAPI library:

-$ make && make install
+$ make
+# make install
+# ldconfig

 You can test like this:

@@ -283,7 +289,7 @@
 Man pages are supplied with the MAPI library so developers can have an
 overview on how to use each function properly. If you have troubles
 accessing man pages, be sure your MANPATH environment variable is set
-properly and point on openchange prefix installation path.
+properly and point on openchange prefix installation path.

 $ export MANPATH=$MANPATH:/usr/local/samba/share/man

@@ -363,7 +369,7 @@
 =======================

 In order to run OpenChange, you need so set up additional parameters
-in the [global] section of smb.conf. A sample smb.conf for OpenChange can
be
+in the [global] section of smb.conf. A sample smb.conf for OpenChange can
be
 found in doc/smb.conf.example.

 You need to activate the exchange dcerpc endpoints servers. The
@@ -465,9 +471,9 @@
 Note: The compilation process requires quite some time due to the code
 generation for mapitags and mapicodes constant. If you intend to
 develop on libmapi bindings, you should comment the following
-directives in mapi.i:
+directives in mapi.i:

-          %include "swig_mapitags.h"
+          %include "swig_mapitags.h"
           %include "swig_mapicodes.h"
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to