Samba4 Pre-Linking on STRATUS boxes

Andrew Bartlett abartlet at samba.org
Thu Sep 1 00:13:20 GMT 2005


On Wed, 2005-08-31 at 12:21 -0400, Green, Paul wrote:
> Stefan (metze) Metzmacher [mailto:metze at samba.org] wrote:
> > Hi Paul,
> > 
> > I have noticed that ld doesn't support the '-r' option on
> > your OS, is that fixable?
> > 
> > Samba4 replies on that now, and it seems to be supported by 
> > all other platforms.
> > 
> > Also we now need UNIX DOMAIN sockets, for our internal messaging
> > 
> > Any idea how to fix the samba4 build on VOS?
> 
> Sadly, VOS does not support dynamic linking or shared libraries.  We
> just have static linking.  As you can imagine, this is not an easy thing
> to fix.  It is on our "to do" list, but it isn't going to happen any
> time soon.  I saw Jelmer's post; I hope there is an easy way to continue
> using static linking.  If not, I'll have VOS stop trying to build
> samba4.

The linking we are trying to do isn't for shared libs:  We do the
pre-linking to shorten the command lines on linking things like smbd and
smbtorture, by only having one .o per subsystem.

If you support arbitrary length command lines, then we can still link
things at the final stage, per jelmer's note.  (I hope we can have a
configure option for it too, as the old style was easier for tracing
certain build issues).

> If not, I'll have VOS stop trying to build
> samba4.

I hope we can avoid that, as we are trying to prove Samba4 as
low-os-dependency.  Stratus is a good example of that.

> At the moment, I have enough of Unix Domain sockets implemented in the
> build_farm that I can build software that references them, but I can't
> actually pass messages.  This feature is definitely on our to-do list,
> and if necessary, I can whip up a temporary workaround, because we do
> have the underlying OS support for most of this.  (Well, the current
> code can't pass file descriptors; that's the biggest unimplemented piece
> remaining. If you can, avoid passing file descriptors, which is a stupid
> feature anyway, IMHO).  So I would say, don't worry about this issue,
> we'll take care of it for you.

We specifically avoid passing fds, as this isn't known to be
particularly portable.

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Samba Developer, SuSE Labs, Novell Inc.        http://suse.de
Authentication Developer, Samba Team           http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20050901/e3af3303/attachment.bin


More information about the samba-technical mailing list