Installing New Samba
Forum » Forum / Network Access » Installing New Samba
Started by: ArTiArTi
On: 1189865077|%e %b %Y, %H:%M %Z|agohover
Number of posts: 18
rss icon RSS: New posts
Installing New Samba ( if you are a Newb like me and brick your old bin files )
ArTiArTi 1189865077|%e %b %Y, %H:%M %Z|agohover

I'm totaly newbish to linux and i was trying to modifying some privilege on the user.
so i figure that was samba and trying to use pdbedit etc..
unfortunatly that's dont have seems to work so i have decide to install a new samba

after downloading the package, tar, configure, make, make install i was happy to test the new feature of the last samba

but i have a problems:

/usr/local/samba/sbin/smbd: can't resolve symbol 'stdout'

i have no idea how to fix that or how to go back to the previous version :(

now i can't run samba or use swat anymore
someone have know how to fix this issue ?
thanks for your help

also for ppl like me we should make a forum for Newbies or to helping ppl

Last edited on 1189903508|%e %b %Y, %H:%M %Z|agohover By ArTi + Show more
Reply  |  Options
Re: Installing New Samba
ArTiArTi 1189903427|%e %b %Y, %H:%M %Z|agohover

ok i know i'm an idiot i should have test : make revert ( to have my files back )
but the problems i have try make install a few times so i have no files to revert

someone can please make a package of all his samba directory ? ( at least the /bin and /sbin please )

or explain to me what stdout is .. i have look on the web but i dont understand why samba don't work anymore

Reply  |  Options
Unfold Re: Installing New Samba by ArTiArTi, 1189903427|%e %b %Y, %H:%M %Z|agohover
Re: Installing New Samba
tcblacktcblack 1190321590|%e %b %Y, %H:%M %Z|agohover

bin:
eventlogadm nmblookup profiles smbclient smbget smbstatus tdbbackup testparm
findsmb ntlm_auth rpcclient smbcontrol smbpasswd smbtar tdbdump wbinfo
net pdbedit smbcacls smbcquotas smbspool smbtree tdbtool

sbin:
mount.cifs nmbd smbd swat umount.cifs winbindd

Reply  |  Options
Unfold Re: Installing New Samba by tcblacktcblack, 1190321590|%e %b %Y, %H:%M %Z|agohover
Re: Installing New Samba ( if you are a Newb like me and brick your old bin files )
jzipjzip 1196455764|%e %b %Y, %H:%M %Z|agohover

I've also tried to compile a new version of Samba server (3.0.23c and 3.0.26a), but the journey stopped at the same problem as yours:

[root @ 10.0.0.10 samba]# ./startsmb
/usr/local/samba/sbin/smbd: can't resolve symbol 'stdout'
/usr/local/samba/sbin/winbindd: can't resolve symbol 'stdout'
/usr/local/samba/sbin/nmbd: can't resolve symbol 'stdout'

Have you made any progress with this problem ?

Last edited on 1196455914|%e %b %Y, %H:%M %Z|agohover By jzip + Show more
Reply  |  Options
Re: Installing New Samba ( if you are a Newb like me and brick your old bin files )
jstastnyjstastny 1196653811|%e %b %Y, %H:%M %Z|agohover

Hi,

I've just run into the same situation but have already found a way to get out of it.

The binaries you are searching for (and that helped me) can be found in the archive provided at http://mybookworld.wikidot.com/backup-images-of-mybook

Hope this helps.

Last edited on 1197849854|%e %b %Y, %H:%M %Z|agohover By jstastny + Show more
Reply  |  Options
Re: Installing New Samba ( if you are a Newb like me and brick your old bin files )
jzipjzip 1196716334|%e %b %Y, %H:%M %Z|agohover

Thanks :-)

That helped a lot. By using the backup image I was running Samba 3 minuts later…. Yeah! Just copied the /usr/local/samba files to my bricked samba installation and started the server with /etc/init.d/samba start

Thaks againg

Last edited on 1196716412|%e %b %Y, %H:%M %Z|agohover By jzip + Show more
Reply  |  Options
Re: Installing New Samba
mmokrejsmmokrejs 1196683043|%e %b %Y, %H:%M %Z|agohover

I have managed to get samba compiled and running on my system. It took me a while to get it up. Binaries are available as well, just download the files and run 'make install'. More details at http://ribosome.natur.cuni.cz/~mmokrejs/MyBookWorldII/ . Cheers!

Reply  |  Options
Unfold Re: Installing New Samba by mmokrejsmmokrejs, 1196683043|%e %b %Y, %H:%M %Z|agohover
Re: Installing New Samba
3djc3djc 1197100512|%e %b %Y, %H:%M %Z|agohover

mmokrejs,

I have tried to follow your steps :
- downloaded your package, unzip, untared
- went to source directory, launched make install, that went fine
- when I wanted to start samba again, it complained about std out ??????
- i went back to the former situation with make revert, which did fortunately work

Any guess on why I'm getting the stdout issue ?

Thanks, 3djc

Reply  |  Options
Unfold Re: Installing New Samba by 3djc3djc, 1197100512|%e %b %Y, %H:%M %Z|agohover
Re: Installing New Samba
unravelingthreadunravelingthread 1197077188|%e %b %Y, %H:%M %Z|agohover

I'm using uclibc. SAMBA has a -pie or -fPIE option in the makefile linker flags. Take out every reference to that.

Reply  |  Options
Unfold Re: Installing New Samba by unravelingthreadunravelingthread, 1197077188|%e %b %Y, %H:%M %Z|agohover
Re: Installing New Samba
ChodberryChodberry 1202432981|%e %b %Y, %H:%M %Z|agohover

Hi,

So, after downloading and uncompressing your binary "samba-3.0.27a-armv5tejl.tar.bz2" you suggest removing all references to "-pie" from "samba-3.0.27a/source/Makefile" (I couldn't find any reference to "-fPIE"), then run "make install"?

In the Makefile I found 2 references to "-pie":

LDFLAGS=-pie

…and…

replacetort: $(REPLACETORT_OBJ) bin/.dummy
        @echo Linking $@
        @$(CC) $(FLAGS) -pie -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
                $(DYNEXP) $(LIBS)

Can you clarify what I should do?

Many thanks,

Chod.

Reply  |  Options
Unfold Re: Installing New Samba by ChodberryChodberry, 1202432981|%e %b %Y, %H:%M %Z|agohover
Re: Installing New Samba
mmokrejsmmokrejs 1208255583|%e %b %Y, %H:%M %Z|agohover

Sorry, I have placed an updated STATIC binary archive under http://ribosome.natur.cuni.cz/~mmokrejs/MyBookWorldII/binaries/samba-3.0.28a-armv5tejl.tar.bz2 .

{{cd ../samba-3.0.28a
CFLAGS="$CFLAGS -O2 -g0 -static" ./configure —with-smbmount —with-cifsmount —disable-cups —disable-iprint —without-pam —without-ads —without-ldap —without-dce-dfs —enable-socket-wrapper
echo "Patching sources/include/config.h because this platform does not provide functional stdio.h. Otherwise you would get unresolved 'stdout' symbol while executing the resulting samba binaries. e.g. \"/usr/local/bin/smbclient: can't resolve symbol 'stdout'\"."
patch -p1 < ../samba-3.0.27a_sources_include_config_h.patch
make

Using FLAGS = -O2 -g0 -static -D_SAMBA_BUILD_=3 -I/scratch/samba-3.0.28a/source/popt -I/scratch/samba-3.0.28a/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 -I/scratch/samba-3.0.28a/source/lib -D_SAMBA_BUILD_=3
PICFLAG =
LIBS = -lcrypt -lresolv -ldl
LDFLAGS =
DYNEXP = -Wl,—export-dynamic
LDSHFLAGS = shared-libraries-disabled
SHLIBEXT = shared_libraries_disabled
SONAMEFLAG = shared-libraries-disabled

make test
/etc/init.d/samba.sh stop
cp -r /usr/local/samba /usr/local/samba-3.0.23c

  1. installs /into /usr/local/samba , the /etc/init.d/samba.sh fortunately takes care of the different paths to config files

make install
cd /usr/local/samba/lib
ln -s ../../../../var/oxsemi/smb.conf .
/etc/init.d/samba.sh start}}

Reply  |  Options
Unfold Re: Installing New Samba by mmokrejsmmokrejs, 1208255583|%e %b %Y, %H:%M %Z|agohover
Re: Installing New Samba
PineapplePineapple 1208585237|%e %b %Y, %H:%M %Z|agohover

Take the easy way, use optware to install samba.

Reply  |  Options
Unfold Re: Installing New Samba by PineapplePineapple, 1208585237|%e %b %Y, %H:%M %Z|agohover
Re: Installing New Samba
mybookermybooker 1210359657|%e %b %Y, %H:%M %Z|agohover

Mine came with 2.00.18 firmware and i have installed the new samba with optware, how can i make the new version auto start instead of the old one?

Reply  |  Options
Unfold Re: Installing New Samba by mybookermybooker, 1210359657|%e %b %Y, %H:%M %Z|agohover
Re: Installing New Samba
AYahooAYahoo 1210752470|%e %b %Y, %H:%M %Z|agohover

I'm having a similar problem with - "smbd: can't resolve symbol 'stderr'"
already changed the "HAVE_STDIO_H 1" in the config but still the same error.

Could anyone please try and help me to resolve it?

Thanks,
Asaf.

Reply  |  Options
Unfold Re: Installing New Samba by AYahooAYahoo, 1210752470|%e %b %Y, %H:%M %Z|agohover
Re: Installing New Samba
sidee008sidee008 1215616201|%e %b %Y, %H:%M %Z|agohover

Hi,

did anyone of you try to install new Samba 3.2? If yes, can anyone create a guide or give me the link to place where I find how to install the Samba 3.2? The reason why I'm asking is that in the description they say that uses less system resources… I guess that it can be usefull for MBWE…

Thanks,

Reply  |  Options
Unfold Re: Installing New Samba by sidee008sidee008, 1215616201|%e %b %Y, %H:%M %Z|agohover
Re: Installing New Samba
VidKoVidKo 1223587450|%e %b %Y, %H:%M %Z|agohover

I tried it installing with optware, but didn't work. Unfortunatelly I don't have enough linux experience. If somene could post a guide, I would appreciate it.

Last edited on 1223587489|%e %b %Y, %H:%M %Z|agohover By VidKo + Show more
Reply  |  Options
Unfold Re: Installing New Samba by VidKoVidKo, 1223587450|%e %b %Y, %H:%M %Z|agohover
Re: Installing New Samba: a bit start script
ishbellnasishbellnas 1224214323|%e %b %Y, %H:%M %Z|agohover

here is a bit start script you may be interesting, modified /etc/init.d/samba.sh

[MyBookWorld 14:27:22|log] cat /etc/init.d/samba.sh
#!/bin/sh
#

  1. Start Samba

#
LOGS=/var/log
NMBD_LOG=$LOGS/log.nmbd
SMBD_LOG=$LOGS/log.smbd

start() {
echo "Starting Samba"
for ((i=3; i>0; i—))
do
((j=$i-1))
if [ -f ${NMBD_LOG}.$j ];
then
mv ${NMBD_LOG}.$j ${NMBD_LOG}.$i
fi
if [ -f ${SMBD_LOG}.$j ];
then
mv ${SMBD_LOG}.$j ${SMBD_LOG}.$i
fi
done
if [ -f ${NMBD_LOG} ];
then
mv ${NMBD_LOG} ${NMBD_LOG}.0
fi
if [ -f ${SMBD_LOG} ];
then
mv ${SMBD_LOG} ${SMBD_LOG}.0
fi

/opt/sbin/nmbd -D -s/etc/smb.conf -l${LOGS} -d2
/opt/sbin/smbd -D -s/etc/smb.conf -l${LOGS} -d2

#/usr/local/samba/sbin/nmbd -D -s/etc/smb.conf -l${LOGS} -d1
}

stop() {
echo "Stopping Samba nmbd"
killall nmbd > /dev/null 2>&1
echo "Stopping Samba smbd"
killall smbd > /dev/null 2>&1
}
restart() {
stop
start
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
cleanup)
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac

exit $?

Reply  |  Options
Unfold Re: Installing New Samba: a bit start script by ishbellnasishbellnas, 1224214323|%e %b %Y, %H:%M %Z|agohover
Re: Installing New Samba
netguynetguy 1264149816|%e %b %Y, %H:%M %Z|agohover

Hi All,
I am New to this, Just tried to upgrade samba to the latest 3.4.5 yesterday, took me 6 hours to compile from source directly on MyBook, got the source from http://us1.samba.org/samba/ftp/samba-3.4.5.tar.gz
run ./configure, make, then make installbin
walla got the samba 3.4.5 working on MyBook World II blue ring.
there is some improvement in listing file on the share, but transfer cant feel any improvement at all. but I didnot have any baseline to compare anyway, but the folder and file browsing I can feel drastic improvement.
I am using fw 2.0.19, and recover the gcc for compiling.

Reply  |  Options
Unfold Re: Installing New Samba by netguynetguy, 1264149816|%e %b %Y, %H:%M %Z|agohover
New Post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License