RedHat 8.0, samba-latest.tar.gz (samba-2.2.8),
I am trying to configure and compile the latest samba from source code. I have
used samba in the past, but always RPM installs on redhat. The first problem is
near the end of the configure process:
checking for gcc... gcc
checking whether the C compiler (gcc -O ) works... yes
checking whether the C compiler (gcc -O ) is a cross-compiler... no
...
checking for poptGetContext in -lpopt... yes
checking whether to use included popt... no
checking configure summary... WARNING: No automated network interface
determination
ERROR: no seteuid method available
configure: error: summary failure. Aborting config
The configure file contains various errors about not finding files:
configure:2033: gcc -c -O -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE conftest.c 1>&5
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/dirent.h:209,
from /usr/include/sys/dir.h:24,
from configure:2027:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure: failed program was:
#line 2025 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/dir.h>
int main() {
DIR *dirp = 0;
; return 0; }
The error may be more a result of my environment, and not a samba issue. Any
suggestions and links will be appreciated. Thanks in advance.
Daniel Watrous
dwatrous@maintainfit.com
801-484-6747
I found the fix... Basically the problem is that the compile is looking for headers that are usually distributed with the kernel sources by grabbing the latest kernel, untaring it in /usr/src, and creating the following links: /usr/include/linux -> /usr/src/linux/include/linux /usr/include/asm -> /usr/src/linux/include/asm-i386 everything worked. Commands from start to beginning might look something like this: cd /usr/src wget http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.18.tar.bz2 bzip2 -dc linux-2.4.18.tar.bz2 | tar xvf - cd /usr/include ln -s /usr/src/linux/include/linux linux ln -s /usr/src/linux/include/asm-i386 asm Daniel Watrous dwatrous@maintainfit.com ----- Original Message ----- From: "Daniel Watrous" <dwatrous@maintainfit.com> To: <samba@lists.samba.org> Sent: Wednesday, March 26, 2003 10:10 PM Subject: [Samba] trouble configuring and compiling RedHat 8.0, samba-latest.tar.gz (samba-2.2.8),>checking configure summary... WARNING: No automated network interfacedetermination>ERROR: no seteuid method available >configure: error: summary failure. Aborting config>configure:2033:gcc -c -O -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE conftest.c 1>&5>In file included from /usr/include/bits/posix1_lim.h:126, > from /usr/include/dirent.h:209, > from /usr/include/sys/dir.h:24, > from configure:2027: >/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file ordirectory>configure: failed program was: >#line 2025 "configure" >#include "confdefs.h" >#include <sys/types.h> >#include <sys/dir.h> >int main() { >DIR *dirp = 0; >; return 0; }
On Wed, Mar 26, 2003 at 11:39:08PM -0700, Daniel Watrous wrote:> I found the fix... > > Basically the problem is that the compile is looking for headers that are > usually distributed with the kernel sources > > by grabbing the latest kernel, untaring it in /usr/src, and creating the > following links: > > /usr/include/linux -> /usr/src/linux/include/linux > /usr/include/asm -> /usr/src/linux/include/asm-i386 > > everything worked.You should not do this - you should get the kernel that your glibc was compiled against, and use that. Redhat has a glibc-kernel-headers for exactly this task. Andrew Bartlett