TNG does not compile (libsamrpass.so undefined reference to ...)

Jens Skripczynski Skripi at hrzpub.tu-darmstadt.de
Fri May 12 21:57:19 GMT 2000


Hi,

G E N E R A L
* * * * * * * *
-------------
OS          : linux (redhat 6.2b)
-------------
Compiler    :  gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
-------------
CVS-Branch  :  SAMBA_TNG
-------------
Version/Date:  today (how can I retrive the time of the last update ?)
-------------
Error Type  : reproduceable
-------------
Short Desc. : libsamrpass.so fails to compile
-------------
Trigger     :
export INSTALLDIR=$SW_ROOT/i386_lnx2/samba-TNG-`date +%Y.%m.%d` 
echo $INSTALLDIR
CFLAGS="-O2 -m486" \
./configure \
--prefix=$INSTALLDIR \
--sysconfdir=/usr/local/etc/samba \
--localstatedir=/var/log/samba \
--libdir=/usr/local/etc/samba/lib \
--with-privatedir=/usr/local/etc/samba/private \
--with-sambaconfdir=/usr/local/etc/samba \
--with-lockdir=/var/lock/samba \
--with-sam-pwdb=passwd \
--with-gnu-ld \
--with-pam \
&& make 

LOG:
Linking bin/samrd
rpc_server/srv_pipe_ntlmssp.o: In function `api_ntlmssp_verify':
rpc_server/srv_pipe_ntlmssp.o(.text+0x9f7): undefined reference to
`map_nt_and_unix_username'
bin/.libs/libsamrpass.so: undefined reference to `del_group_entry'
...(many lines deleted)
bin/.libs/libsamrpass.so: undefined reference to `add_alias_member'
collect2: ld returned 1 exit status
make: *** [bin/samrd] Error 1

-------------
Solution    : partially ...
>rgrep -x h del_group_entry *
include/proto.h:BOOL del_group_entry(uint32 rid);
include/smb.h:  BOOL (*del_group_entry) (uint32);

>rgrep -x c del_group_entry *
groupdb/groupdb.c:BOOL del_group_entry(uint32 rid)
groupdb/groupdb.c:      return gpdb_ops->del_group_entry(rid);
samrd/srv_samr_grp_tdb.c:       if (!del_group_entry(group_rid))
samrd/srv_samr_passdb.c:        if (!del_group_entry(group_rid))


Seems that del_group_entry lives in groupdb.c.
Maybe some includes/libs/... are missing ?


Ciao

Jens Skripczynski
-- 
E-Mail: skripi at hrzpub.tu-darmstadt.de

Computers are like airconditioners: They stop working 
properly if you open windows.


More information about the samba-ntdom mailing list