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: 14
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
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

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

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
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
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
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!

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

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.

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.

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}}

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.

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?

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.

unfold Re: Installing New Samba by AYahooAYahoo, 1210752470|%e %b %Y, %H:%M %Z|agohover
new post
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License