Bugzilla – Bug 4575
Samba 3 Fails to Compile
Last modified: 2007-04-01 02:08:48 UTC
Using the default configuration, Samba fails to compile. The tail of the compile log follows: libsmb/spnego.c:321: warning: passing arg 1 of `free' discards qualifiers from pointer target type libsmb/spnego.c:330: warning: passing arg 1 of `free' discards qualifiers from pointer target type Linking bin/ntlm_auth Compiling utils/smbcquotas.c Linking bin/smbcquotas Compiling client/smbmount.c In file included from /usr/include/linux/fs.h:16, from /usr/include/linux/smb_fs.h:15, from client/smbmount.c:27: /usr/include/linux/list.h:579:2: warning: #warning "don't include kernel headers in userspace" In file included from /usr/include/linux/fs.h:20, from /usr/include/linux/smb_fs.h:15, from client/smbmount.c:27: /usr/include/linux/radix-tree.h: In function `radix_tree_preload_end': /usr/include/linux/radix-tree.h:54: invalid type argument of `->' /usr/include/linux/radix-tree.h:54: `TIF_NEED_RESCHED' undeclared (first use in this function) /usr/include/linux/radix-tree.h:54: (Each undeclared identifier is reported only once /usr/include/linux/radix-tree.h:54: for each function it appears in.) make[1]: *** [client/smbmount.o] Error 1 make[1]: Leaving directory `/usr/src/samba-3.0.0/source' --Alan
Haven't seen this problem before. I'll see if I can reproduce it.
I've merged some changes made to the devel spell, I don't know if they will fix your problem but I'd very much like to know. So please rebuild in a few hours when they have propagated into the tarball.
I do not have access to the devel grimoire. Could you post the updated spell as a tarball or email it to me.
I'm sorry, I wasn't clear. When I said "merge" I meant that the devel version of the spell was pulled into the test and stable grimoires. So you can try updating your stable grimoire and rebuild samba.
I did a cast -r -c samba. However the compile still failed in the same place. I am using iso 0.6 with stable grimoire. And I regularly so sorcery system-update. The only thing major I did recently was move to the 2.6 kernel.
Ah, that's why I couldn't reproduce the problem. I'm not running 2.6.0. I fear it'll be quite difficult to fix this problem. If you really need Samba then I recommend switching back to Linux 2.4 until a fix for Samba is found.
Okay, so this is a samba issue rather than a sourcemage issue. I will downgrade then. Perhaps a note warning should be placed in the spell to tell the user they must have a kernel < 2.6.
Good idea. I'll see about adding a message like that.
I've heard from 'mon' on #sourcemage that Gentoo's samba compiles fine against the 2.6 kernels. We may want to see what patches they have. I'll see about looking into this and testing, but not sure when I'll have time.
I have this problem. Fails at the same spot. I'm using 2.6.1-mm1
Sorry about taking so long on this bug. Is smbfs enabled in the kernel? It seems as if samba should compile nicely with Linux 2.6.
I have smbfs built as a kernel module, and my samba spell fails. I haven't tried compiling smbfs support directly into the kernel, since I rarely use it.
I also have mine compiled as a module and it fails, perhaps we should try both of these: 1) SMBFS compiled in 2) SMBFS not compiled at all And see if either (or both) of those work.
My most recent changes to the kernel headers should have fixed this. (in devel) we now have a glibc-kernel-headers spell with the (partly) sanitised 2.6.1 headers. It is now a dependancy of glibc, (which is not ready for integration) but I can integrate the glibc-kernel-headers spell and you may all manually cast it, choose 2.4 or 2.6 tree headers and then samba should compile for you. now integrated (Change 26591 submitted), those of you with perforce access, please try it, those without wait for next test grimoire tarball and then try it.
anyone care to verify the glibc-kernel-headers spell fixed this ?
Hi, I am afraid I cannot check whether or not this has solved the problem as I have recently removed SMGL and installed Debian (not as fast and slick but a little more stable). Hopefully I will return to SMGL after 1.0. Cheers.
Sorry to here that. :( Hope to see you again soon. Samba (3.0.2 on one and 3.0.1 on another) compiles fine for me on a 2.6 machine, thanks. :)
No complaints so I assume this is completely fixed. Closing.
I can verify it works with the latest glibc-kernel-headers also (not mine but the project Arwed found)
reassign to sm-grimoire-bugs