smbrun question and comment

Terry L. Ridder terrylr at
Sun Dec 19 08:30:12 GMT 1999


please forgive the lack of capital letters and any typographical
errors. i am recoverying from left shoulder surgery and typing

i have downloaded samba-2.0.6.tar.gz and compiled it on:

i586 running linux-2.0.36 with gcc-2.8.1/libc5.4.46

my configure command is:

<begin quote>
./configure  --prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/sbin \
--sbindir=/usr/sbin \
--libexecdir=/usr/libexec \
--datadir=/usr/local/share \
--sysconfdir=/etc \
--localstatedir=/var \
--libdir=/usr/lib \
--includedir=/usr/include \
--oldincludedir=/usr/include \
--infodir=/usr/info \
<end   quote>

i use the above configuration so that i am able to put
the samba programs where i want them to go.

upon looking at the Makefile there appears to be no way
of building smbrun.

when i attempt to run make i receive the following errors:

<begin errors>
Linking bin/smbrun
lib/util_sec.o: In function `assert_uid':
lib/util_sec.o(.text+0x2f): undefined reference to `DEBUGLEVEL'
lib/util_sec.o(.text+0x45): undefined reference to `dbghdr'
lib/util_sec.o(.text+0x78): undefined reference to `dbgtext'
lib/util_sec.o(.text+0x85): undefined reference to `smb_panic'
lib/util_sec.o: In function `assert_gid':
lib/util_sec.o(.text+0xcf): undefined reference to `DEBUGLEVEL'
lib/util_sec.o(.text+0xe5): undefined reference to `dbghdr'
lib/util_sec.o(.text+0x12e): undefined reference to `dbgtext'
lib/util_sec.o(.text+0x13b): undefined reference to `smb_panic'
make: *** [bin/smbrun] Error 1
<end   errors>

in order to get smbrun to compile SMBRUN_OBJ should be:

SMBRUN_OBJ = utils/smbrun.o lib/util_sec.o lib/debug.c param/loadparm.o lib/util_str.o \
             lib/kanji.o lib/charset.o lib/charcnv.o lib/slprintf.o lib/username.o \
             lib/system.o lib/util.o lib/util_sock.o lib/genrand.o lib/md4.o \
             lib/time.o lib/doscalls.o lib/util_file.o lib/signal.o param/params.c

below is what it is:

SMBRUN_OBJ = utils/smbrun.o lib/util_sec.o

i would think that you would want to either:

1. build a new smbrun and move the older one to smbrun.old


2. move the older one to smbrun.old even if a newer smbrun is not

leaving the older smbrun untouched and not building a new smbrun
is confusing especially since a new smbrun manual page is installed.

out of the tar.gz file smbrun will not be built and the older smbrun
is not moved to smbrun.old. this would seem to be incorrect behaviour.

Terry L. Ridder
Blue Danube Software (Blaue Donau Software)
"We do not write software, we compose it."

Lux venit lux venit 
Lux venit sursum corda 
Lux venit lux venit arise 
Shine for your light has come 

Alleluia Alleluia 
Alleluia Alleluia 
 ==Lux Venit==

More information about the samba-technical mailing list