Samba on AIX

Peter Samuelson peter at cadcamlab.org
Wed Mar 8 09:37:55 GMT 2000


[Elrond]
> I mostly build normal libraries and later convert them with a special
> shell-script to shared libraries. In the case of libgtk, I tell the
> new libgtk that it depends on the shared libgdk, so it will load that
> automatically too.

This is what I never have any luck with.  How do you do this?  If I try
and use -lgdk when building libgtk, it wants to import the whole libgdk
statically into libgtk at link time.  And if I don't, it complains
about unresolved symbols.

> So I wasn't yet able to link any library, that needed symbols from
> the main program. (is this called "reflexive"?)

"Late binding", I think.

> If you like, I can post (or send by personal mail, as you like) my
> shell-script and some short instructions.

Please do!  I don't know that it's really on-topic for samba-technical
but I would definitely be interested.

> I don't realy use SRC for anything as the AIX-thingies, but I think,
> it would be a nice thing, if you could also provide nice
> shell-scripts, that add the appropiate entries for SRC. (I can't
> speak for the HEAD/3.0-maintainers, but I would like it, if it would
> be easy to setup.)

First, smbd and nmbd each need a very small patch (appended) to play
well with SRC.  Then you just have to make the subsystems.  I did this:

  mkssys -s smbd -p /usr/local/sbin/smbd -G local -u 0 -R -S -n 15 -f 3
  mkssys -s nmbd -p /usr/local/sbin/nmbd -G local -u 0 -R -S -n 15 -f 3

Then, in a startup script somewhere:

  startsrc -g local

Peter

diff -urN samba-2.0.6/source/smbd/server.c.orig samba-2.0.6/source/smbd/server.c
--- samba-2.0.6/source/smbd/server.c.orig	Fri Jan 15 19:07:21 1999
+++ samba-2.0.6/source/smbd/server.c	Wed Mar  3 22:27:15 1999
@@ -699,11 +699,10 @@
 	DEBUG(3,( "loaded services\n"));
 
 	if (!is_daemon && !is_a_socket(0)) {
-		DEBUG(0,("standard input is not a socket, assuming -D option\n"));
 		is_daemon = True;
 	}
 
-	if (is_daemon) {
+	else if (is_daemon) {
 		DEBUG( 3, ( "Becoming a daemon.\n" ) );
 		become_daemon();
 	}
diff -urN samba-2.0.6/source/nmbd/nmbd.c.orig samba-2.0.6/source/nmbd/nmbd.c
--- samba-2.0.6/source/nmbd/nmbd.c.orig	Fri Jan 15 19:07:54 1999
+++ samba-2.0.6/source/nmbd/nmbd.c	Wed Mar  3 22:27:13 1999
@@ -769,11 +769,10 @@
 
   if (!is_daemon && !is_a_socket(0))
   {
-    DEBUG(0,("standard input is not a socket, assuming -D option\n"));
     is_daemon = True;
   }
   
-  if (is_daemon)
+  else if (is_daemon)
   {
     DEBUG( 2, ( "Becoming a daemon.\n" ) );
     become_daemon();


More information about the samba-technical mailing list