Bug 4575 - Samba 3 Fails to Compile
: Samba 3 Fails to Compile
Status: CLOSED FIXED
Product: Codex
Classification: Unclassified
Component: net
: stable grimoire
: x86 Linux
: P2 normal
Assigned To: Grimoire Bug List
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2003-10-24 15:46 UTC by Alan Ross
Modified: 2007-04-01 02:08 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Ross 2003-10-24 15:46:31 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
Comment 1 Net Guru 2003-10-24 15:48:51 UTC
Haven't seen this problem before. I'll see if I can reproduce it.
Comment 2 Net Guru 2003-10-25 09:20:21 UTC
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.
Comment 3 Alan Ross 2003-10-27 15:35:40 UTC
I do not have access to the devel grimoire. Could you post the updated spell 
as a tarball or email it to me. 
Comment 4 Net Guru 2003-10-27 16:09:51 UTC
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.
Comment 5 Alan Ross 2003-10-27 19:34:53 UTC
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. 
Comment 6 Net Guru 2003-10-28 03:36:04 UTC
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.
Comment 7 Alan Ross 2003-10-28 05:32:08 UTC
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. 
Comment 8 Net Guru 2003-10-28 05:44:50 UTC
Good idea. I'll see about adding a message like that.
Comment 9 Eric Sandall 2003-11-12 14:35:10 UTC
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.
Comment 10 Jeremy Kolb 2004-01-12 11:55:02 UTC
I have this problem.  Fails at the same spot.  I'm using 2.6.1-mm1
Comment 11 Net Guru 2004-01-19 08:36:17 UTC
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.
Comment 12 Gareth Clay 2004-01-21 11:07:08 UTC
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. 
Comment 13 Eric Sandall 2004-01-21 14:34:23 UTC
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.
Comment 14 games 2004-02-02 19:49:33 UTC
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. 
 
Comment 15 games 2004-02-09 23:19:18 UTC
anyone care to verify the glibc-kernel-headers spell fixed this ?
Comment 16 Alan Ross 2004-02-10 10:23:28 UTC
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. 
Comment 17 Eric Sandall 2004-02-10 11:35:30 UTC
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. :)
Comment 18 Net Guru 2004-02-15 04:30:09 UTC
No complaints so I assume this is completely fixed. Closing.
Comment 19 games 2004-02-15 06:38:58 UTC
I can verify it works with the latest glibc-kernel-headers also (not mine but 
the project Arwed found) 
Comment 20 Jeremy Blosser 2007-04-01 01:08:48 UTC
reassign to sm-grimoire-bugs