-   Slackware (
-   -   Samba 3.3 or later on Slackware 12 - what's the best way? (

caroulia 02-22-2010 10:19 AM

Samba 3.3 or later on Slackware 12 - what's the best way?
I'm trying to upgrade the Samba server on a Slackware 12 box to serve as PDC for Windows 7 32bit machines (it now has a 3.0.3 and does the job for Win XP machines, but 7 refuses to join the domain - I'm posting this after having tried a few dozen hacks on the windows registry).

I'm a newbie on Slackware (I usually dwell in Ubuntu) so I may be going about this the wrong way but this is what I've done so far:

The Samba wiki has a couple of hacks for the registry and also seems to suggest a version later than 3.3 (though not in so many words)

Having scoured the net for later Samba packages/binaries for Slackware 12 and gotten precisely nowhere, I decided that maybe I could compile the blessed thing. But I keep on getting compiler errors.

BTW, I'm using this SlackBuild script

Is there a way to make this happen without upgrading the base system? it has so many finely tuned things running that I prefer not to mess with the rest of the setup.]

dive 02-23-2010 02:51 AM

What errors are you getting specifically?

rpedrica 02-23-2010 06:29 AM

I think that 3.4.x is recommended specifically for Windows Vista/7 and Win2k8, and later. You haven't mentioned though what compiler errors you are getting. With a bit of luck, you should be able to tweak the Slackware 12 script ( ie. the one provided with the dist ).

caroulia 02-24-2010 05:41 AM

Thanks for replying guys, really appreciated

OK, so I'm trying to build 3.4.4 (that's the version the SlackBuild script I mentioned above is targeting).

The error I get after running it - it seems to be decompressing the files properly - then it goes:


checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/tmp/samba-3.4.4/source3':
configure: error: C compiler cannot create executables
See `config.log' for more details.

The actual config.log in /tmp/samba-3.4.4/source3/ says


configure:3456: checking for C compiler default output file name
configure:3478: gcc -O2 -march=i486 -mtune=i686  conftest.c  >&5
 crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:3482: $? = 1
configure:3520: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Samba"
| #define PACKAGE_TARNAME "samba"
| #define PACKAGE_VERSION "3"
| #define PACKAGE_STRING "Samba 3"
| /* end confdefs.h.  */
| int
| main ()
| {
|  ;
|  return 0;
| }
configure:3526: error: in `/tmp/samba-3.4.4/source3':
configure:3529: error: C compiler cannot create executables
See `config.log' for more details.

Sorry for not posting the details earlier - I guess I was hoping someone would say: "No, you are doing it all wrong: here is a repository of pre-compiled tgz Samba versions."

rpedrica 02-25-2010 12:59 AM

Looks to me like you're missing a system library - crt1.o should be in package glibc ... make sure you've got this file on your system ( normally in /usr/lib ). If not then you may have to reinstall your glibc package.

All times are GMT -5. The time now is 05:30 AM.