[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mach_apicdef.h: No such file or directory

on Sat, Dec 13, 2003 at 02:05:53PM +0530, Rajkumar S (rajkumars@asianetindia.com) wrote:
> Hello all
> I am trying to compile samhain on a woody/testing machine. The machine 
> is a woody machine with testing lines in sources.list. The kernel 
> installed is
> Linux agni 2.4.18-k6 #1 Sun Apr 14 12:43:22 EST 2002 i586 GNU/Linux
> dpkg -l | grep kernel
> ii  kernel-headers-2.4.18-1-k7                   2.4.18-12 
>                       ii  kernel-headers-2.4.18-bf2.4 
> 2.4.18-5woody5                               ii  kernel-image-2.4.18-k6 
>                       2.4.18-5                                     ii 
> linux-kernel-headers                         2.5.999-test7-bk-9 
> now when I compile samhain I get this error..
> ./encode 0 sh_unix.c  -->  x_sh_unix.c
> gcc  -DHAVE_CONFIG_H -I. -I.   -O2 -Wall -W  -fno-strength-reduce 
> -fno-omit-fram
> e-pointer -DSH_WITH_CLIENT -o sh_unix.o -c x_sh_unix.c
> In file included from /usr/include/asm/sigcontext.h:4,
>                  from /usr/include/bits/sigcontext.h:28,
>                  from /usr/include/signal.h:326,
>                  from x_sh_unix.c:39:
> /usr/include/linux/compiler.h:17: warning: `__attribute_used__' redefined
> /usr/include/sys/cdefs.h:195: warning: this is the location of the 
> previous defi
> nition
> In file included from /usr/include/asm/smp.h:18,
>                  from /usr/include/linux/smp.h:17,
>                  from /usr/include/linux/percpu_counter.h:9,
>                  from /usr/include/linux/ext2_fs_sb.h:20,
>                  from /usr/include/linux/ext2_fs.h:20,
>                  from x_sh_unix.c:2486:
> /usr/include/asm/mpspec.h:6: mach_mpspec.h: No such file or directory
> In file included from /usr/include/linux/smp.h:17,
>                  from /usr/include/linux/percpu_counter.h:9,
>                  from /usr/include/linux/ext2_fs_sb.h:20,
>                  from /usr/include/linux/ext2_fs.h:20,
>                  from x_sh_unix.c:2486:
> /usr/include/asm/smp.h:73: mach_apicdef.h: No such file or directory
> gcc  -O  -o samhain  samhain.o sh_unix.o sh_utils.o sh_error.o 
> sh_files.o sh_get
> opt.o sh_readconf.o sh_tiger0.o sh_tiger1.o sh_tiger2.o sh_tiger1_64.o 
> sh_tiger2
> _64.o sh_hash.o sh_mail.o sh_mem.o sh_entropy.o sh_forward.o 
> sh_modules.o sh_utm
> p.o sh_kern.o sh_suidchk.o sh_srp.o sh_fifo.o sh_tools.o sh_html.o 
> sh_gpg.o sh_c
> at.o sh_calls.o sh_extern.o sh_database.o sh_err_log.o sh_err_console.o 
> sh_err_s
> yslog.o sh_schedule.o bignum.o trustfile.o rijndael-alg-fst.o 
> rijndael-api-fst.o
>  slib.o zAVLTree.o sh_socket.o sh_ignore.o sh_mounts.o sh_userfiles.o 
> -lnsl  -ln
> sl -lresolv
> gcc: sh_unix.o: No such file or directory
> make: *** [samhain] Error 1
> I searched the net for any clues, but found none, any help to resolve 
> this will be much appriciated.

Generally, to find files within the _entire_ Debian release you are
running (not just those installed on your system):

    # apt-get install apt-file
    # apt-file update
    # apt-file search sh_unix.o
    # apt-file search mach_apicdef.h

...if it was up, you could also use the file search at

However, sh_unix.o doesn't turn up.  Have you tried to locate it on your
system?   I'd suggest finding out what it's supposed to be either from
install docs of the app you're building, the developer, or online docs.


Karsten M. Self <kmself@ix.netcom.com>        http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
    "Yes you will," enthused Zaphod, "there's a whole new life
    stretching out ahead of you."
    "Oh, not another one," groaned Marvin.
    -- HHGTG

Attachment: pgpzPAVCXOkpZ.pgp
Description: PGP signature

Reply to: