Henry, Brad ERM
2003-Mar-01 00:28 UTC
[Samba] compilation problems with 2.2.7a on OpenBSD 3.2 using --with-ldap sam
Hello, last weekend I downloaded installed the openldap port for openbsd 3.2, which installed ldap.h and lber.h (among others) into /usr/local/include as well as liblber.a and libldap.a into /usr/local/lib. Following that, I downloaded samba-latest, ran ./configure --with-ldapsam --libdir=/usr/local/lib --includedir=/usr/local/include which came back with no problems to speak of. So I ran make, and it came up with Compiling passdb/secrets.c passdb/secrets.c: In function `secrets_named_mutex': passdb/secrets.c:287: warning: passing arg 2 of `tdb_lock_bystring' discards qualifiers from pointer target type Compiling passdb/pass_check.c Compiling passdb/smbpassfile.c Compiling passdb/machine_sid.c Compiling passdb/pdb_smbpasswd.c Compiling passdb/pampass.c Compiling passdb/pdb_tdb.c Compiling passdb/pdb_ldap.c passdb/pdb_ldap.c:48: lber.h: No such file or directory passdb/pdb_ldap.c:49: ldap.h: No such file or directory *** Error code 1 So does anyone know what I should try next to be able to compile samba --with-ldapsam on openbsd 3.2? I have attached the full configure and make output if that helps anyone... Thanks, Brad
mark
2003-Mar-01 10:59 UTC
[Samba] compilation problems with 2.2.7a on OpenBSD 3.2 using --with-ldap sam
For whatever reason, the Makefiles that are generated don't tell gcc to look in /usr/local/include for header files. You don't need --libdir=/usr/local/lib and --includedir=/usr/local/include. I believe that those just tell where you want the libraries and header files installed when everything is said and done, not where to look while compiling. You just need to (assuming you're using bash): export CPPFLAGS='-I/usr/local/include -L/usr/local/lib' before you run configure. If you are using a cshell (by the c shore? bad joke, nevermind): setenv CPPFLAGS '-I/usr/local/include -L/usr/local/lib' I think. mark ps I think you can also use: CPPFLAGS='-I/usr/local/include -L/usr/local/lib' ./configure --with-ldapsam mark