error compiling TNG from today (fails in trans2.c)

Jens Skripczynski jens.skripczynski at igd.fhg.de
Fri May 12 19:28:37 GMT 2000



G E N E R A L
* * * * * * * *
-------------
OS          : 2.2.14 #1 SMP Fri Apr 7 16:46:08 CEST 2000 i686
-------------
Compiler    : gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
-------------
CVS-Branch  : SAMBA-TNG
-------------
Version/Date: today
-------------
Error Type  : reproduceable
-------------
Short Desc. : smbd/trans2.c fails to compile (missing funcion ?)
-------------
Trigger     : configure :
-------------
INSTALLDIR=/sw/i386_linux-2.0_glibc2/samba-TNG-`date +%Y.%m.%d` \
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 \
&& { if [! -d $INSTALLDIR ];  then \
   { mkdir $INSTALLDIR } fi } \
&& make

make error:
...
Compiling smbd/trans2.c
Linking bin/smbd
smbd/trans2.o: In function `call_trans2getdfsreferral':
smbd/trans2.o(.text+0x4e8a): undefined reference to `unistr_to_dos'
collect2: ld returned 1 exit status
make: *** [bin/smbd] Error 1
---------------------


---------------
Solution      :   Partially i think call_... is looking for a function
---------------   called unistr_to_dos which no longer exists :
       >rgrep -x c unistr_to_dos *
       smbd/trans2.c:      unistr_to_dos(pathname, &params[2]);

       >rgrep -x h unistr_to_dos *
       include/proto.h:void unistr_to_dos(char* dst,char* src)        ;

                  So only proto.h knows about it.

Ciao

Jens Skripczynski
-- 
E-Mail: skripi at igd.fhg.de

Computers are like airconditioners: They stop working 
properly if you open windows.
Win95:        A 32-bit patch for a 16-bit GUI shell running on top of an
              8-bit operating system written for a 4-bit processor by a
              2-bit company who cannot stand 1 bit of competition.


More information about the samba-ntdom mailing list