[Samba] Static/shared linking woes

Bob Crandell bob at assuredcomp.com
Sat Sep 27 00:24:41 GMT 2003


Hi,

This is the ./configure I use to match up the directories to the Slackware way:
./configure --prefix=/usr/bin --exec-prefix=/usr --mandir=/usr/man \
--with-privatedir=/etc/samba/private --with-lockdir=/var/lock/samba \
--with-logfilebase=/var/log --with-swatdir=/etc/samba/swat \
--with-configdir=/etc/samba --enable-cups --with-dce-dfs --with-automount \
--with-smbmount --with-syslog --with-libsmbclient --with-acl-support

I hope this helps.

MaXxX (maxxx at anime-h.com) wrote:
>
>Greetings.
>
>A straight-out-of-the-cd Slackware 9.
>A straight-out-of-the-tar Samba 3.0.0.
>
># cd source
># ./configure --with-automount --with-smbmount
>(...configure ran...)
># make
>(...make ran...)
># du
>... What?? The bin/ directory amounted to over 400 MB!
>smbd over 24 MB, when the 2.3.x one I have is 1.7 MB?
>
>I presumed it erroneously linked all the libraries as static. So I did:
>
># ./configure --with-smbmount --with-automount --enable-shared
--with-shared-modules=pdb_smbpasswd,pdb_tdbsam,pdb_guest,(.....all modules that I
could name...)
>(...)
># make
>(....)
>Linking bin/smbd
>smbd/uid.o(.text+0xf9): In function `check_user_ok':
>/root/instalki/samba-3.0.0/source/smbd/uid.c:76: undefined reference to
`share_access_check'
>smbd/process.o(.text+0x1364): In function `timeout_processing':
>/root/instalki/samba-3.0.0/source/smbd/process.c:1223: undefined reference to
`update_monitored_printq_cache'
>smbd/service.o(.text+0xe69): In function `make_connection_snum':
>/root/instalki/samba-3.0.0/source/smbd/service.c:563: undefined reference to
`share_access_check'
>smbd/service.o(.text+0xe83):/root/instalki/samba-3.0.0/source/smbd/service.c:566:
undefined reference to `share_access_check'
>rpc_server/srv_pipe.o(.text+0x39ac): In function `get_pipe_fns':
>/root/instalki/samba-3.0.0/source/rpc_server/srv_pipe.c:1567: undefined reference
to `lsa_get_pipe_fns'
>rpc_server/srv_pipe.o(.text+0x39d4):/root/instalki/samba-3.0.0/source/rpc_server/srv_pipe.c:1570:
undefined reference to `lsa_ds_get_pipe_fns'
>(...and another screenful of other errors followed...)
>
>
>How should I compile/link it, then, to avoid getting either 20-meg
>binaries, or linking errors??
>
>--
> |\  /|      \~~~/     \~~~/   WWW: http://none :(
> | \/ |  /\   > <  \~/  > <    E-M: maxxx[at]rpg.pl
> |____| /__\ /___\ /_\ /___\   ICQ: 3146019
>"After you vomit, you rinse your mouse and if you can eat, eat."
>(Japanese tips)
>
>
>

--
Bob Crandell
Assured Computing
When you need to be sure.
bob at assuredcomp.com
www.assuredcomp.com
Voice - 541-689-9159
FAX - 541-463-1627
Eugene, Oregon





More information about the samba mailing list