[Samba] make: *** [dynconfig.o] Error - [SUMMARY]
alexeim at orcsoftware.com
Fri Jan 28 08:56:13 GMT 2005
Thanks to those who looked at the original Q. You can find that below.
This post is for those who will face the same issue in the future and to
make "goggling" easier. :-)
There was the following sequence of events on the affected Solaris 9
server, which led to the issue.
July 2004 - OpenLDAP was upgraded to 2.2.8
Aug 2004 - SAMBA was upgraded to 3.0.7
Sept 2004 - OpenLDAP was upgraded to 2.2.15
After that both SAMBA 3.0.7 and SAMBA 3.0.10 couldn't be built...
After a good advice I checked the location of LDAP_CONST in OpenLDAP
and found that it was moved from ldap.h to ldap_schema.h.
in include/proto.h fixed that issue but a new one popped up,
this time with passdb/pdb_ldap.c (pwd samba-3.0.10/source)
passdb/pdb_ldap.c: In function `ldapsam_modify_entry':
passdb/pdb_ldap.c:1554: error: `ber_tag_t' undeclared (first use in this
passdb/pdb_ldap.c:1554: error: (Each undeclared identifier is reported
passdb/pdb_ldap.c:1554: error: for each function it appears in.)
passdb/pdb_ldap.c:1554: error: parse error before numeric constant
passdb/pdb_ldap.c:1555: error: parse error before numeric constant
passdb/pdb_ldap.c: In function `ldapsam_alias_memberships':
passdb/pdb_ldap.c:2758: warning: passing arg 5 of `smbldap_search' from
incompatible pointer type
make: *** [passdb/pdb_ldap.o] Error 1
At that point I decided that it must be something wrong with OpenLDAP
and upgraded the one to the "latest and greatest" stable 2.2.23.
This made the trick. All headers etc were nicely understood by SAMBA.
No changes in environment variables like FLAGS, CPPFLAGS has been done.
I didn't use any specific place for keeping application-specific headers
and libraries - all lives in /usr and /usr/local by default.
Alexei Monastyrnyi wrote:
> Hi List!
> I've got a problem building samba 3.0.10 on Solaria 9 box.
> Configuration is successful with
> ./configure --with-pam --with-syslog --with-ldapsam --with-automount
> But make gives the following output.
> alien> make
> Using FLAGS = -O -Iinclude
> -I/usr/local/src/samba-3.0.10/source/smbwrapper -I.
> -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64
> -I/usr/local/src/samba-3.0.10/source LIBS = -lsendfile -lsec
> -lgen -lresolv -lsocket -lnsl -ldl
> LDSHFLAGS = -G -lthread
> LDFLAGS = -lthread
> Generating smbd/build_options.c
> Building include/proto.h
> creating /usr/local/src/samba-3.0.10/source/include/proto.h
> Building include/wrepld_proto.h
> creating /usr/local/src/samba-3.0.10/source/include/wrepld_proto.h
> Building include/build_env.h
> creating /usr/local/src/samba-3.0.10/source/nsswitch/winbindd_proto.h
> creating /usr/local/src/samba-3.0.10/source/web/swat_proto.h
> creating /usr/local/src/samba-3.0.10/source/client/client_proto.h
> creating /usr/local/src/samba-3.0.10/source/utils/net_proto.h
> creating /usr/local/src/samba-3.0.10/source/utils/ntlm_auth_proto.h
> Compiling dynconfig.c
> In file included from include/includes.h:926,
> from dynconfig.c:21:
> include/proto.h:587: error: parse error before "LDAP_CONST"
> make: *** [dynconfig.o] Error
> I used to build 3.0.7 no the same host (running OpenLDAP 2.2.18 as
> well) without any problems, but now 3.0.7 gives the same error output...
> Something must have been changed in my environment but I get blank of
> Any hints are highly appreciated.
> Sorry if it is off-topic...
More information about the samba