Compilation errors

Rafał Szcześniak rfs at aw.com.pl
Wed Sep 15 09:05:30 GMT 1999


Christian Kneissl wrote:
> 
> Hello !
> 
> I am very new to linux, so my problem could not be a real great problem for
> you, but I
> dont know how to go further.
> 
> When I try to compile Samba with make (after configure) I get the following:
> 
> Using LIBS = -lreadline -ldl  -lcrypt
> Compiling smbd/server.c
> In file included from /usr/include/signal.h:294,
>                  from include/includes.h:161,
>                  from smbd/server.c:22:
> /usr/include/bits/sigcontext.h:28: asm/sigcontext.h: No such file or
> directory
> In file included from /usr/include/bits/errno.h:25,
>                  from /usr/include/errno.h:36,
>                  from include/includes.h:181,
>                  from smbd/server.c:22:
> /usr/include/linux/errno.h:4: asm/errno.h: No such file or directory
> In file included from /usr/include/netinet/in.h:26,
>                  from include/includes.h:211,
>                  from smbd/server.c:22:
> /usr/include/bits/socket.h:252: asm/socket.h: No such file or directory
> make: *** [smbd/server.o] Error 1
> 
> -------------------------------------------
> 
> Also the same, when I tried to compile Glib-1.2.4:
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2
> -Wall -D_REENTRANT -c  -fPIC -DPIC giounix.c -o .libs/giounix.lo
> In file included from /usr/include/bits/errno.h:25,
>                  from /usr/include/errno.h:36,
>                  from giounix.c:37:
> /usr/include/linux/errno.h:4: asm/errno.h: No such file or directory
> make[2]: *** [giounix.lo] Error 1
> make[2]: Leaving directory /home/chris/glib-1.2.4'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory /home/chris/glib-1.2.4'
> make: *** [all-recursive-am] Error 2
> 
> -------------------------------------------
> 
> Would be great, If you have a solution for me.
> 
> Christian Kneissl

It seems you don't have whole /usr/include/asm subtree. Check whether
it exists. It should be a soft link to your current kernel source
subtree ./include/asm. If your kernel is in /usr/src/linux (quite
typical configuration, but sometimes depended on linux distribution),
you can create it by typing:
	ln -s /usr/src/linux/include/asm /usr/include/asm

After all, this looks like linux problem, not samba. There are many
better places to asking this kind of question.

greetings :)
Rafał


More information about the samba-ntdom mailing list