Bug 5072 - error compiling 3.0.26a
error compiling 3.0.26a
Product: Samba 3.2
Classification: Unclassified
Component: Build environment
x64 Linux
: P3 major
: ---
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2007-11-11 12:45 UTC by Donny Jekels
Modified: 2007-11-11 14:18 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Donny Jekels 2007-11-11 12:45:30 UTC

I am having trouble compiling samba on my build box, I did not run into this error with 3.0.25 and I have not changed ldap or kerberos libs since last build.
./configure --prefix=/opt/samba/3.0.26 --enable-socket-wrapper --with-ads --with-ldap --with-pam --with-syslog --with-automount --with-dnsupdate --with-acl-support --with-cluster-support

Compiling dynconfig.c
Compiling smbd/vfs.c
Compiling passdb/pdb_interface.c
Compiling passdb/pdb_ldap.c
passdb/pdb_ldap.c: In function `ldapsam_get_new_rid':
passdb/pdb_ldap.c:4459: error: incompatible types in assignment
passdb/pdb_ldap.c: In function `pdb_init_ldapsam':
passdb/pdb_ldap.c:5654: error: incompatible types in assignment
The following command failed:
gcc -I. -I/opt/samba-3.0.26a/source  -O -D_SAMBA_BUILD_=3  -I/opt/samba-3.0.26a/source/iniparser/src -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED    -I/opt/samba-3.0.26a/source/lib -D_SAMBA_BUILD_=3 -fPIC -c passdb/pdb_ldap.c -o passdb/pdb_ldap.o
make: *** [passdb/pdb_ldap.o] Error 1
Comment 1 Volker Lendecke 2007-11-11 13:03:16 UTC
This looks odd. Do you compile a freshly unpacked source, or do you have any patches? Those two error messages indicate that smbldap_search_domain_info() does not return NTSTATUS which it does in my 3.0.26a sources. Can you look in line 232 of lib/smbldap_util.c and post the lines around that?

Comment 2 Donny Jekels 2007-11-11 14:18:31 UTC

Sorry my bad, I logged into a different dev box that does not have all the libraries I compiled. all the dev libs on this new box is from rpms which I am not familiar with.

Anyway thanks for your quick response and continued support. You guys are doing an awesome job.

# smbclient -L localhost -Udjekels
Domain=[BREAKWATER] OS=[Unix] Server=[Samba 3.0.26a]

        Sharename       Type      Comment
        ---------       ----      -------
        opt             Disk      Opt File System
        IPC$            IPC       IPC Service (Test Samba Box 3.2.26a)
Domain=[BREAKWATER] OS=[Unix] Server=[Samba 3.0.26a]

        Server               Comment
        ---------            -------
        CHILSP128            Test Samba Box 3.2.26a

        Workgroup            Master
        ---------            -------
        BREAKWATER           CHIWSP051
[root@chilsp128 ~]

Donny Jekels