Welcome, Guest. Please login or register.

Author Topic: Olaf Barthel about to release Amiga Samba 2.0.7, with GCC, without ixemul  (Read 2615 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline GadgetMasterTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2177
    • Show only replies by GadgetMaster
Source: Amigart

Taken from Amiga Samba mailing list.

"I have been working on something I didn't really want to tackle: write my own 'C' runtime library to port Samba 2.2.x with. Some 430 functions later I now have a codebase at hand which just about covers the ISO 'C' (1994) functionality, minus the wide character support. That was a hell of a lot of work to be done, I can tell you. One of the many nice things this library does is to compile both with SAS/C and GCC. This makes testing with a source level debugger possible. Other neat bits: socket I/O is transparently integrated into the file I/O architecture of the library, stack size checking and extension is supported (for GCC), the library is plastered with debugging and checking code, Amiga operating system functions are used wherever this is convenient (e.g. locale), and almost everything
is written in portable 'C'.



As an exercice, I started to port the SAS/C Samba 2.0.7 port to GCC, using the new library. Quite an eye-opener: I found lots and lots of code in Samba which
didn't even work on the Amiga and whose absence was previously obscured by stub code I had written. Taking the code out did make it more robust, or so it
appears. On the downside, core functionality, such as the opportunistic locking Samba uses, never seems to have worked in Amiga port. Why the SAS/C port still performed well I cannot tell. Just don't tip it off that it doesn't work, will you? Another interesting fact emerged: Samba really never uses more than about 20K of stack space (maximum) on the Amiga. So, if older Amiga Samba ports crashed (in particular the ixemul versions), setting the stack size to 100K or beyond very likely didn't help at all. There is an option in swat to start the nmbd and smbd programs. I discovered that not only did this code never work due to stubs catching the calls to execl(), it also couldn't have worked on the Amiga because smbd must always be launched from the internet superserver (it cannot run as a daemon all by itself).

Yesterday smbd and nmbd compiled, linked and ran for the first time using SAS/C and the new library. The results were encouraging. I soon moved on to rebuild them with GCC 2.95.3. The results were just as good. If this keeps working, chances are that we may have 'pure' versions of smbd and nmbd available which can be made resident. This should be very helpful for smbd, which is so large that it always takes a few seconds to load and run. It also should be possible to port Samba to the Amiga PowerPC platform in the future, provided that the
underlying runtime library is ported as well.

It may not take long for the GCC-built Amiga Samba 2.0.7 port to appear on the usual ftp site. Stay tuned. If this continues to work well, the next thing I'll
do is to see if Samba 2.2.5 is willing to let itself be ported to the Amiga..."
 

Offline KennyR

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 8081
    • Show only replies by KennyR
    • http://wrongpla.net
Re: Olaf Barthel about to release Amiga Samba 2.0.7, with GC
« Reply #1 on: August 03, 2002, 01:25:21 PM »
From personal experience I know how hard it is to install Samba, far less compile it. My hat goes off to Olaf Barthel, one of the true Amiga coding greats.
 

Offline newbee

  • Sr. Member
  • ****
  • Join Date: May 2002
  • Posts: 252
    • Show only replies by newbee
Re: Olaf Barthel about to release Amiga Samba 2.0.7, with GC
« Reply #2 on: August 03, 2002, 03:17:51 PM »
Sometimes it's the tille things that make a difference.

This needs to be ported to the AmigaOne/OS4 as soon as possible.

CIFS is emerging as the "networking protocol of choice' for nearly all "peer to peer" networks as well as M$ protocol of choice.

Great work Olaf Barthel, this may make all the differance.

Regards
Darren
I\\\'ve never used an Amiga

Convince me....

I am your future :-)

*** News Flash ***
I am now a happy user of UAE, you can now call me \\"convert\\"
 

Offline csirac_

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 154
    • Show only replies by csirac_
Re: Olaf Barthel about to release Amiga Samba 2.0.7, with GC
« Reply #3 on: August 03, 2002, 05:38:27 PM »
So then all we need is a port of SWAT and CUPS :)

- Paul
 

Offline theTAO

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 101
    • Show only replies by theTAO
Re: Olaf Barthel about to release Amiga Samba 2.0.7, with GC
« Reply #4 on: August 04, 2002, 02:24:10 AM »
Major kudos, Olaf!  I'll be looking forward to the new Samba releases!  Getting ahead of this a bit, I assume the new C library means that it will be easier for anybody to make native Amiga versions of Unix programs...Ghostscript, PGP, Apache, MySQL, etc.?  That's exactly the kind of tool we need to bring Amiga into the 21st century! :-)

Todd
 

Offline System

  • Full Member
  • ***
  • Join Date: Jul 2003
  • Posts: 199
    • Show only replies by System
    • http://amiga.org
Re: Olaf Barthel about to release Amiga Samba 2.0.7, with GC
« Reply #5 on: August 05, 2002, 06:08:25 PM »
Don't get me wrong but isn't it's (his library)  function the same as ixemul or am I wrong?

One thing we need to do is eventually get AmigaOS to be POSIX compliant (like GNU/Linux, Windows NT and up etc). Then it should be a piece of cake to port stuff like Apache etc.