[Samba] 3.0.11 - configure can't see ldap.h

Gerald (Jerry) Carter jerry at samba.org
Mon Feb 7 21:12:00 GMT 2005


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

Mike wrote:
|> should be
|>
|> CPPFLAGS="-I/usr/src/openldap-2.2.23/include"
|
| Bah, I missed that.  Ok, that is corrected, but now it
| is back to the  original problem of 'configure' not
| being able to see the ldap.h file. Here is the entire script:
|
| #!/bin/sh
|
| ##
| ## compiler and flags
| ##
| CC="gcc"
| CFLAGS=""
| CPPFLAGS="-I/usr/src/openldap-2.2.23/"
| LDFLAGS="-L/usr/src/openldap-2.2.23/libraries"
|
| ##
| ## required library paths
| ##
| DIRPATH="/usr/local/openldap"
| for dir in $DIRPATH ; do
|     CPPFLAGS="$CPPFLAGS -I$dir/include"
|     CFLAGS="$CFLAGS -Wl,-rpath,$dir/libraries"
|     LDFLAGS="$LDFLAGS -L$dir/libraries"
| done

Mike.  Did you actually run make install in the
openldap/ directory?

Look at your script:

	CPPFLAGS="-I/usr/src/openldap-2.2.23/"

why would *.h files be there ?

And then you tell the build script to look in
/usr/local/openldap/.

I'm confused at your setup here.

Make sure you run make install in the openldap source tree.  That will
install the headers and libs in /usr/local/{include,lib}
Your compiler will normally pick that up by default but if
not then set DIRPATH="/usr/local" in the script I sent you.




cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCB9mgIR7qMdg1EfYRAuEHAJ0bbfzTCK3u9h8us8cBj+fr4/o1+QCg1cfP
L35CigxakjfdVyvGr/NPUzI=
=Ob3q
-----END PGP SIGNATURE-----


More information about the samba mailing list